/* Header */
@media only screen and (max-width: 960px) {
    body header #logo {
        margin-left: 7px;
        height: 40px;
    }
}
@media only screen and (max-width: 620px) {
    body header #login-bar {
        margin-right: 9px;
    }
    body header #login-bar #login-bar-icon {
        height: 25px;
    }
}
@media only screen and (max-width: 520px) {
    body header #login-bar {
        flex-direction: column;
    }
    body header #login-bar #login-bar-icon {
        height: 20px;
    }
    body header #login-bar p {
        font-size: 17px;
    }
}
@media only screen and (max-width: 370px) {
    body header #login-bar #login-bar-icon {
        height: 17px;
    }
    body header #login-bar p {
        font-size: 16px;
    }
    body header #logo {
        height: 30px;
    }
}

/* Index */
@media only screen and (max-height: 550px) {
    body main section#index-first #heading {
        margin-bottom: 35px;
    }
}
@media only screen and (max-width: 390px) {
    body main section#index-first #login #auth-form input[type=submit] {
        width: 160px;
    }
    body main section#index-first #login #login-form input[type=submit], body main section#index-first #login #auth-form input[type=submit] {
        font-size: 14px;
    }
    body main section#index-first #login #login-form input#login-form-code, body main section#index-first #login #auth-form input#login-form-code, body main section#index-first #login #login-form input#login-form-password, body main section#index-first #login #auth-form input#login-form-password {
        font-size: 17px;
    }
}

/* Game */
@media only screen and (max-width: 450px) {
    body main section#game-first .template h2 {
        font-size: 28px;
    }
    body main section#game-first .template p {
        font-size: 17px;
    }
}
@media only screen and (max-width: 400px) {
    body main section#game-first {
        padding: 20px;
    }
    body main section#game-first .template {
        height: calc(100vh - 90px - 40px);
    }
    body main section#game-first .template::before {
        width: min(430px, calc(100vw - 80px));
    }
    body main section#game-first .template #progress-form #progress-button {
        padding: 9.5px 20px;
    }
}
@media only screen and (max-width: 300px) {
    body main section#game-first .template h2 {
        font-size: 25px;
    }
    body main section#game-first .template p, body main section#game-first .template #progress-form #progress-button {
        font-size: 15px;
    }
}
@media only screen and (max-height: 640px) {
    body main section#game-first .template {
        gap: 15px;
    }
}