/*This file contains basic styling for the scaffold. Students can extend and customize the styles as needed.*!*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #333;
    color: white;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

main {
    padding: 20px;
    text-align: center;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Ensure the parent div uses flexbox to align children side by side */
.parent_div {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Align the items vertically */
    gap: 10px; /* Add some spacing between the two divs */
}

/* Style for individual child divs */
.child_div {
    flex: 1; /* Make each div flexible so they adjust to available space */
}

.responsive {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
}

.waviy {
    position: relative;
}

    .waviy span {
        position: relative;
        display: inline-block;
        font-size: 3vw;
        color: #333;
        text-transform: uppercase;
        animation: flip 2s infinite;
        animation-delay: calc(.2s * var(--i))
    }

@keyframes flip {
    0%,80% {
        transform: rotateY(360deg)
    }
}

/* Calendar */
    html body .page-hero h3 {
        font-size: 3rem;
        font-weight: bold;
        text-shadow: -1px -1px 1px #460000,2px 2px 1px #ff4965;
        text-transform: uppercase;
        color: #bd122d
    }

    html body .page-hero p {
        color: #f1acb7
    }

    html body .card {
        border-radius: 15px;
        overflow: hidden
    }

    html body .card-header {
        background: #5c3037;
        color: #fff
    }

        html body .card-header .prevMonth {
            cursor: pointer
        }

        html body .card-header .nextMonth {
            cursor: pointer
        }

    html body .card-body {
        background: #f1acb7
    }

        html body .card-body .days span {
            background: #e27586;
            color: #fff;
            border-radius: 50%;
            display: inline-block;
            height: 45px;
            width: 45px;
            line-height: 45px;
            cursor: pointer
        }

            html body .card-body .days span:hover {
                background: #f7899a
            }

        html body .card-body .dates span {
            background: #f4bdc6;
            color: #000;
            border-radius: 50%;
            display: inline-block;
            height: 45px;
            width: 45px;
            line-height: 45px;
            cursor: pointer
        }

            html body .card-body .dates span.active, html body .card-body .dates span:hover {
                background: #ffeef0;
                color: #000
            }

            html body .card-body .dates span.ntMonth {
                color: #938e8e;
                background: #ffd8de
            }

                html body .card-body .dates span.ntMonth:hover {
                    background: #ffeef0;
                    color: #000
                }

    html body .card#event .card-header .close {
        color: #fff;
        opacity: 1
    }

    html body .card#event .card-body .events-today {
        height: 210px;
        overflow-x: hidden
    }

    html body .card#event .card-body .events-input .data-invalid {
        border-color: red
    }

    html body .card#event .card-body .events-input .error {
        font-size: 12px;
        color: red;
        position: absolute;
        top: 100%
    }

@media(max-width: 767px) {
    html body .pa-sm {
        position: absolute
    }

    html body .card-body .days span {
        height: 38px;
        width: 38px;
        line-height: 38px;
        font-size: .8rem
    }

    html body .card-body .dates span {
        height: 38px;
        width: 38px;
        line-height: 38px;
        font-size: .8rem
    }

    html body .card#event .card-body .events-today {
        height: 188px
    }
}
/* Music Player */

