.ac-game-settings {
    width: 100%;
    height: 100%;
    background-image: url("/static/image/menu/background.gif");
    background-size: 100% 100%;
    user-select: none;
}

.ac-game-settings-login {
    height: 50vh;
    width: 40vh;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.ac-game-settings-register {
    height: 52vh;
    width: 40vh;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.ac-game-settings-title {
    color: white;
    font-size: 3vh;
    text-align: center;
    height: 7vh;
    padding-top: 2vh;
    margin-bottom: 2vh;
}

.ac-game-settings-username {
    display: block;
    height: 7vh;

}

.ac-game-settings-password {
    display: block;
    height: 7vh;
}

.ac-game-settings-item {
    width: 100%;
    height: 90%;

}

.ac-game-settings-submit {
    display: block;
    height: 7vh;
}

.ac-game-settings-item > button {
    color: white;
    width: 90%;
    line-height: 5vh;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2vh;
    background-color: #4CAF50;
    border-radius: 10px;
}

.ac-game-settings-item > input {
    width: 90%;
    line-height: 5vh;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2vh
}

.ac-game-settings-error-messages {
    color: red;
    font-size: 1.8vh;
    display: inline;
    float: left;
    padding-left: 1vw;
}

.ac-game-settings-option {
    color: white;
    font-size: 1.8vh;
    display: inline;
    float: right;
    padding-right: 1vw;
    cursor: pointer;
}

.ac-game-settings-acwing {
    display: block;
    height: 7vh;
}

.ac-game-settings-acwing > img {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.ac-game-settings-acwing > div {
    color: white;
    font-size: 1.5vh;
    text-align: center;
    display: block;
    position: relative;
    top: 35%;
}

.ac-game-menu {
    width: 100%;
    height: 100%;
    background-image: url("/static/image/menu/background.gif");
    background-size: 100% 100%;
    user-select: none;
}

.ac-game-menu-field {
    width: 40vw;
    position: relative;
    top: 30%;
    left: 30%;
}

.ac-game-menu-field-item {
    color: white;
    height: 7vh;
    width: 38vw;
    font-size: 6vh;
    font-style: italic;
    padding: 2vh;
    cursor: pointer;
    text-align: center;
    background-color: rgba(39, 21, 28, 0.6);
    border-radius: 10px;
    letter-spacing: 0.1vw;
}

.ac-game-menu-field-item:hover {
    transform: scale(1.2);
    transition: 100ms;
}

.ac-game-menu-tips-field {
    width: 2.2vw;
    height: 10vh;
    top: 30%;
    left: 0;
    color: white;
    font-style: italic;
    text-align: center;
    display: table-cell;
    vertical-align: middle;
    cursor: pointer;
    background-color: rgba(39, 21, 28, 0.6);
    border-radius: 10px;
    letter-spacing: 0.1vw;
}

.ac-game-menu-tips-field:hover {
    transform: scale(1.2);
    transition: 100ms;
}

.ac-game-menu-tips-text {
    width: 20vw;
    height: 30vh;
    top: 20%;
    left: -20vw;
    color: white;
    font-style: italic;
    text-align: left;
    white-space: pre;
    display: table-cell;
    vertical-align: middle;
    cursor: pointer;
    background-color: rgba(39, 21, 28, 0.6);
    border-radius: 10px;
    letter-spacing: 0.1vw;
    transition: left 0.3s ease;
}

.ac-game-menu-tips-text.active {
    left: 0;
}

.ac-game-preferences {
    width: 100%;
    height: 100%;
    background-image: url("/static/image/menu/background.gif");
    background-size: 100% 100%;
    user-select: none;
}

.ac-game-preferences-field {
    width: 40vw;
    position: relative;
    top: 30%;
    left: 30%;
}

.ac-game-preferences-field-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    left: 30%;
    color: #496cee;
}

.ac-game-preferences-field-button {
    width: 100px;
    line-height: 40px;
    margin: 0 auto;
    background-color: #4CAF50;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    color: white;
    font-style: italic;
    font-size: 2vh;
    text-align: center;
    position: relative;
    left: -5%;
}

.ac-game-preferences-field-button:hover {
    transform: scale(1.05);
}


.ac-game-preferences-filed-avatars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.ac-game-preferences-field-option {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 10px;
    font-size: 26px;
    font-family: math;
    font-style: italic;
    color: #006cf7;
}

input[type="range"] {
    width: 60%;
}

.ac-game-preferences-field-check {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 10px;
    font-size: 26px;
    font-family: math;
    font-style: italic;
    color: #006cf7;
}

.ac-game-preferences-field-avatars-img {
    width: 10vh;
    height: 10vh;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: border-color 0.3s;
}

.ac-game-preferences-field-avatars-img:hover {
    border-color: #aaa;
}

.ac-game-preferences-field-avatars-selected {
    border-color: #4CAF50;
}

.ac-game-playground {
    width: 100%;
    height: 100%;
    user-select: none;
    background-color: black;
}

.ac-game-playground-field {
    position: absolute;
    top: 0%;
    left: 5%;
    width: 35px;
    height: 35px;
}

.ac-game-playground-field-music {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.ac-game-playground > canvas {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ac-game-playground-field-music-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    z-index: 10000000;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.ac-game-playground-field-music-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.ac-game-playground-field-music-icon.spinning {
    /* * 'rotate' 是下面 @keyframes 定义的动画名
     * '2s' 是旋转一周的时间
     * 'linear' 表示匀速旋转
     * 'infinite' 表示无限循环
     */
    animation: rotate 2s linear infinite;
    }

    /* 定义旋转动画 */
    @keyframes rotate {
        from {
            transform: rotate(0deg);
        }
        to {
            transform: rotate(360deg);
        }
    }

    .ac-game-chat-field-history {
        position: absolute;
        top: 66%;
        left: 20%;

        transform: translate(-50%, -50%);

        width: 20%;
        height: 32%;

        color: white;
        font-size: 2vh;

        padding: 5px;
        overflow: auto;
    }

    .ac-game-chat-field-history::-webkit-scrollbar {
        width: 0;
    }

    .ac-game-chat-field-input {
        position: absolute;
        top: 86%;
        left: 20%;
        transform: translate(-50%, -50%);

        width: 20%;
        height: 3vh;

        color: white;
        font-size: 2vh;

        background-color: rgba(222,225,230, 0.2);
    }

