/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Rajdhani", sans-serif;
}

/* Body Styles */
body {
    width: 100vw;
    height: 100vh;
    background-color: rgb(23, 22, 22);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container Styles */
.container {
    width: 70%;
    height: 90%;
    background: linear-gradient(to top, rgba(4, 160, 177, 0.11), rgba(240, 188, 240, 0.692));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 2px 2px 10px rgb(4, 160, 177), -2px -2px 10px rgb(240, 188, 240);
    border: none;
    border-radius: 30px;
    padding: 10px;
    box-sizing: border-box;
    gap: 20px;
}

/* Header Style */
h1 {
    font-size: 40px;
    text-shadow: 2px 2px 10px rgb(4, 160, 177);
}

/* Input Section Styles */
.input {
    width: 90%;
    height: 30%;
    background: linear-gradient(to right, rgb(3, 19, 22), rgb(160, 161, 235));
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    color: aliceblue;
    font-size: 25px;
    border-radius: 20px;
}

#input {
    width: 70%;
    height: 40px;
    background-color: rgba(10, 46, 49, 0.68);
    border: none;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgb(4, 160, 177), -2px -2px 10px rgb(240, 188, 240);
    font-size: 20px;
    color: aliceblue;
    padding: 15px;
    box-sizing: border-box;
}

#btn {
    width: 200px;
    height: 50px;
    background-color: rgba(10, 46, 49, 0.68);
    border: none;
    border-radius: 20px;
    font-size: 20px;
    color: aliceblue;
    box-shadow: 2px 2px 10px rgb(4, 160, 177);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

#btn:hover {
    background: transparent;
}

/* Output Section Styles */
.output {
    width: 90%;
    height: 55%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.image {
    width: 70%;
    height: 100%;
    background: linear-gradient(to right, rgb(3, 19, 22), rgb(160, 161, 235));
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 20px;
    position: relative;
}

.btns {
    display: flex;
    gap: 10px;
}

#download, #reset {
    width: 150px;
    height: 50px;
    background-color: rgba(10, 46, 49, 0.68);
    border: none;
    border-radius: 20px;
    font-size: 20px;
    color: aliceblue;
    box-shadow: 2px 2px 10px rgb(4, 160, 177);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

#download:hover, #reset:hover {
    background: transparent;
}

#image {
    width: 65%;
    height: 90%;
    background-size: cover;
    border: none;
    border-radius: 20px;
    display: none;
}

#loading {
    position: absolute;
    width: 10%;
    filter: drop-shadow(2px 2px 10px black);
    display: none;
}

/* Button Style for Glowing Effect */
.button-85 {
    padding: 0.6em 2em;
    border: none;
    outline: none;
    color: rgb(255, 255, 255);
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-85:before {
    content: "";
    background: linear-gradient(
        45deg,
        #ff0000,
        #ff7300,
        #fffb00,
        #48ff00,
        #00ffd5,
        #002bff,
        #7a00ff,
        #ff00c8,
        #ff0000
    );
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    -webkit-filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing-button-85 20s linear infinite;
    transition: opacity 0.3s ease-in-out;
    border-radius: 10px;
}

@keyframes glowing-button-85 {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 400% 0;
    }
    100% {
        background-position: 0 0;
    }
}

.button-85:after {
    z-index: -1;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #222;
    left: 0;
    top: 0;
    border-radius: 10px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }
    #image {
        width: 50%;
    }
    .image {
        width: 100%;
        height: 64%;
    }
    .btns {
        width: 100%;
        height: 25%;
        flex-direction: row;
    }
    .output {
        flex-direction: column;
    }
}

@media (max-width: 570px) {
    h1 {
        font-size: 30px;
    }
    .input {
        font-size: 20px;
    }
    #input {
        font-size: 15px;
    }
    #image {
        width: 60%;
    }
}

@media (max-width: 450px) {
    .container {
        width: 100%;
        height: 100%;
        border-radius: 0px;
    }
    h1 {
        font-size: 22px;
    }
    .input {
        font-size: 15px;
    }
    #input {
        width: 90%;
        font-size: 12px;
    }
}