@font-face {
    font-family: "icomoon";
    src: url("https://raw.githubusercontent.com/abxlfazl/music-player-widget/main/src/assets/icomoon/fonts/icomoon.eot?u8ckod");
    src: url("https://raw.githubusercontent.com/abxlfazl/music-player-widget/main/src/assets/icomoon/fonts/icomoon.eot?u8ckod#iefix") format("embedded-opentype"), url("https://raw.githubusercontent.com/abxlfazl/music-player-widget/main/src/assets/icomoon/fonts/icomoon.ttf?u8ckod") format("truetype"), url("https://raw.githubusercontent.com/abxlfazl/music-player-widget/main/src/assets/icomoon/fonts/icomoon.woff?u8ckod") format("woff"), url("https://raw.githubusercontent.com/abxlfazl/music-player-widget/main/src/assets/icomoon/fonts/icomoon.svg?u8ckod#icomoon") format("svg");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

[class^="icon-"],
[class*=" icon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: "icomoon" !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-back:before {
    content: "\e900";
    color: #827d7b;
}

.icon-next:before {
    content: "\e901";
    color: #827d7b;
}

.icon-pause:before {
    content: "\e902";
    color: #fff;
}

.icon-play:before {
    content: "\e903";
    color: #fff;
}

.icon-playlist:before {
    content: "\e904";
    color: #fff;
}

@font-face {
    font-family: Avenir;
    src: url(https://raw.githubusercontent.com/abxlfazl/music-player-widget/main/src/assets/font/AvenirNextRoundedProMedium.TTF);
}

/* PUBLIC CLASSES */

#root {
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 80vh;  Full viewport height */
    margin: 0;
}

.img {
    width: 100%;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
}

.list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.text_trsf-cap {
    text-transform: capitalize;
}

.button {
    all: unset;
    cursor: pointer;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-row {
    display: flex;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

._align_center {
    align-items: center;
}

._align_start {
    align-items: flex-start;
}

._align_end {
    align-items: flex-end;
}

._justify_center {
    justify-content: center;
}

._justify_start {
    justify-content: flex-start;
}

._justify_end {
    justify-content: flex-end;
}

._justify_space-btwn {
    justify-content: space-between;
}

.text_overflow {
    width: 66%;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    text-overflow: ellipsis;
}

.loading {
    gap: 0 0.5rem;
    font-size: 5rem;
    font-weight: bold;
}

/* PUBLIC CLASSES */

.music-player {
    --color-white: #fff;
    --color-gray: #e5e7ea;
    --color-blue: #78adfe;
    --color-blue-dark: #5781bd;
    --box-shadow: 0 2px 6px 1px #0000001f;
    --color-text-1: #000;
    --color-text-2: #0000006b;
    --cover-size: 3.8125em;
    --border-radius: 1.625em;
    --music-player-height: 24.375em;
    --offset-cover: 1.60125em;
    margin-bottom: 5vw;
    width: 20.9375em;
    overflow: hidden;
    user-select: none;
    color: var(--color-text-1);
    height: var(--music-player-height);
    border-radius: var(--border-radius);
    background-color: var(--color-white);
}

.slider {
    --shadow-opacity: 1;
    z-index: 0;
    flex-shrink: 0;
    height: 7.125em;
    position: relative;
    border-radius: inherit;
    transition: var(--duration) height var(--ease-timeline);
}

    .slider.resize {
        --shadow-opacity: 0;
        height: var(--music-player-height);
    }

    .slider::after {
        top: 0;
        left: 0;
        right: 0;
        content: "";
        width: 100%;
        z-index: -1;
        height: 100%;
        position: absolute;
        pointer-events: none;
        border-radius: inherit;
        box-shadow: var(--box-shadow);
        opacity: var(--shadow-opacity);
        transition: var(--duration) opacity;
    }

.slider__content {
    top: 0;
    left: 0;
    overflow: hidden;
    position: absolute;
    border-radius: inherit;
    width: var(--cover-size);
    height: var(--cover-size);
    transition: transform, width, height;
    transition-duration: var(--duration);
    transition-timing-function: var(--ease-timeline);
    transform: translate3d(var(--offset-cover), var(--offset-cover), 0);
}

.slider.resize .slider__content {
    width: 100%;
    height: 17.8125em;
    transform: translate3d(0, 0, 0);
}

.slider__content .button {
    --size: 3em;
    z-index: 1;
    position: absolute;
    width: var(--size);
    height: var(--size);
}

.slider__content i {
    position: absolute;
    pointer-events: none;
    font-size: var(--size);
}

.music-player__playlist-button {
    top: 5.5%;
    left: 5.5%;
    transform: scale(0);
    transition: calc(var(--duration) / 2) transform;
}

.slider.resize .music-player__playlist-button {
    transform: scale(1);
    transition: 0.35s var(--duration) transform cubic-bezier(0, 0.85, 0.11, 1.64);
}

.music-player__broadcast-guarantor .icon-pause,
.music-player__broadcast-guarantor.click .icon-play {
    opacity: 0;
}

.music-player__broadcast-guarantor.click .icon-pause {
    opacity: 1;
}

.slider__imgs {
    width: 100%;
    height: 100%;
    filter: brightness(75%);
    transform: translate3d(calc(var(--index) * 100%), 0, 0);
    transition: var(--duration) transform var(--ease-slider);
}

    .slider__imgs > img {
        pointer-events: none;
    }

.slider__controls {
    --controls-y: 145%;
    --controls-x: 17.3%;
    --controls-width: 68.4%;
    --controls-resize-width: 88%;
    /* Animation performance is better than transition */

    gap: 0.375em 0;
    flex-wrap: wrap;
    position: absolute;
    align-items: center;
    padding-top: 0.375em;
    width: var(--controls-width);
    transform: translate3d(var(--controls-x), 0, 0);
    animation: var(--controls-animate, "down paused") var(--duration) var(--ease-timeline) forwards;
}

@keyframes down {
    100% {
        width: var(--controls-resize-width);
        transform: translate3d(0, var(--controls-y), 0);
    }
}

@keyframes up {
    0% {
        width: var(--controls-resize-width);
        transform: translate3d(0, var(--controls-y), 0);
    }

    100% {
        width: var(--controls-width);
        transform: translate3d(var(--controls-x), 0, 0);
    }
}

.slider__switch-button {
    font-size: 3em;
    height: max-content;
}

.music-player__info {
    width: 56.3%;
    cursor: pointer;
    line-height: 1.8;
    overflow: hidden;
    font-weight: bold;
    padding: 0 0.0625em;
    white-space: nowrap;
}

    .music-player__info > * {
        margin: 0 auto;
        pointer-events: none;
    }

.music-player__singer-name {
    font-size: 1.25em;
    width: max-content;
}

.music-player__subtitle {
    font-size: 0.85em;
    font-weight: bold;
    color: var(--color-text-2);
}

.slider__controls .music-player__subtitle {
    width: max-content;
}

.music-player__singer-name.animate,
.music-player__subtitle.animate {
    --subtitle-gap: 1.5625em;
    display: flex;
    gap: 0 var(--subtitle-gap);
    animation: subtitle 12s 1.2s linear infinite;
}

@keyframes subtitle {
    80%, 100% {
        transform: translate3d(calc((100% + var(--subtitle-gap)) / -2), 0, 0);
    }
}

.progress {
    width: 90%;
    height: 1.25em;
    cursor: pointer;
    transition: var(--duration) width var(--ease-timeline);
}

.slider.resize .progress {
    width: 100%;
}

.progress__wrapper {
    width: 100%;
    height: 0.3125em;
    position: relative;
    border-radius: 1em;
    background-color: var(--color-gray);
}

.progress__bar {
    top: 0;
    left: 0;
    bottom: 0;
    position: absolute;
    width: var(--width);
    border-radius: inherit;
    background-color: var(--color-blue);
}

    .progress__bar::after {
        --size: 0.4375em;
        left: 98%;
        content: "";
        position: absolute;
        width: var(--size);
        height: var(--size);
        border-radius: 100%;
        background-color: var(--color-blue-dark);
    }

.music-player__playlist {
    height: 100%;
    overflow: hidden auto;
    padding: 1.28125em 1.09375em 0 var(--offset-cover);
}

.music-player__song {
    --gap: 0.75em;
    cursor: pointer;
    margin-bottom: var(--gap);
    padding-bottom: var(--gap);
    border-bottom: 1.938px solid #d8d8d859;
}

    .music-player__song audio {
        display: none;
    }

.music-player__song-img {
    width: var(--cover-size);
    height: var(--cover-size);
    border-radius: var(--border-radius);
}

.music-player__playlist-info {
    width: 100%;
    overflow: hidden;
    line-height: 1.3;
    font-size: 1.06875em;
    margin-left: 0.7875em;
}

.music-player__song-duration {
    font-weight: bold;
    font-size: 0.7875em;
    color: var(--color-text-2);
}

@media screen and (min-width: 1366px) {
    .music-player {
        font-size: 1.17132vw;
    }
}

@media screen and (max-width: 480px) {
    .music-player {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 280px) {
    .music-player {
        font-size: 0.6rem;
    }
}

/* Gallery Styles */

section#aigenerator {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

h2 {
    font-size: 2rem;
    color: #4b4b7a;
}

form {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

label {
    font-size: 1.1rem;
    color: #333;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea::placeholder {
    color: #888;
    font-style: italic;
}

button {
    background-color: #4b4b7a;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #34345a;
}

/* Gallery Styles */
#imageGallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    justify-items: center;
    margin-bottom: 5vw;
}

#imageGallery div {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
}

#imageGallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
    display: block;
}

#imageGallery img:hover {
    cursor: pointer;
}

/* Caption Styles */
#imageGallery .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 5px 0;
    font-size: 1rem;
    white-space: nowrap; /* Keep the text in a single line */
    overflow: hidden;    /* Hide overflow */
    text-overflow: ellipsis; /* Show '...' if text is too long */
    transition: opacity 0.3s ease;
    opacity: 0;  /* Initially hidden */
}

