body {
    background-color: #3a3a3a;
    font-family: Arial, sans-serif;
    margin: 0;
    justify-content: center;
    justify-content: center;
    padding: 0;
}

canvas {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-right: calc(50% - 200px);
    background-color: #000;
}

.outputBox {
    margin-bottom: 20px;
}

.output {
    display: none;
    margin: 0 auto;
    background-color: #000;
    color: #cfcfcf;
    font-size: 20px;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

.gameContainer {
    display: none;
    justify-content: center;
    align-items: center;
}

.effectBar {
    display: flex;
    flex-direction: column;
    justify-content: left;
    background-color: #000;
    color: #fff;
    padding: 20px;
    margin-right: 20px;
    font-size: 16px;
    border-radius: 10px;
}

.effectBar div {
    margin: 10px 0;
}

.inactive {
    color: red;
}

.active {
    color: green;
}

.arrowsContainer {
    display: none;
}

.start {
    display: block;
    font-size: 20px;
    width: 192px;
    margin: 20px auto;
    height: 60px;
    color: white;
    border: none;
    border-radius: 10px;
    transition: background-color 0.3s;
    background-color: #4caf50;
    text-align: center;
}

h1{
    color: #fff;
    text-align: center;
}

#restart {
    display: none;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .outputBox {
        margin-bottom: 10px;
    }

    .output {
        font-size: 16px;
        padding: 5px;
    }

    .gameContainer {
        flex-direction: column;
        align-items: center;
    }

    .effectBar {
        flex-direction: row;
        justify-content: space-around;
        padding: 10px;
        margin-bottom: 10px;
        margin-right: 5px;
        margin-left: 5px;
        width: 93%;
    }

    .effectBar div {
        margin: 0;
    }

    canvas {
        width: 100%;
        height: auto;
        margin: 0;
    }

    .arrowsContainer {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .row {
        display: flex;
        justify-content: center;
    }

    .arrow {
        width: 60px;
        height: 60px;
        background-color: #4caf50;
        color: white;
        border: none;
        cursor: pointer;
        font-size: 24px;
        border-radius: 10px;
        transition: background-color 0.3s;
    }

    .arrow:hover {
        background-color: #45a049;
    }

    .up::before,
    .down::before,
    .left::before,
    .right::before {
        font-size: 30px;
    }

    #restart {
        display: none;
        font-size: 20px;
        width: 100%;
        height: 60px;
        color: white;
        border: none;
        border-radius: 10px;
        transition: background-color 0.3s;
        background-color: #a04545;
    }

    .ArrowBox {
        background-color: #3a3a3a00;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        width: 100px;
        height: 80px;
    }
}
