* {
    box-sizing: border-box;
  }

:root {
    background-color: #333;
    font-family: 'Segoe UI', 'Helvetica', 'Arial','FourteenRules', sans-serif;
    color: rgb(255, 255, 255);
    overflow-x: hidden;
}

html body{
    height: 100%;
    width: 100vw;
    margin: 0;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
}


#text{
    max-width: 100vw;
    overflow-x: hidden;
    font-size: medium;
    top: 10%;
    left: 50%;
    margin: 0;
    height: auto;
    text-align: center;
    position: absolute;
    transform: translatex(-50%); /* Combine both translateX and translateY */
}
#text h1,h2,h3,h4{
    margin-bottom: 0.5%;
}

#text h1{
    font-size: 5vh;
    font-family: sans-serif;
}
#text h2{
    font-size: 4vh;
    font-family: sans-serif;
}
#text h3{
    font-size: 3vh;
    font-family: sans-serif;
}

#text h4{
    font-size: 3vh;
    font-family: sans-serif;
}

#text p{
    font-size: 2vh;
    font-family: sans-serif;
}

#text li{
    font-size: 2vh;
    font-family: sans-serif;
}

#text a:hover{
    color: white;
}
#text a{
    font-size: 2vh;
    font-family: sans-serif;
}

.bg{
    width: 100%;
    height: 100%;
}

.navi{
    backdrop-filter: blur(10px); /* Blurs the background behind the nav */
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
}

@media only screen and (max-width: 640px) {
    body::-webkit-scrollbar {
        display: none;
    }
      
      /* Hide scrollbar for IE, Edge and Firefox */
    body {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .nav_mobile {
        position: fixed;
        bottom: 0;
        overflow-x: hidden;
        width: 100vw;
        height: 9vh;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        column-gap: 2%; /* <- controls the spacing */
        align-items: center;
        justify-items: center;
        background-color: rgb(255, 255, 255, 0.5);

        list-style: none;
        font-family: 'FourteenRules';
        z-index: 1000;
      }
      
      .nav_mobile li {
        list-style: none;
      }
      
      .nav_mobile a {
        text-decoration: none;
      }

      #text{
        position: absolute;
        font-size: medium;
        top: 0%;
        left: 50%;
        margin: 0;
        height: auto;
        text-align: center;
        position: absolute;
        transform: translateX(-50%); /* Combine both translateX and translateY */
        width: 99%;
    }
    
    #text h1{
        font-size: 5.5vh;
        font-family: sans-serif;
    }
    
    #text p{
        font-size: 2vh;
        font-family: sans-serif;
    }
    
    #text h2{
        font-size: 2.5vh;
        font-family: sans-serif;
    }
}