#imageGallery div:hover .caption {
    opacity: 1;  /* Show caption on hover */
}

#imageGallery div:hover img {
    transform: scale(1.05);
}

/* Modal for Full Image */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal img {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Loading Animation */
#loading-main {
    display: none;
}

#link {color: #E45635;display:block;font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif;text-align:center; text-decoration: none;}
#link:hover {color: #a09f9f
}

#link, #link:hover {-webkit-transition: color 0.5s ease-out;-moz-transition: color 0.5s ease-out;-ms-transition: color 0.5s ease-out;-o-transition: color 0.5s ease-out;transition: color 0.5s ease-out;}

@keyframes rotate-loading {
    0%  {transform: rotate(0deg);-ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); -o-transform: rotate(0deg); -moz-transform: rotate(0deg);}
    100% {transform: rotate(360deg);-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); -o-transform: rotate(360deg); -moz-transform: rotate(360deg);}
}

@-moz-keyframes rotate-loading {
    0%  {transform: rotate(0deg);-ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); -o-transform: rotate(0deg); -moz-transform: rotate(0deg);}
    100% {transform: rotate(360deg);-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); -o-transform: rotate(360deg); -moz-transform: rotate(360deg);}
}

@-webkit-keyframes rotate-loading {
    0%  {transform: rotate(0deg);-ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); -o-transform: rotate(0deg); -moz-transform: rotate(0deg);}
    100% {transform: rotate(360deg);-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); -o-transform: rotate(360deg); -moz-transform: rotate(360deg);}
}

