@font-face {
    font-family: 'Quicksand';
    src: url('./fonts/Quicksand-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Quicksand';
    src: url('./fonts/Quicksand-SemiBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'Quicksand';
    src: url('./fonts/Quicksand-Bold.ttf') format('truetype');
    font-weight: bolder;
    font-style: normal;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Quicksand', sans-serif;
}

#layout{
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.logo {
    position: absolute;
    top: 2%;
    left: 2%;
    height: 8%;
    user-select: none;
}

#languageSelector {
    position: absolute;
    top: 5%;
    right: 5%;
}

#languageSelector select {
    font-size: 1em;
    padding: 5px;
    border-radius: 5px;
    border: none;
    background-color: #333333cc;
    color: white;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
}

#character {
    height: 69%;
    aspect-ratio: 9 / 16;
    position: absolute;
    bottom: 20%;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease-in-out;
}

#character.left {
    left: 30%;
}

#character.center {
    left: 50%;
}

#character.right {
    left: 70%;
}

#dialogue {
    position: absolute;
    bottom: 5%;
    width: 80%;
    height: 15%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    border-radius: 10px;
    font-size: 1.2em;
    box-sizing: border-box;
    overflow-y: auto;
}

#dialogue ol {
    margin: 0;
}

#dialogue ol li{
    font-size: 0.9em;
    cursor: pointer;
    user-select: none;
}

#loadingScreen{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(65, 65, 65);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    z-index: 1000;

}

#loadingScreen.hidden{
    animation: fadeOut 1s 0.3s forwards;
}

#prevArrow, #nextArrow {
    position: absolute;
    font-size: 2em;
    color: #dfa0d4;
    cursor: pointer;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.6);
    width: 1.5em;
    height: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
}

#prevArrow {
    bottom: 8%;
    left: 5%;
    transform: translateY(-50%);
    animation: shake-left 1.5s 3;
}

#nextArrow {
    bottom: 8%;
    right: 5%;
    transform: translateY(-50%);
    animation: shake-right 1.5s 3;
}

#prevArrow.hidden, #nextArrow.hidden {
    animation: fadeOut 0.5s forwards;
}

@keyframes shake-left {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-3px); }
}
@keyframes shake-right {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(3px); }
}


@keyframes fadeOut {
    0% {
        opacity: 1;
        z-index: 1000;
    }

    99% {
        opacity: 0;
        z-index: 1000;
    }
    100% {
        opacity: 0;
        z-index: -1;
    }
}

.background_preload {
    z-index: -999;
    position: absolute;
    width: 0;
}

.supportFrame#character_frame {
    position: absolute;
    width: 50%;
    right: 10%;
    height: 60%;
    bottom: 25%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    z-index: -1;
    animation: indexFadeOut 0.5s forwards;
}

.supportFrame#character_frame.active {
    animation: indexFadeIn 0.5s forwards;
}

@keyframes indexFadeIn {
    0% {
        opacity: 0;
        z-index: -1;
    }
    10% {
        opacity: 0;
        z-index: 10;
    }
    100% {
        opacity: 1;
        z-index: 10;
    }
}

@keyframes indexFadeOut {
    0% {
        opacity: 1;
        z-index: 10;
    }
    90% {
        opacity: 0;
        z-index: 10;
    }
    100% {
        opacity: 0;
        z-index: -1;
    }
}

.supportFrame#character_frame .character_option {
    width: 30%;
    cursor: pointer;
    transition: all 0.2s;
    mask-image: radial-gradient(circle at center, black 60%, transparent 70%);
    border: solid 3px transparent;
    border-radius: 1000px
}

.supportFrame#character_frame .character_option:hover {
    transform: scale(1.1);
}

.supportFrame#character_frame .character_option.active {
    transform: scale(1.1);
    border: solid 10px #fec75f;
}

.supportFrame#media_frame {
    position: absolute;
    width: 50%;
    right: 5%;
    height: 60%;
    bottom: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    z-index: -1;
    animation: indexFadeOut 0.5s forwards;
    gap: 10px;
}

.supportFrame#media_frame.active {
    animation: indexFadeIn 0.5s forwards;
}

.media_option{
    background-size: cover;
    background-repeat: no-repeat;
    height: 30%;
    aspect-ratio: 2 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
    cursor: pointer;
    user-select: none;
}

.media_option:hover {
    transform: scale(1.05);
}

.media_option[data-media="gallery"] {
    background-image: url('images/Gallery.webp');
}

.media_option[data-media="videos"] {
    background-image: url('images/Videos.webp');
}

.media_option[data-media="music"] {
    background-image: url('images/Music.webp');
}




.supportFrame#links_frame {
    position: absolute;
    width: 13rem;
    left: calc(50% - 20%);
    transform: translateX(-50%);
    height: 55%;
    bottom: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    z-index: -1;
    animation: indexFadeOut 0.5s forwards;
    gap: 15px;
    flex-wrap: wrap;
    align-content: center;
}

.supportFrame#links_frame.active {
    animation: indexFadeIn 0.5s forwards;
}

.supportFrame#links_frame .link_option {
    font-size: 3em;
    padding: 10px;
    box-sizing: border-box;
    font-family: 'Font Awesome 6 Brands';
    font-weight: 400;
}

.supportFrame#links_frame a {
    text-decoration: none;
    color: #fec75f;
    text-shadow: 1px 1px 2px #00000050;
    transition: all 0.3s;
}

.supportFrame#links_frame a:hover {
    color: #ffdd87;
    text-shadow: 1px 1px 3px #00000080;
}


.SwiperContainer {
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 11;
    position: absolute;
    background-color: #00000050;
    backdrop-filter: blur(5px);
    animation: indexFadeIn 0.5s forwards;
}

.SwiperContainer.hidden {
    opacity: 0;
    z-index: -1;
    animation: indexFadeOut 0.5s forwards;
}

.slider{
    height: 100%;
}

.slider div.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider div.swiper-slide img {
    max-width: 80%;
    max-height: 80%;
    object-fit: cover;
}

.close_button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2em;
    color: rgb(241, 161, 221);
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 12;
}