* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 16px;

    font-family: "Cousine", monospace;

    background: #808080;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    transition: background-image 0.6s ease;
}


.window {
    width: 500px;
    max-width: 520px;

    background: #c0c0c0;

    border-top: 3px solid white;
    border-left: 3px solid white;
    border-right: 3px solid #404040;
    border-bottom: 3px solid #404040;

    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.35);
}


.title-bar {
    background: #000080;
    color: white;

    padding: 8px 10px;

    font-weight: bold;
    letter-spacing: 0.5px;
}


.content {
    padding: 20px;

    animation: fade 0.35s ease;
}


#scene-image {
    display: none;

    width: 150px;
    height: 150px;

    margin: 0 auto 15px;

    object-fit: cover;

    border: 2px solid #404040;
}


.full-image {
    width: 100% !important;
    height: auto !important;

    max-height: 400px;

    object-fit: fill;

    border: none !important;

    margin-bottom: 18px;
}


#text {
    padding: 18px;

    line-height: 1.8;

    text-align: justify;

    margin-bottom: 15px;

    overflow-wrap: break-word;
}


/* =========================
   PAGE 4 INPUT AREA
   ========================= */

#input-area {
    display: none;

    margin-top: 15px;
}


#playerName {
    width: 100%;

    padding: 10px;

    margin-bottom: 15px;

    font-family: inherit;
    font-size: 14px;

    box-sizing: border-box;
}


.avatar-title {
    text-align: center;

    margin-bottom: 10px;
}


#avatar-select {
    display: flex;

    justify-content: center;

    gap: 18px;

    margin-bottom: 20px;
}


.avatar {
    width: 90px;
    height: 90px;

    border: 2px solid transparent;

    cursor: pointer;

    object-fit: cover;

    transition: 0.2s;
}


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


.avatar.selected {
    border: 3px solid #000080;
}


/* =========================
   CHOICES + PASSWORD
   ========================= */

#choices {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 10px;

    margin-top: 15px;
}


/* Page 11 password container */

.password-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.password-input {
    width: 200px;
    padding: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    text-align: center;
}

.password-container button {
    width: 200px;
}

.password-message {
    min-height: 20px;
    text-align: center;
    font-size: 13px;
}

/* =========================
   BUTTONS
   ========================= */

button {
    width: 100%;

    padding: 8px;

    cursor: pointer;

    font-family: inherit;
    font-size: 15px;

    background: #c0c0c0;

    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
}


button:hover {
    background: #d6d6d6;
}


button:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}


/* =========================
   ANIMATION
   ========================= */

@keyframes fade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 550px) {

    body {
        min-height: 100dvh;

        align-items: center;
    }


    .window {
        width: 95%;

        max-width: 520px;
    }


    .title-bar {
        padding: 7px 8px;

        font-size: 13px;
    }


    .content {
        padding: 10px;
    }


    #text {
        padding: 10px;

        font-size: 12px;

        line-height: 1.7;

        margin-bottom: 20px;

        text-align: justify;
    }


    #scene-image {
        width: 120px;
        height: 120px;
    }


    .avatar {
        width: 75px;
        height: 75px;
    }


    button {
        font-size: 14px;
    }


    .password-input {
        width: 200px;

        font-size: 13px;
    }

}