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

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

body{
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}


#text{
    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{
    font-size: 5vh;
    font-family: sans-serif;
}

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

#text h2{
    font-size: 4vh;
    font-family: sans-serif;
}

#text a:hover{
    color: white;
}

.bg{
    width: 100%;
    height: 100%;
}
.desk_h2{
    display: block;
}

.mob_h2{
    display: none;
}
.nav_mobile {
    display: none;
}

.changeable{
    white-space: pre-line;
    margin-top: -3%;
}

@media only screen and (max-width: 640px) {
    #text{
        font-size: medium;
        top: 50%;
        left: 50%;
        margin: 0;
        height: auto;
        text-align: center;
        position: absolute;
        transform: translate(-50%, -57%); /* Combine both translateX and translateY */
        width: 99%;
    }
    
    #text h1,h2,h3,h4{
        margin-bottom: 0.5%;
    }

    #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;
    }

    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;
        width: 100%;
        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);
        backdrop-filter: blur(8px);
        list-style: none;
        font-family: 'FourteenRules';
        z-index: 1000;
      }
      
      .nav_mobile li {
        list-style: none;
      }
      
      .nav_mobile a {
        text-decoration: none;
        font-size: 2.7vh;
      }
      

    .desk_h2{
        display: none;
    }
    .mob_h2{
        display: block;
    }
}