@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Rajdhani", sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 80%;
    max-width: 1200px;
    background: linear-gradient(135deg, rgba(3, 19, 22, 0.8), rgba(60, 60, 80, 0.8));
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 48px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 6px rgba(0, 255, 255, 0.3);
}

.input {
    width: 100%;
    padding: 20px;
    background: rgba(40, 40, 50, 0.7);
    border-radius: 15px;
    color: #fff;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

#input {
    width: 80%;
    padding: 15px;
    border-radius: 10px;
    font-size: 20px;
    color: #fff;
    background-color: #333;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#input:focus {
    outline: none;
    border: 2px solid #00ffff;
    box-shadow: 0 0 12px #00ffff;
}

#btn {
    width: 200px;
    height: 50px;
    background-color: #00ffff;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 500;
    color: #121212;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 255, 255, 0.3);
}

#btn:hover {
    background-color: #009eae;
    transform: scale(1.05);
}

.output {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    gap: 20px;
}

.image {
    width: 60%;
    height: 300px;
    background: linear-gradient(135deg, #00ffff, #ff00ff);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 255, 255, 0.3);
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(80%);
}

.btns {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 35%;
    justify-content: center;
    align-items: center;
}

#download, #reset {
    width: 150px;
    height: 45px;
    background-color: #00ffff;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 500;
    color: #121212;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

#download:hover, #reset:hover {
    background-color: #009eae;
    transform: scale(1.05);
}

#loading {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 900px) {
    .container {
        width: 90%;
        padding: 30px;
    }
    .input, .output {
        flex-direction: column;
        align-items: center;
    }
    .image {
        width: 100%;
        height: 250px;
    }
    .btns {
        width: 100%;
        flex-direction: row;
        gap: 10px;
    }
    #download, #reset {
        width: 120px;
    }
}

@media (max-width: 570px) {
    h1 {
        font-size: 28px;
    }
    .input, #input {
        font-size: 16px;
    }
    #btn {
        width: 180px;
        font-size: 16px;
    }
}

@media (max-width: 450px) {
    .container {
        width: 100%;
        height: auto;
        padding: 15px;
    }
    h1 {
        font-size: 24px;
    }
    .input {
        font-size: 14px;
    }
    #input {
        font-size: 12px;
        width: 85%;
    }
    #btn {
        width: 150px;
        height: 40px;
        font-size: 14px;
    }
    .btns {
        gap: 5px;
        flex-direction: column;
    }
    #download, #reset {
        width: 100px;
        height: 35px;
        font-size: 14px;
    }
    .image {
        width: 100%;
        height: 200px;
    }
}
