.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    grid-template-rows: repeat(4, 1fr); /* 4 equal rows */
    gap: 10px; /* Space between grid items */
    background: rgb(255,142,0);
    width: 100%;
    max-width: 500px;
    height: 500px; /* Set a fixed height */
    margin: 10vh auto 0 auto; /* Centering horizontally */
    padding: 0 10px; 
}

.menu{
    list-style: none;
    display: flex;
    justify-content: space-around;
    grid-column: span 5;
    background: #80D2F2;
    padding: 10px;
    align-items: center;
}

.button, .pause{
    padding: 10px 20px;
    background: rgb(158,45,155);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    height: 50%;
}

/*Settings menu*/

h2{
    text-align: center;
    color: rgb(158, 45, 155);;    
}

.bottom{
    grid-area: 4 / 1 / span 1 / end;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between; /* Space elements evenly */
    gap: 10px; /* Optional: Space between items */
}
    
.bottom:hover{
    cursor: pointer;
}

.venner, .profil {
    flex: 1; /* Makes both divs take equal width */
    padding: 20px;
    text-align: center;
    background-color: rgb(158, 45, 155);    
    border-radius: 5px;
    color: white;
}




.modal-window {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

#soundsWindow{
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    padding: 50px;
    background-color: white;
}

#soundsWindow button{
    background-image: linear-gradient(92.88deg, #455EB5 9.16%, #5643CC 43.89%, #673FD7 64.72%);
    border-radius: 8px;
    border-style: none;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    flex-shrink: 0;
    font-family: "Inter UI","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
    font-size: 16px;
    font-weight: 500;
    height: 4rem;
    padding: 0 1.6rem;
    text-align: center;
    text-shadow: rgba(0, 0, 0, 0.25) 0 3px 8px;
    transition: all .5s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    margin: 10px 0;
}
.settings-window button {
    margin-top: 10px;
    padding: 5px 10px;
    cursor: pointer;
}

.map{
    display: grid;
    grid-template-columns: 33% 33% 33%;
    grid-template-rows: 33% 33% 33%;
    gap: 3px;
    justify-content: space-evenly;
    background: lightblue;
    padding: 20px;
    grid-area: 2 / 1 / span 2 / end;
}
.map div{
    background-color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 20px 0;
    font-size: 20px;
    border-radius: 50px;
}
a{
    text-decoration: none;
}
.game-link {
    color: rgb(0, 0, 0);       /* Text color */
    
}

.game-link:hover {
    background: rgb(222, 80, 189); /* Change color on hover */
}

.settings-menu button{
    background-image: linear-gradient(92.88deg, #455EB5 9.16%, #5643CC 43.89%, #673FD7 64.72%);
    border-radius: 8px;
    border-style: none;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    flex-shrink: 0;
    font-family: "Inter UI","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;
    font-size: 16px;
    font-weight: 500;
    height: 4rem;
    padding: 0 1.6rem;
    text-align: center;
    text-shadow: rgba(0, 0, 0, 0.25) 0 3px 8px;
    transition: all .5s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

#closeSettings, #closeSounds, #closePause, #closeProfil, #closeVenner{
    background: rgb(255,142,0);
    background: linear-gradient(177deg, rgba(255,142,0,1) 0%, rgba(252,176,69,1) 45%, rgba(253,29,29,1) 100%) !important;
    border: none;
    border-radius: 8px;
    width: 100%;
    color: white;
    font-weight: 700;
}

h2{
    margin: 10px;
}
.menu-button {
    display: inline-block;
    background-image: linear-gradient(92.88deg, #455EB5 9.16%, #5643CC 43.89%, #673FD7 64.72%);
    color: white;
    text-decoration: none; /* Remove underline */
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
}

.menu-button:hover {
    background: darkblue;
    color: bisque;
}
