/* ScoreBoard */
.scoreboard {
    width: 19rem;
    
    margin: 2.4rem auto 0.8rem;
}

.scoreboard #score {
    font-size: 1.6rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.scoreboard #time {
    font-size: 0.96rem;
    line-height: 1.2;
}



/* GameBoard */
.gameboard {    
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;

    width: 19.2rem;
    height: 19.2rem;
    
    margin: 0 auto;
    border: 0.04rem solid #000000;
}

.gameboard .box {
    width: 100%;
    aspect-ratio: 1 / 1;

    border: 0.04rem solid #000000;

    overflow: hidden;
}



/* IMG */
@keyframes inout {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gameboard .box img {
    display: none;

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    
    animation: inout 0.2s ease-in;
    
    cursor: pointer;
    pointer-events: auto;
}



/* Buttons */
.buttons #start {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    position: absolute;
    top: 28rem;
    left: 50%;
    transform: translate(-50%, -50%);
    
    padding: 1.6rem;
    border-radius: 1.6rem;
    
    font-size: 2.4rem;
    white-space: nowrap;

    color: #FFFFFF;
    background-color: #1A294D;
}

#time-log, #score-log {
    font-size: 0.4rem;
}

.buttons #start-btn {
    margin-top: 0.4rem;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 0.8rem;
    
    font-size: 1.6rem;
    font-weight: bold;

    color: #F0F8FF;
    background-color: #1E90FF;
    
    animation: inout 0.3s ease-in;
    
    cursor: pointer;
}

.buttons #difficulty {
    display : flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.6rem;

    position: absolute;
    top: 8rem;
    left: 50%;
    transform: translate(-50%, -50%);
    
    padding: 1.2rem;
    border-radius: 1.2rem;

    background-color: #1A294D;
}

.buttons #difficulty button {
    width: 100%;

    padding: 0 0.6rem;
    border: none;
    border-radius: 0.6rem;
    
    font-size: 1.2rem;

    color: #F0F8FF;
    background-color: #1E90FF;
}

.buttons #difficulty button.select {
    color: #F0F8FF;
    background-color: #FF1E1E;
}

.buttons #start-count-down {
    display: none;

    position: absolute;
    top: 16rem;
    left: 50%;
    transform: translate(-50%, -50%);
    
    font-size: 8rem;
    font-weight: bold;
}
