/* & Made by Nourhan Farid Abo Bakr */


.dark {
    background: linear-gradient(-30deg, #1a1a2e, #16213e, #0f3460, #2d1b69, #533483, #7209b7, #764ba2, #667eea);
    background-size: 400% 400%;
    animation: gradient 20s ease infinite;
    min-height: 100vh;
    -webkit-animation: gradient 20s ease infinite;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Playfair Display", serif;
}

/* #ee7752, #e73c7e, #23a6d5, #23d5ab, #a07af5, */

/* #4ecdc4, #23d5ab, #45b7d1, #23a6d5, #667eea, #f093fb, #e73c7e, #ff6b6b, #ee7752, #f9f871 */
body {
    /* background: linear-gradient(-30deg, #f9f871, #ee7752, #ff6b6b, #e73c7e, #f093fb, #667eea, #23a6d5, #45b7d1, #23d5ab, #4ecdc4); */
    background: linear-gradient(-30deg, #4ecdc4, #23d5ab, #45b7d1, #23a6d5, #e73c7e, #ff6b6b, #ee7752, #f9f871);
    background-size: 400% 400%;
    animation: gradient 20s ease infinite;
    min-height: 100vh;
    -webkit-animation: gradient 20s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* ? Start of Main Section */

.main {
    display: flex;
    position: relative;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    height: 100vh;
}

.layout {
    width: 100%;
    position: absolute;
    background-color: transparent;
    inset: 0;
}

.quoteS,
.quoteE,
.heart,
.star,
.triangle {
    width: 50px;
    opacity: 0.3;
    position: absolute;
    font-size: 40px;
    animation: float 3s ease-in-out infinite;
    -webkit-animation: float 3s ease-in-out infinite;
}

.quoteS {
    left: 20%;
    top: 20%;
}

.quoteE {
    bottom: 22%;
    right: 18%;
}

.heart {
    right: 15%;
    top: 20%;
    width: 40px;
}

.star {
    bottom: 20%;
    left: 10%;
    width: 40px;
}

.triangle {
    bottom: 10%;
    left: 50%;
    width: 40px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}


@media screen and (max-width:800px) {

    .quoteS,
    .quoteE,
    .heart,
    .star,
    .triangle,
    .ExclamMark {
        width: 30px;
    }

    .quoteS {
        left: 8%;
        top: 10%;
    }

    .quoteE {
        bottom: 12%;
        right: 8%;
    }

    .heart {
        right: 5%;
        top: 15%;
    }

    .star {
        bottom: 10%;
        left: 10%;
    }

    .triangle {
        bottom: 5%;
        left: 50%;
    }


}

/* ? End of Main Section */


/* ============================ */

.content {
    position: relative;
    top: 50px;
    color: white;
}

.QHeader {
    color: white;
    font-size: 55px;
    text-align: center;
}

.HeaderPara {
    font-size: 20px;
    text-align: center;
    letter-spacing: 1px;
    margin: 7px auto;
}

.QuoteSentence {
    width: 800px;
    height: 370px;
    top: 80px;
    position: relative;
    background-color: #ffffff5c;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    padding: 20px;
    margin: 0 !important;

}

.QuoteSentence .quoteTxtS,
.QuoteSentence .quoteTxtE {
    width: 100px;
    opacity: 0.7;
    position: absolute;
    font-size: 40px;
}

.QuoteSentence .quoteTxtS {
    left: 10px;
    top: 10px;
}

.QuoteSentence .quoteTxtE {
    right: 10px;
    bottom: 10px;
}

.QuoteSentence #quote,
.QuoteSentence #author {
    text-align: center;
    font-size: 28px;
    color: white;
    position: relative;
    top: 100px;
    display: block;
    width: 100%;
    background-color: transparent;
    border: none;
    resize: none;
}

.QuoteSentence #author {
    margin-top: 40px !important;
    font-size: 22px;
}

.buttonsDiv {
    position: relative;
    top: 120px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
}

.buttonsDiv div {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
}

/* From Uiverse.io by adeladel522 */
.buttonsDiv .button,
.buttonsDiv .buttonCategories {
    position: relative;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    padding-block: 0.8rem;
    padding-inline: 1.5rem;
    /* background-color: rgb(0 107 179); */
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffff;
    gap: 10px;
    font-weight: bold;
    border: 3px solid #ffffff4d;
    outline: none;
    overflow: hidden;
    font-size: 15px;
    margin: 10px;
}

.icon {
    font-size: 20px;
}

.button:hover {
    transform: translateY(-5px);
    border-color: #fff9;
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -o-transform: translateY(-5px);
}

.buttonCategories {
    background-color: transparent !important;
}

.buttonCategories:hover {
    border-color: #fff9;

}

.buttonCategories option {
    color: #764ba2;
}

.buttonsDiv #newQuoteGenerator {
    background-image: linear-gradient(45deg, #667eea 5%, #764ba2 95%) !important;
}

.buttonsDiv #shareQuote {
    background-image: linear-gradient(45deg, #ff6b6b 5%, #ee5a24 95%) !important;
}

.buttonsDiv #copyBtn {
    background-image: linear-gradient(45deg, #4ecdc4 5%, #44bd87 95%) !important;
}


.button:hover::before,
.buttonCategories:hover::before {
    animation: shine 1.5s ease-out infinite;
}

.button::before,
.buttonCategories::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100%;
    background-image: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 0) 70%);
    top: 0;
    left: -100px;
    opacity: 0.6;
}

