header {
    width: 97.24vw;
    height: min(13.2vw, 169px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: min(1.38vw, 18px);
    margin-left: min(1.38vw, 18px);
    border-radius: 20px;
    border-bottom: min(0.7vw, 9px) solid black;
}


.left-div {
    background-image: url("../img/sigla.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
}


.right-div {
    background-image: url("../img/stema.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
}


  .left-div, .central-div, .right-div {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

.left-div, .right-div {
    width: min(18%, 230px);
}

.central-div {
    position: relative; /* Added this */
    width: min(64%, 819px);
    display: flex;
    flex-direction: column;
}


.top-div {
    height: 75%;
    width: 100%;
    font-family: Arhaic, sans-serif;
    font-size: var(--header-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
}


.bottom-div {
    position: absolute; /* Added this */
    bottom: 0; /* Added this */
    width: 100%;
    height: 25%;
}
  
  .button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    transform: translateY(50%);
  }

.button-container button {
    min-height: calc(var(--buttons-text) + 2 * min(0.7vw, 9px));
    /*height: 100%;*/
    margin-right: min(0.8vw, 10px);
    padding: min(0.7vw, 9px);
    border: 2px solid black;
    border-radius: 10px;
    font-family: Arhaic, Arial, sans-serif;
    font-size: var(--buttons-text);
}


/* remove margin from the last button */
  .button-container button:last-child {
    margin-right: 0;
  }

  .button-container button:hover {
    transform: translateY(-3px); /* raise button by 3 pixels */
    transition: transform 0.2s ease-in-out; /* decrease transition speed */
    background-color: #d9b38c; /* change background color on hover */
  }

  .button-container button:active {
    transform: translateY(3px);
    transition: transform 0.2s ease-int-out; /* decrease transition speed */
    background-color: #d2b48c; /* change background color */
  }
  
  .header-break {
    display: none;
}

/* Adjust header for smartphone */
@media (max-width: 600px), (max-height: 600px) {
    header {
        height: 20vw;
        border-radius: 10px;
    }
  
    .central-div {
      width: 100%;
    }

    .top-div {
        font-size: var(--header-text-sm);
    }



    .button-container button {
        font-size: var(--buttons-text-sm);
        font-family: Arial, sans-serif;
        font-weight: bold;
    }

}

/*smartphone in landscape*/
@media (max-width: 600px) {
    .right-div {
        display: none;
    }

    .top-div {
        font-size: var(--header-text-sm);
    }

    .link-container a {
        display: block;
    }
    .link-container a::after {
        content: "";  /* remove # separator */
    }

    .hash {
        display: none;
    }
}

/* smartphone in portrait */
@media screen
and (max-width: 600px)
and (orientation: portrait) {
    .top-div {
        font-size: var(--header-text-sm-portrait);
        padding-top: 10px;
        margin-bottom: 20px;
    }
    .header-break {
        display: block;
        line-height: 1;
    }
}