html,
body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
}

html * {
    user-select: none;
    user-drag: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    font-family: Herculanum, sans-serif;
}



main {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/bg_katara_1.jpg');
    background-size: 100% 100%;
    background-repeat: no-repeat;

}

#menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    font-weight: bold;


}

#menu *{

    display: block;
    margin: auto;
    width: 70%;
    text-align: center;
    margin-top: 20px;
    height: 10%;
    font-weight: bold;
}

button:hover {
    transform: scale(1.2);
    background-color: orangered;
    color: white;
    transition: transform 0.5s ease;
}

#menu p {
    overflow: hidden;
    height: 20%;
    font-size: 180%;
    border: solid 2px orangered;
    background-color: orangered;
    border-radius: 25px 25px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    

}

#spel {
    display: none;
   
}

.score {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 200%;
    flex-wrap: wrap;
    flex-direction: column;
}

.score p:nth-child(1) {
    flex: 1 0;
    margin-bottom: 10px;
    align-self: center;
    font-weight: bold;

}

.score p:nth-child(2) {
    flex: 0 1 100%;
    margin: 0;
    align-content: center;


}

.wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 60rem;
    margin: 20px auto 60px auto;
    grid-gap: 10px;
    justify-content: center;
    margin-top: -20px;
}

.kaart {
    height: 225px;
    width: 188px;
    box-sizing: border-box;
    border-radius: 25px;
    transition: transform 0.2s ease;
}
.kaart:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;

}

#scoreboard{
    
    width: 100%;
    height: 100vh;
    text-align: center;
    color: white;
    background-color: orangered;
    display: none;
   
}
#main{
    width: 40%;
    margin: auto;
    height: 100vh;
    padding: 5px;
    
}
.scores{
    display: grid;
    grid-template-columns: auto auto;
    
}
.scores p{
    border-top: solid 1px white;
border-bottom: solid 1px white;
padding: 2px;
background-color: rgb(1, 1, 1, 0.1);
margin-bottom: 5px;


}
#scoreboard button{
    width: 100%;
    height: 5%;
    margin-top: 15px;
    font-weight: bold;
}




.center {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
  }
  
  .pagination {
    display: inline-block;
  }
  
  .pagination a {
    color: white;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
    
  }
  
  .pagination a.active {
    background-color: rgb(255, 255, 255, 0.8);
    color: black;
    border: 1px solid white;
  }
  
  .pagination a:hover:not(.active) {background-color: #ddd;}

  .unclickable{
    
        pointer-events: none;
      
  }

#scoreboard {
    width: 50%;
    height: 100vh;
    margin: auto;
    overflow: hidden;
    display: none;

}

#scoreboard h1 {
    font-weight: bold;
    font-size: 200%;
    text-align: center;
    margin-top: 10%;

}

#scoreboard p {

    text-align: center;
    margin-top: 5px;
    background-color: rgb(1, 1, 1, 0.1);
}


@media screen and (max-width: 900px) {
    #menu p {
        font-size: 100%;
        height: 20%;
    }

    .kaart {
        height: 180px;
        width: 150px;
    }

    .wrapper {
        width: 40rem;
    }
}


@media screen and (max-width: 700px) {
   
    .kaart {
        height: 120px;
        width: 90px;
    }

    .wrapper {
        width: 30rem;
    }
}
@media screen and (max-width: 450px) {
   
    .kaart {
        height: 100px;
        width: 70px;
    }

    .wrapper {
        width: 20rem;
    }
}
@media screen and (max-width: 390px) {
   
    #menu p {
       
        font-size: 80%;
        
    }
    .pagination a {
        margin: 0;
        width: 1px;
      }

}

@media screen and (max-width: 325px) {
   
    .kaart {
        height: 80px;
        width: 50px;
    }

    .wrapper {
        width: 15rem;
    }
}