body{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#canvas{
    width: 100%;
    height: 100%;
    background-color: black;
    
}

#main-menu {
    height: 100vh;
    width: 100vw;
    background: url('assets/BG1.png') no-repeat center center;
    background-size: contain;
    display: flex;
    justify-content: center;
    align-items: center;

}

#win-screen1 {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background: url('assets/Win_Tri.png') no-repeat center center;
    background-size: contain;
    display: none;
    justify-content: center;
    align-items: center;
}

#win-screen2 {
    position: fixed;
    height: 100vh;
    width: 100vw;
    background: url('assets/Win_Trex.png') no-repeat center center;
    background-size: contain;
    display: none;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}

.play-button {
    font-size: 20px;
    font-weight: bold;
    padding: 15px 50px;
    border: 2px solid black;
    border-radius: 25px;
    background: linear-gradient(to top, red, orange, yellow);
    cursor: pointer;
    transition: transform 0.2s;
}

.restart-button {
    font-size: 20px;
    font-weight: bold;
    padding: 15px 50px;
    border: 2px solid black;
    border-radius: 25px;
    background: linear-gradient(to top, red, orange, yellow);
    cursor: pointer;
    transition: transform 0.2s;
}

.play-button:hover {
    transform: scale(1.1);
}

.waiting-text {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
}


#orientation-prompt {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
}

.controls {
    position: fixed;
    left: 10px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.horizontal-buttons {
    display: flex;
    gap: 10px;
}
.btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFA500, #FFD700);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    opacity: 0.5;
}
.btn:active {
    transform: scale(0.9);
}
.arrow {
    width: 0;
    height: 0;
    border-style: solid;
}
.left .arrow {
    border-width: 15px 25px 15px 0;
    border-color: transparent #222 transparent transparent;
}
.right .arrow {
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #222;
}
.up .arrow {
    border-width: 0 15px 25px 15px;
    border-color: transparent transparent #222 transparent;
}
.attack-buttons {
    position: fixed;
    right: 10px;
    bottom: 20px;
    display: flex;
    gap: 10px;
}

.controls, .attack-buttons {
    display: none;
}

/* Show controls only on screens smaller than 768px (mobile devices) */
@media (max-width: 1080px) {
    .controls, .attack-buttons {
        display: flex;
    }
}