@font-face {
    font-family: 'KCC-Hanbit';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2403-2@1.0/KCC-Hanbit.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'KCC-Hanbit';
    background: url(../asset/images/GameScreen_BackGround.png);
    background-size: cover;
    color: white;
    text-align: center;
    margin: 0;
}

body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-use-select: none;
    user-select: none;
}

.container {
    width: 90%;
    margin: auto;
    padding: 3vh;
}

.round {
    display: flex;
    position: absolute;
    z-index: 3;
    background-color: #323d58;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 18vh;
    overflow: hidden;
    transform: translate(0%, -100%);
}

@keyframes showRoundBox {
    0% {
        transform: translate(0%, -100%);
    }
    12.5% {
        transform: translate(0%, 0%);
    }
    87.5% {
        transform: translate(0%, 0%);
    }
    100% {
        transform: translate(0%, -100%);
    }
}

.round span {
    top: 50%;
    font-size: 10vh;
    transform: translate(-100vw, 0);
}

@keyframes showRound {
    0% {
        transform: translate(-100vw, 0);
    }
    100% {
        transform: translate(100vw, 0);
    }
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: black;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: showEffect 0.5s ease-in-out;
}

@keyframes showEffect {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.modal-content {
    height: 10vh;
    display: flex;
}

.top-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.back-button {
    align-self: flex-start;
    background: none;
    margin-top: 4vh;
    border: none;
    color: white;
    font-size: 2vh;
    cursor: pointer;
}

.score-board {
    font-size: 5vh;
}

.game-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.item-container {
    height: 57vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2vh;
    background-color: #323d58;
    border-radius: 10px;
}
  
.item-text {
    font-size: 3vh;
    margin-bottom: 20px;
}
  
.items {
    width: 10vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 2vh;
}
  
.item {
    display: flex;
    background-color: #f0f0f0;
    color: #323d58;
    border-radius: 10px;
    aspect-ratio: 4 / 3; /* 3:4 비율을 유지 */
    cursor: pointer; 
    justify-content: center;
}

.specialItem {
    display: flex;
    background-color: #f0f0f0;
    color: #323d58;
    border-radius: 10px;
    aspect-ratio: 4 / 4.5; /* 3:4 비율을 유지 */
    cursor: pointer; 
    justify-content: center;
}

.items img {
    width: 70%;
    object-fit: cover;
}

@media (max-width: 600px) {
    .container {
        width: 90%;
        margin: auto;
        padding: 5vw;
    }

    .back-button {
        align-self: flex-start;
        background: none;
        margin-top: 5vw;
        border: none;
        color: white;
        font-size: 3vw;
        cursor: pointer;
    }

    .score-board {
        font-size: 7vw;
    }

    .game-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        flex-wrap: wrap;
    }

    .item-container {
        width: 84vw;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2vw;
        background-color: #323d58;
        border-radius: 10px;
    }
      
    .item-text {
        font-size: 6vw;
        margin-bottom: 2vw;
    }
      
    .items {
        width: auto;
        height: 16vw;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        gap: 2vw;
    }
      
    .item {
        display: flex;
        background-color: #f0f0f0;
        color: #323d58;
        border-radius: 10px;
        aspect-ratio: 4 / 3; /* 3:4 비율을 유지 */
        cursor: pointer; 
        justify-content: center;
    }

    .specialItem {
        display: flex;
        background-color: #f0f0f0;
        color: #323d58;
        border-radius: 10px;
        aspect-ratio: 4 / 4.5; /* 3:4 비율을 유지 */
        cursor: pointer; 
        justify-content: center;
    }
}