*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url("images/tennisballcursor.png") 12 12, auto;
    font-family: "Roboto Condensed", sans-serif;
}

/* page layout */
body{
    width: 100vw;
    height: 100vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    background-image: url("images/tenniscourtgrass.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* title */
h1{
    font-size: 8vh;
    font-weight: bold;
    color: #274e13;
    margin-top: 8vh;
    margin-bottom: -9.3vh;
    text-align: center;
}

/* nav buttons container to position buttons across the middle of the court */
.nav-buttons{
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 10vw;
    margin-top: 36vh;
    margin-bottom: auto;
}

/* nav buttons */
.nav-btn{
    display: inline-block;
    background: white;
    border: 2px solid #274e13;
    padding: 3vh 6vh;
    font-size: 4vh;
    font-weight: normal;
    color: #274e13;
    text-decoration: none;
    text-align: center;
}

.nav-btn:hover{
    background: #f0f0f0;
}

/* "Information" button */
.info-btn{
    position: fixed;
    bottom: 8vh;
    right: 8vw;
    background: white;
    border: 2px solid #274e13;
    padding: 1vh 2.5vw;
    font-size: 1.8vh;
    font-family: "Roboto Condensed", sans-serif;
    color: #274e13;
}

.info-btn:hover{
    background: #f0f0f0;
}

/* "Information" popup */
/* darkened backdrop behind popups */
.popup-overlay{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

/* popup is visible when the open class is added through javascript */
.popup-overlay.open{
    display: flex;
}

/* popup box */
.popup{
    background: white;
    border: 2px solid #ccc;
    padding: 3vh 3vh;
    max-width: 52vw;
    width: 80%;
    position: relative;
}

.popup h2{
    font-size: 3vh;
    margin-bottom: 2vh;
    color: #274e13;
}

.popup p{
    font-size: 2vh;
    color: black;
    line-height: 1.6;
}

/* divider between the title and the features */
.popup hr{
    border: none;
    border-top: 1px solid #274e13;
    margin: 3vh 0;
}

/* close (x) button on the popup */
.popup-close{
    position: absolute;
    top: 1.25vh;
    right: 1.75vh;
    background: none;
    border: none;
    font-size: 2.25vh;
    color: #274e13;
}

/* feature blocks in the information popup */
.feature strong{
    font-size: 2.5vh;
    color: #274e13;
    display: block;
    margin-bottom: 1vh;
}

.feature span{
    font-size: 2vh;
    color: black;
}
