#solis-cover {
    background-color: rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#solis-cover .solis-cover-logo-wrapper {
    position: relative;
    display: inline-block;
}

#solis-cover .solis-cover-logo {
    width: 750px;
    max-width: 80%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transform-origin: bottom center;
}

#solis-cover .solis-cover-part {
    position: absolute;
    top: 51.2%;
    left: 41.5%;
    transform: translate(-50%, -50%);
    width: 20%;
    max-width: 150px;
    pointer-events: none;
}

#solis-cover .solis-cover-motto {
    font-size: 45px;
    font-family: 'Dongle';
    max-width: 75%;
    text-align: center;
    line-height: 0.75;

    margin: 40px 0px;
}

#solis-cover>*:not(#trailer-container) {
    transition: opacity 1s ease;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

#trailer-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

#trailer-container.active {
    opacity: 1;
    pointer-events: all;
}

#trailer-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes frog-jump {
    0% {
        transform: scale(1) translateY(0);
    }

    20% {
        transform: scale(1.1, 0.9) translateY(0);
    }

    40% {
        transform: scale(0.95, 1.15) translateY(-20px);
    }

    60% {
        transform: scale(1.05, 0.95) translateY(0);
    }

    80% {
        transform: scale(0.98, 1.02) translateY(-5px);
    }

    100% {
        transform: scale(1) translateY(0);
    }
}

#the-game {
    background-color: var(--color-bg-dark-alpha);
    color: var(--color-text-light);
    padding: 30px;
}

#characters {
    padding: 30px;
}

.hidden-link {
    text-decoration: none;
}

.character-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    width: 100%;
}

.polaroid-appendix {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: none;
    margin-bottom: 0;
    width: 95vw;
    max-width: 900px;
    min-width: 320px;
    box-sizing: border-box;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.polaroid-card {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    width: 220px;
    min-width: 180px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 1px 16px;
    position: relative;
    margin-bottom: 0;
    transition: transform 0.2s;
    border-right: 1.5px solid #eee;
    justify-content: center;
}

.polaroid-frame:hover {
    transform: scale(1.03) rotate(-1deg);
    box-shadow: none;
}

.polaroid-frame {
    position: relative;
    width: 220px;
    height: 260px;
    overflow: visible;
    border-radius: 8px;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -30px;
    margin-bottom: -30px;
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
}

@keyframes polaroid-frame-swing {
    0% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }

    100% {
        transform: rotate(-3deg);
    }
}

.polaroid-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    overflow: hidden;
}

.polaroid-photo {
    position: absolute;
    width: 240px;
    height: 240px;
    transform: translate(-50%, -50%);
    object-fit: cover;
    will-change: transform;
    z-index: 3;
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
    pointer-events: auto;
    overflow: visible;
    clip-path: none;
}

.polaroid-photo.nina {
    top: 59%;
    left: 50%;
}

.polaroid-photo.ram {
    top: 52.95%;
    left: 61.55%;
    height: 78%;
}

.polaroid-photo.diluvio {
    top: 42.15%;
    left: 54.75%;
    border-radius: 8px;
    overflow: auto;
    height: 100%;
}

.polaroid-caption {
    font-family: 'Dongle', cursive;
    font-size: 2.1rem;
    font-weight: bold;
    color: #222;
    margin-top: 12px;
    margin-bottom: 4px;
    letter-spacing: 1px;
    text-align: center;
}

.polaroid-description {
    flex: 1 1 0;
    font-size: 1.15rem;
    color: #222;
    background: #fff;
    border-radius: 0 16px 16px 0;
    box-shadow: none;
    padding: 32px 32px 32px 32px;
    min-width: 0;
    max-width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    z-index: -1;
    position: relative;
}

#lore {
    background-color: var(--color-bg-dark-alpha);
    color: var(--color-text-light);
    padding: 30px;
}

.froggy-title .propeller {
    width: 30px;
    margin-left: -15px;
    margin-right: -15px;
    margin-bottom: -5px;
    z-index: 300;
    transform: scale(1.01);
    animation: propeller-spin 1s linear infinite;
}

@keyframes propeller-spin {
    0% {
        transform: scale(1.01) rotate(0deg);
    }

    100% {
        transform: scale(1.01) rotate(360deg);
    }
}

@media (max-width: 700px) {
    .polaroid-appendix {
        flex-direction: column;
        width: 98vw;
        max-width: 95vw;
        border-radius: 16px;
    }

    .polaroid-card {
        border-right: none;
        border-bottom: 1.5px solid #eee;
        border-radius: 16px 16px 0 0;
        width: auto;
        max-width: none;
        padding-bottom: 0px;
    }

    .polaroid-description {
        border-radius: 0 0 16px 16px;
        padding: 0px 16px;
        text-align: center;
        width: fit-content;
        justify-content: center;
    }

    .polaroid-frame {
        animation: polaroid-frame-swing 5s ease-in-out infinite;
    }

    #the-game,
    .polaroid-description,
    #lore {
        text-align: justify;
    }
}

#gallery {
    padding: 30px;
}

#itchio {
    background-color: var(--color-bg-dark-alpha);
    color: var(--color-text-light);
    padding: 30px;
}