@charset "utf-8";
body{
    background-color: rgba(0, 0, 85, 0.799);
}
/* メインのh1 */
.main h1 {
    position: absolute;
    color: rgb(0, 145, 255);
    font-size: 300%;
    margin-top: 1px;
    margin-bottom: 20px;
}
/* サブのh1（影） */
.sub h1 {
    position: absolute;
    color: white;
    margin-top: 4px;
    margin-left: 4px;
    font-size: 300%;
}
.startbtnlist {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 50px;
}
.startbtn {
    background-color: white;
    padding: 30px 50px;
    border-radius: 60px;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 8px 8px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid black;
    box-sizing: border-box;
    transition: 0.3s;
}
.startbtn:hover {
    filter: brightness(0.8);
    box-shadow: none;
    transform: translateY(2px);
}
.startbtn2 {
    background-color: white;
    padding: 30px 50px;
    border-radius: 60px;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 8px 8px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid black;
    box-sizing: border-box;
    transition: 0.3s;
}
.startbtn2:hover {
    filter: brightness(0.8);
    box-shadow: none;
    transform: translateY(2px);
}
button.FBbtn {
    position: absolute;
    cursor: pointer;
    background-color: rgb(0, 89, 255);
    font-size: 13px;
    padding: 16px 15px;
    color: white;
    font-weight: 550;
    border-radius: 7px;
    border: 0px;
    top: 20px;
    right: 20px;
}
button.FBbtn:hover {
    filter: brightness(1.3);
}
button.expbtn {
    position: absolute;
    top: 20px;
    right: 165px;
    background-color: rgb(0, 89, 255);
    font-size: 13px;
    padding: 16px 15px;
    color: white;
    font-weight: 550;
    border-radius: 7px;
    border: 0px;
    cursor: pointer;
}
button.expbtn:hover {
    filter: brightness(1.3);
}
button.mgmtbtn {
    position: absolute;
    background-color: rgb(0, 89, 255);
    padding: 13.1px 15px;
    border-radius: 5px;
    top: 20px;
    right: 20px;
    font-size: 13px;
    border: 0px;
    cursor: pointer;
    color: white;
    font-weight: 500;
    font-family: "Playwrite IE", cursive;
}
button.mgmtbtn:hover {
    filter: brightness(1.3);
}
.mgmt-screen {
    /* 機能を追加するときにオフにする */
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    /* サイズ指定 */
    width: 600px;   /* 横幅 */
    height: calc(100vh -40px);  /* 縦幅 */
    background-color: rgb(200, 15, 197);
    padding: 20px;
    border-radius: 15px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 600px;
    box-sizing: border-box;
    box-shadow: 8px 8px 5px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}
.mgmt-back-screen {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}
.mgmt {
    font-size: 35px;
    margin: 0;
    white-space: nowrap;
    z-index: 9997;
}
button.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 35px;
    cursor: pointer;
    color: white;
    background-color: rgba(255, 255, 255, 0);
    border: 0px;
    z-index: 9997;
}
.typing-screen {
    position: absolute;
    inset: 0;
    margin: auto;
    display: none;
}
.type-word {
    position: absolute;
    top: 56%;
    left: 50%;
    font-size: 50px;
    transform: translateX(-50%);
    color: white;
}
.score-combo {
    position: absolute;
    top: 36%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 35px;
    align-items: center;
}
.score {
    font-size: 35px;
    color: white;
}
.combo {
    font-size: 35px;
    color: white;
}
.timer {
    position: absolute;
    top: 27%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 35px;
    color: white;
}
.type-roma {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translateX(-50%);
}
.type-roma span {
    position: static !important;
    display: inline;
    font-size: 40px;
    color: white;
    margin: 0 1px;
}
.type-roma span.typed {
    color: orange !important;
}
.result-screen {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.result-box {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    min-width: 300px;
}
.end-display {
    margin-bottom: 20px;
}
.result-score {
    font-size: 24px;
    color: #4CAF50;
    margin-bottom: 30px;
}
.home-btn {
    background-color: rgb(0, 89, 255);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}
.home-btn:hover {
    filter: brightness(1.3);
}