@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

body {
    background-image: url('../bg-2.jpg');
    margin: 0;
    font-family: "Audiowide", serif;
}

button {
    font-family: "Audiowide", serif;
}

.gameCanvasContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: 360px;
}

.gameCanvasBoard {
    width: 100%;
    text-align: center;
}

.gameScores {
    color: #fff;
    font-size: 48px;
    line-height: 60px;
    margin: 15px 0 0;
}

.gameScore {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.gameScore button {
    background: none;
    border: none;
    cursor: pointer;
}

.gameScore button svg {
    width: 20px;
    fill: #6e38b4;
    transition: 0.25s fill;
}

.gameScore button:hover svg {
    fill: #fff;
}

.gameScoreText.winning, span.green {
    color: #07e174;
}

.gameScoreText.losing, span.red {
    color: #fa5457;
}

.gameScoreIndicator {
    /* display: none; */
    opacity: 0;
    transition: 0.25s opacity;
    width: 40px;
    position: absolute;
    top: 0;
}

.gameScoreIndicator.gameScorePlus {
    left: calc(50% - 90px);
}

.gameScoreIndicator.gameScoreMinus {
    right: calc(50% - 90px);
}

.gameLabel {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    line-height: 14px;
    display: block;
    padding: 0 4px;
    border-radius: 4px;
    background-color: #6e38b4;
    color: #fff;
}

.gameLabel.score {
    left: 50%;
    transform: translateX(-50%);
}

.gameCanvasWrapper {
    position: relative;
    width: 100%;
    height: 540px;
    border: 2px solid #17224e;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px #3850b4;
}

.gameCanvasScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.gameCanvasRestart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.gameCanvasRestart h2 {
    margin-top: 40px;
}

.gameCanvasRestart p {
    margin: 0;
}

/* .gameCanvasRestartButton {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    background: #5fa55a;
    border: none;
    border-radius: 4px;
    color: white;
    transition: background-color 0.3s;
}

.gameCanvasRestartButton:hover {
    background: #4c8447;
} */

.gameControls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
}

.gameStartButton {
    padding: 10px 15px;
    font-size: 24px;
    background: #6e38b4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
}

.gameStartButton:hover {
    background: #07e174;
}

.gameStartButton svg {
    fill: #fff;
    width: 16px;
}

.gameCanvasDifficulty {
    display: flex;
    gap: 4px;
}

.gameCanvasSetDifficulty {
    padding: 5px 12px;
    font-size: 14px;
    background: none;
    color: white;
    border: 1px solid #6e38b4;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gameCanvasSetDifficulty.active {
    background: #6e38b4;
}

.gameCanvasSetDifficulty:hover {
    background: #6e38b4;
}

.gameInstruction {
    display: flex;
    text-align: left;
    font-size: 13px;
    gap: 8px;
    align-items: center;
    margin: 4px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #2f0962;
}

.gameInstructionImage {
    width: 75px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gameInstructionImage span {
    display: flex;
    width: 28px;
    font-size: 12px;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #07e174;
}

.gameStartButtonTop, .gameStopButtonTop {
    position: relative;
}