@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap');


body,
html {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: #494949;
    font-family: "Montserrat", serif;
}

.game-container {
    position: absolute;
    top: 7vh;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100vw;
    height: calc(100vh - 7vh);
    background: #494949 url('assets/bkg.png') no-repeat center bottom;
    background-size: cover;
    overflow: hidden;
    transition: filter 0.5s ease; 
}

.blurred {
    filter: blur(5px);
}


.game-canvas {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

#board {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


h1 {
    color: #ffffff;
}


.bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 7vh;
    background-color: #272727;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1vw;
    box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.2);
    z-index: 1000;
  }
  
  .bar-icon-left, .bar-icon-right {
    height: 4vh;
    width: auto;
    cursor: pointer;
    border-radius: 50%;
  }
  
  .bar-icon-right {
    margin-right: 2vw;
  }
  
  .bar-title {
    font-size: 2.5vh;
    color: white;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
  }

.modal {
    z-index: 10;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.modal-content {
    display: grid;
    background-color: white;
    border-radius: 1.5vh;
    justify-content: center;
    align-items: center;
    padding: 3vh 3vw;
    width: 30vw;
    text-align: center;
    box-shadow: 0 0.5vh 1vh rgba(0, 0, 0, 0.2), 0 1vh 2vh rgba(0, 0, 0, 0.1); 
}

.modal-icon img {
    width: 8vh;
    height: 8vh;
    margin-bottom: 2vh;
}

.modal-text {
    font-size: 2vh;
    color: #333;
    margin-bottom: 2vh;
}

button {
    background-color: #333;
    color: white;
    border: none;
    border-radius: 1vh;
    padding: 10px 20px;
    font-size: 2vh;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vh;
}

#njs, #nmobile, #play-modal, #game-container, #error, #wait {
    display: none;
}

@media (max-width: 768px) {
    .game-container {
        background-size: cover;
    }

    .game-canvas {
        width: 100%;
        height: auto;
    }

    .bar {
        height: 10vh;
    }

    .bar-icon-left,
    .bar-icon-right {
        height: 5vh;
    }

    .bar-title {
        font-size: 3vh;
    }

    .modal {
        width: 80%;
        height: 30%;
    }

    .modal-content {
        width: 80vw;
    }

    .modal-icon img {
        width: 10vh;
        height: 10vh;
    }

    .modal-text {
        font-size: 3vh;
    }
}

