@font-face {
    font-family: "Gen Jyuu Gothic";
    src: local("GenJyuuGothic"),
    url(fonts/GenJyuuGothic-Medium.ttf) format("truetype");
}

@font-face {
    font-family: "Gen Jyuu Gothic";
    src: local("GenJyuuGothic"),
    url(fonts/GenJyuuGothic-Bold.ttf) format("truetype");
    font-weight: bold;
}

body {
    margin: 0;
    font-family: "Gen Jyuu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* androidで画面を引っ張った時にreloadするのを防ぐために、overscroll-behavior-y: noneを指定する*/
    overscroll-behavior-y: none;
    height: 100%;
    width: 100vw;
}

iframe {
    height: 100%;
    width: 100%;
    border: none;
    display: block;
    position: absolute;
    top: 0;
}

.overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.averageModal {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-family: 'Gen Jyuu Gothic', sans-serif;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.average-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 30%;
}
.average-score-title {
    font-weight: 700;
    font-size: 24px;
    color: white;
}
.average-score-value {
    font-weight: 700;
    font-size: 80px;
    color: white;
}
.challenge-text {
    font-weight: 700;
    font-size: 32px;
    color: #F8D34F;
    text-align: center;
}
.tap-start {
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.retryModal {
    position: absolute;
    font-family: 'Gen Jyuu Gothic', sans-serif;
    width: 100%;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.retry-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-right: 24px;
    padding-left: 24px;
}

.retryModal .explain {
    margin-top: 8px;
    object-fit: contain;
    max-width: 480px;
    width: 100%;
    height: auto;
}

.retryModal .promo-text {
    margin-top: 15px;
    color: white;
}

.retryModal .play {
    color: white;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    border-radius: 16px;
    background: #418EE8;
    border: none;
    padding: 13px 26px;
    align-self: center;
}

.retryModal .retry {
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    border-radius: 16px;
    background: #F6F8FC;
    border: none;
    padding: 13px 26px;
    align-self: center;
    color: #1D3461;
}

.retryModal .disableRetryBtn {
    width: 167px;
    height: 48px;
}

.scoreModal {
    position: absolute;
    gap: 16px;
    font-family: 'Gen Jyuu Gothic', sans-serif;
    color: #FFFFFF;
    width: 100%;
    height: 100%;
    background-color: rgba(191, 109, 84, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.1s ease-in-out;
    z-index: 2;
}

.score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 10%;
}

.about-game {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.game-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 5px;
}

.graph {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -220px;
}

.high-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.high-score-text {
    font-weight: 700;
    font-size: 24px;
    text-align: center;
}

.high-score-number {
    font-weight: 700;
    font-size: 60px;
    text-align: center;
}

.score-distribution {
    font-weight: 500;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    z-index: 3;
    display: flex;
    margin-top: -170px;
}

.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
    position: relative;
 }

.time-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    maring-top: -150px;
    z-index: 3;
    position: relative;
}

.feedback-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.2);
    transition: transform 0.1s ease-in-out;
    gap: 8px;
}

.feedback-message {
    font-weight: 700;
    font-size: 32px;
    text-align: center;
    line-height: 1.3125;
    margin-top: 0px;
}

.next-rank {
    font-weight: 700;
    font-size: 16px;
    text-align: center;
}

.next-button {
    background-color: #F6F8FC;
    border-radius: 16px;
    padding: 0px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -10px;
    width: auto;
    height: 48px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.next-button-text {
    font-weight: 700;
    font-size: 14px;
    color: #1D3461;
}
