@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

* {
    /* box-sizing: border-box; */
    user-select: none;
    transition: all 0.1s ease;
}

h1 {
    margin: 0px;
    font-size: 2.9rem;
    font-family: "VT323", monospace;
    color: black;
    background-color: lightgray;
    border-radius: 50px;
    padding-inline: 20px;
    padding-block-start: 10px;
    padding-block-end: 12px;
}

body {
    position: relative;
    z-index: 1;
    height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(0deg, rgb(97, 98, 99)0%, rgba(0, 0, 0, 0)100%);
    font-family: 'Press Start 2P', cursive;
}

#canvas-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}

#my-canvas {
    position: relative;
    z-index: 1;
    box-shadow: 5px 5px 20px black;
    border-radius: 20px;
    background: url("../images/space.png");
}

#play-again {
    position: relative;
    z-index: 2;
    bottom: 20rem;
    padding: 0;
    margin: 0;
    background-color: green;
    color: white;
    font-family: "Press Start 2P", cursive;
    margin-block-start: rem;
    border-radius: 20px;
    user-select: none;
    padding: 1rem;
}

#play-again:hover {
    transform: scale(1.1);
}

#play-again:active {
    background-color: lightgray;
    transform: scale(0.9);
}

#play {
    position: relative;
    width: fit-content;
    z-index: 2;
    top: 50%;
    color: white;
    font-size: 3rem;
    font-weight: bolder;
    user-select: none;
    padding-inline-start: 0.7rem;
    padding-inline-end: 0.3rem;
    padding-block-start: 0.8rem;
    padding-block-end: 0.4rem;
    border-radius: 20px;
    background-color: blue;
}

#play:hover {
    transform: scale(1.1)
}

#play:active {
    transform: scale(1);
}

#instruction-container {
    color: white;
    fill: white;
    position: relative;
    z-index: 2;
    bottom: 25%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

#sound-button {
    width: 3.9rem;
    height: 3.9rem;
    color: black;
    background-image: url("../images/no-sound-icon.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 2.25rem 2.25rem;
    border-radius: 50%;
    background-color: lightgray;
}

#sound-button:hover {
    box-shadow: 0 10px 20px gray;
}

#sound-button-state-manager:checked~#sound-button {
    background-image: url("../images/sound-icon.svg");
}