@-o-keyframes rotate-loading {
    0%  {transform: rotate(0deg);-ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); -o-transform: rotate(0deg); -moz-transform: rotate(0deg);}
    100% {transform: rotate(360deg);-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); -o-transform: rotate(360deg); -moz-transform: rotate(360deg);}
}

@keyframes rotate-loading {
    0%  {transform: rotate(0deg);-ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); -o-transform: rotate(0deg); -moz-transform: rotate(0deg);}
    100% {transform: rotate(360deg);-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); -o-transform: rotate(360deg); -moz-transform: rotate(360deg);}
}

@-moz-keyframes rotate-loading {
    0%  {transform: rotate(0deg);-ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); -o-transform: rotate(0deg); -moz-transform: rotate(0deg);}
    100% {transform: rotate(360deg);-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); -o-transform: rotate(360deg); -moz-transform: rotate(360deg);}
}

@-webkit-keyframes rotate-loading {
    0%  {transform: rotate(0deg);-ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); -o-transform: rotate(0deg); -moz-transform: rotate(0deg);}
    100% {transform: rotate(360deg);-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); -o-transform: rotate(360deg); -moz-transform: rotate(360deg);}
}

@-o-keyframes rotate-loading {
    0%  {transform: rotate(0deg);-ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); -o-transform: rotate(0deg); -moz-transform: rotate(0deg);}
    100% {transform: rotate(360deg);-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); -o-transform: rotate(360deg); -moz-transform: rotate(360deg);}
}

@keyframes loading-text-opacity {
    0%  {opacity: 0}
    20% {opacity: 0}
    50% {opacity: 1}
    100%{opacity: 0}
}

@-moz-keyframes loading-text-opacity {
    0%  {opacity: 0}
    20% {opacity: 0}
    50% {opacity: 1}
    100%{opacity: 0}
}

@-webkit-keyframes loading-text-opacity {
    0%  {opacity: 0}
    20% {opacity: 0}
    50% {opacity: 1}
    100%{opacity: 0}
}

@-o-keyframes loading-text-opacity {
    0%  {opacity: 0}
    20% {opacity: 0}
    50% {opacity: 1}
    100%{opacity: 0}
}
.loading-container,
.loading {
    height: 100px;
    position: relative;
    width: 100px;
    border-radius: 100%;
}


.loading-container { margin: 40px auto }

.loading {
    border: 2px solid transparent;
    border-color: transparent #656565 transparent #fff;
    -moz-animation: rotate-loading 1.5s linear 0s infinite normal;
    -moz-transform-origin: 50% 50%;
    -o-animation: rotate-loading 1.5s linear 0s infinite normal;
    -o-transform-origin: 50% 50%;
    -webkit-animation: rotate-loading 1.5s linear 0s infinite normal;
    -webkit-transform-origin: 50% 50%;
    animation: rotate-loading 1.5s linear 0s infinite normal;
    transform-origin: 50% 50%;
}

.loading-container:hover .loading {
    border-color: transparent #E45635 transparent #E45635;
}
.loading-container:hover .loading,
.loading-container .loading {
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

#loading-text {
    -moz-animation: loading-text-opacity 2s linear 0s infinite normal;
    -o-animation: loading-text-opacity 2s linear 0s infinite normal;
    -webkit-animation: loading-text-opacity 2s linear 0s infinite normal;
    animation: loading-text-opacity 2s linear 0s infinite normal;
    color: #656565;
    font-family: "Helvetica Neue, "Helvetica", ""arial";
    font-size: 10px;
    font-weight: bold;
    margin-top: 45px;
    opacity: 0;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: 0;
    width: 100px;
}

/* Caption visibility for mobile */
@media (max-width: 768px) {
    #imageGallery .caption {
        opacity: 1;  /* Always visible on mobile */
        background-color: rgba(0, 0, 0, 0.7);
    }
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    h2 {
        font-size: 1.5rem;
    }
}