.topnav a.wg {
    float: right;
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}
.topnav {
    overflow: hidden;
    background-color: whitesmoke;
    border-bottom: 1px solid black;
}



.topnav a.active {
    background-color: #ADD8E6;
    color: black;
}

.topnav .icon {
    display: none;
    background-color: #ADD8E6;
    color: white;
    transition:color  0.25s;
}

@media screen and (min-width: 600px) {
    .topnav a {
        float: left;
        display: block;
        color: black;
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
    }
    .topnav a:hover {
        background-color: #ddd;
        transition: background-color 0.25s, color  0.25s;
        color: black;
    }
}

@media screen and (max-width: 600px) {

    .topnav a:not(:nth-child(3)) {display: none;}
    .topnav a.icon {
        float: right;
        display: block;
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a.icon {
        background-color:  whitesmoke;
        color: black;
        transition:color  0.25s;
    }

    .topnav a {
        color: black;
        display: block;
        padding: 14px 16px;
        text-decoration: none;
        font-size: 17px;
        align-content: center;
    }

    .topnav a.active {
        position: relative;
        float: none;
        display: block;
        text-align: center;
    }

    .topnav.responsive {position: relative;}
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: center;
    }
}
table {
    align-self: center;
    border: 1px solid black;
    border-collapse: collapse;
    margin: auto;
    margin-bottom: 20px;
    padding-top: 10px;
}

td {
    overflow: hidden;
    width: 38px;
    height: 38px;
    display: inline-block;
    border-collapse: collapse;
    border: 1px solid black;
    cursor: pointer;
    text-align: center;
    background-color: lightslategrey;
    text-align: center;
    margin: 0 auto;
    line-height: 38px;
}

td:hover {
    background-color: dimgrey;
}

.but {
    cursor: pointer;
    background-color: papayawhip;
    align-self: center;
    margin: 17px;
    border: 1px solid black;
}

.buttons {
    height: 50px;
    position: relative;
}

.nota {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    height: 40px;
    margin-bottom: 15px;
}
.turn {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 18px;
    min-height: fit-content;
    height: 22px;
    margin-bottom: 15px;
}

.buttons-centered {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.gamemode {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.footer-content p {
    margin: 0;
}

#nota-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-weight: bold;
    clear: both;
}

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

  .logo {
    color: white;
    font-size: 17px;
    font-family: Impact, sans-serif;
    padding: 14px 16px;
    width: 50%;
    float: right;
    display: block;
}



#footer {
    background:#f5f5f5;
    border-top: 1px solid black;
    height: 8%;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.popupContainer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
}

.popupContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  max-width: 400px;
  margin: 100px auto;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.closePopup {
  display: block;
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #ccc;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  background-color: #4CAF50;
}

.buttonContainer {
  display: flex;
  justify-content: center;
  width: 100%;
}

