body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; 
    background-image: url('img/background/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    width: 100vw;
    height: 100vh;
    margin: 0;
    font-family: 'Bangers';
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

canvas {
    background-color: black;
    display: block;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#instructions {
    font-size: 24px;
    text-align: center;
    color: white;
    text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000; 
}

h1 {
    font-size: 144px;
    margin-bottom: 20px;
    color: rgb(220,21,16);
    filter: drop-shadow(23px -9px 20px #000000);
    text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000; 
}

.game-button {
    padding: 15px 30px;
    margin: 10px;
    font-size: 24px;
    font-family: 'Bangers';
    color: white;
    background-color: rgb(220, 21, 16);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    filter: drop-shadow(5px 5px 5px #000);
    text-shadow: 
    -1px -1px 0 #000,  
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000; 
}

.game-button:hover {
    background-color: rgb(255, 50, 30);
}

.hidden-buttons {
    display: none;
}

#rotateMessage {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

@media (max-width: 600px) {
    #rotateMessage {
        display: flex;
    }

    #rotateMessage img {
        max-width: 70%;
        max-height: 80%;
        border-radius: 25px;
        animation: rotateImage 2s infinite alternate ease-in-out;
    }
}

@keyframes rotateImage {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-45deg);
    }
}


#gameContainer {
    position: relative;
    width: 700px; 
    height: 460px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-buttons {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none; 
}

.mobile-buttons-group {
    display: flex;
    gap: 10px; 
    filter: brightness(3.5);
    pointer-events: auto; 
}

.mobile-buttons-left {
    position: fixed;
    left: 10px;
    bottom: 45px;
}

.mobile-buttons-right {
    position: fixed;
    right: 10px;
    bottom: 45px;
}

.mobile-buttons-center {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.mobile-button {
    width: 50px;
    height: 50px;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    color: white;
    text-align: center;
    padding: 10px 0;
    z-index: 1000; 
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-family: 'Bangers'; 
    font-size: 18px;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .footer-links a {
        font-size: 16px;
        margin: 0 10px;
    }
}

#footer {
    display: none;
}

#startscreen #footer {
    display: block;
}

#gameContainer #footer {
    display: none;
}

.hidden-buttons {
    display: none !important;
}

@media (pointer: coarse) and (hover: none) {
    #mobileButtons {
      display: flex !important;
    }
  }
  
  @media (pointer: fine) {
    #mobileButtons {
      display: none !important;
    }
  }
  
  .hidden {
    display: none !important;
}