@keyframes shine {
    0% {
        left: -100px;
    }

    60% {
        left: 100%;
    }

    to {
        left: 100%;
    }
}


@media screen and (max-width:800px) {
    .QuoteSentence {
        width: 700px;
        height: 270px;
        top: 80px;
        position: relative;
        background-color: #ffffff5c;
        border-radius: 20px;
        -webkit-border-radius: 20px;
        -moz-border-radius: 20px;
        -ms-border-radius: 20px;
        -o-border-radius: 20px;
        padding: 20px;
    }

    .QuoteSentence .quoteTxtS,
    .QuoteSentence .quoteTxtE {
        width: 80px;
    }

    .buttonsDiv {
        flex-direction: column;
    }

    .QuoteSentence #quote,
    .QuoteSentence #author {
        text-align: center;
        font-size: 27px;
        color: white;
        position: relative;
        top: 70px;
    }

    .QuoteSentence #author {
        margin-top: 20px !important;
        font-size: 23px;
    }

}

@media screen and (max-width:710px) {
    .QuoteSentence {
        width: 550px;
        height: 270px;
        top: 80px;
        position: relative;
        background-color: #ffffff5c;
        border-radius: 20px;
        -webkit-border-radius: 20px;
        -moz-border-radius: 20px;
        -ms-border-radius: 20px;
        -o-border-radius: 20px;
        padding: 20px;
    }

    .QuoteSentence .quoteTxtS,
    .QuoteSentence .quoteTxtE {
        width: 80px;
    }

    .buttonsDiv {
        flex-direction: column;
    }

    .QuoteSentence #quote,
    .QuoteSentence #author {
        text-align: center;
        font-size: 26px;
        color: white;
        position: relative;
        top: 70px;
    }

    .QuoteSentence #author {
        margin-top: 20px !important;
        font-size: 22px;
    }

}

@media screen and (max-width:550px) {
    .QuoteSentence {
        width: 450px;
        height: 200px;
        margin: 0 50px !important;
    }

    .QuoteSentence .quoteTxtS,
    .QuoteSentence .quoteTxtE {
        width: 50px;
    }

    .buttonsDiv {
        flex-direction: column;
    }

    .QuoteSentence #quote,
    .QuoteSentence #author {
        text-align: center;
        font-size: 24px;
        color: white;
        position: relative;
        top: 40px;
    }

    .QuoteSentence #author {
        margin-top: 20px !important;
        font-size: 20px;
    }
}




.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}


/* Toggle theme */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #ffffff5c;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.theme-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(-15deg);
    -webkit-transform: rotate(-15deg);
    -moz-transform: rotate(-15deg);
    -ms-transform: rotate(-15deg);
    -o-transform: rotate(-15deg);
}

.toggleBtn {
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
    position: absolute;
}

.clear {
    display: none;
}

/* toggle End */