html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

header {
    height: 80px;
    margin: auto;
    padding: 20px;
    width: 100%;
  }

footer #footer-container {position: relative; color: #fff; padding: 20px; margin: auto; width: 100%; gap: 0px; }
footer #newsletter {justify-self: center;}
footer #terms_of_use {justify-self: right;}

.menu_label {
    display: none;
}

body.homepage {
    
    display: flex;
    flex-direction: column;
    height: 100vh;


    #terrain {
        position: absolute;
        max-width: 100%; 
    }

    #terrain canvas {
        display: block;
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        overflow-x: hidden;
      }

    
    div#banner {      
        position: relative;     
        flex: 1 0 auto;
        overflow: auto; /* optional, if banner needs scroll */
        min-height: 90vh;
        width: 1024px;
        margin: auto;
    }

    main {
        
        position: relative;
        width: 1024px;
        margin: auto;
        padding: 20px 100px 20px 20px;

        p.intro {

            font-size: 40px;
            letter-spacing: -2px;
            word-spacing: 1px;
            line-height: 1.3em;

            strong {
                font-weight: bold;
            }
        }
    }
    
    footer {
        margin: auto;
        padding: 0px;
        color: #fff;
      }
   
    #hp_banner_headline {
    
        position: absolute;
        top: 45%;
        left: 50%;
        width: 1024px;
        margin: auto;
        transform: translateX(-50%) translateY(-70%);
        font-size: 100px;
        font-kerning: normal;
        letter-spacing: -3px;
        word-spacing: 2px;
        line-height: 80%;
        text-rendering: optimizeLegibility;
        color: #ccc;
        text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.9);
        /* Subtle shadow */
        transition: opacity 0.2s ease-in-out;
    }
    
}

body.article {  

    main {
        
        position: relative;
        width: 100%;
        margin: auto;
        padding: 20px 20px 20px 20px;

        div#milestones {
            display: none;
            position: fixed;
            top: 270px; /* or whatever vertical position you want */
            left: 50%;  /* start at center of the viewport */
            transform: translateX(-540px); /* move it 300px to the right */
            width: 300px;

            li {
                list-style-type:none;
                padding: 8px;
                line-height: 1.2em;
                border-left: 5px solid transparent;
                transition: border-left 0.3s;
            }
 
            li.active {
                border-left: 5px solid white;
            }

            li li {margin-left: 20px;}

            a {
                color: rgb(221, 221, 221);
            }

            a:hover {
                color: #fff;
            }
        }

        p.intro {

            font-size: 40px;
            letter-spacing: -2px;

            strong {
                font-weight: bold;
            }
        }

        div.callout {border-left: 5px solid #eee; padding-left: 20px;}
        div.callout a.cta {background: #eee; color: #000; font-weight: bold; padding: 10px; text-align: center; border-radius: 10px; display: block; margin: auto; max-width: 200px;}

        .svg-label {
            font-size: 22px;
            fill: white;
            font-family: sans-serif;
          }

    }
    
    footer {
        margin: auto;
        padding: 0px;
        color: #fff;
      }
       
}

body.standard {  

    main {
        
        position: relative;
        width: 100%;
        margin: auto;
        padding: 20px 20px 20px 20px;

        p.intro {

            font-size: 40px;
            letter-spacing: -2px;

            strong {
                font-weight: bold;
            }
        }
    }

    aside {font-size: 30px; letter-spacing: -2px; margin-left: 30px; padding: 30px; border-left: 5px solid #fff;}
    aside.right {width: 50%; float: right;}

    footer {
        margin: auto;
        padding: 0px;
        color: #fff;
      }
       
}


#main_nav {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.bigandbold {

    font-size: 40px;
    letter-spacing: -2px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.bigandbold svg {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

/* GRID ------------------------------------------------- */

.grid {
    display: grid;
    gap: 10px;
    width: 100%;
}

.two-by-one {
    grid-template-columns: auto 1fr;
    /* Creates 3 equal columns */
}

.three-by-one {
    grid-template-columns: 1fr 1fr 1fr;
    /* Creates 3 equal columns */
}

.four-by-one {
    grid-template-columns: repeat(4fr);
    /* Creates 3 equal columns */
}

.chart {
    width: 100%;
    height: 500px;
}

.narrow {
    width: 40%;
}

.med {
    width: 60%;
}

.wide {
    width: 80%;
}

#usps {
    width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
}

#blog_articles {
    width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
}

.service h2 {
    margin: 0;
    padding: 0;
}

#formContainer {
    width: 600px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

form {


    width: 100%;
    align-items: center;

    display: grid;
    grid-template-columns: 150px 380px;
    gap: 10px;
}

form label {
    min-width: 200px;
    grid-column: 1;
    text-align: left;
}

form textarea,
form button {
    grid-column: span 2;
}

form input:not([type="checkbox"]) {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
}

form select {
    
    padding: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;

    option {
        color:#000;
    }
}

form textarea {
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 100%;
    height: 140px;
    border: none;
    grid-column: 2;
    color: #fff;
}

form button {
    margin-top: 30px;
    grid-column: 2;
    width: 50%;
    justify-self: end;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #222423;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    outline: 0;
    padding: 10px 25px;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

form .checkbox-label {
    min-width: 240px;
}

form button:hover {
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
}

form .checkbox-container {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

form .checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/*article index */
.grid-container {
    display: grid;
    grid-template-columns: repeat(1);
    grid-template-rows: auto auto auto;
    /* Three rows */
    gap: 10px;
    width: auto;
    padding: 0px;
}

div.feature-article,
div.article {
    padding: 40px;
    background: #222;
}

.article_listing {
    position: relative;
    padding-bottom: 60px;
}

h2.article_title {margin: 0; padding: 0;}

.article_description {
    margin-top: 20px;
}

.article_tags {
    position: relative;
}

#formContainer {
    width: 600px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#contactExit {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
}

form {
    display: grid;
    grid-template-columns: 150px 380px;
    align-items: start;
    /* align items vertically to the start (top) */
    justify-items: start;
    /* align items horizontally to the start (left) */
    width: 100%;
    gap: 10px;
}

form label {
    min-width: 200px;
    grid-column: 1;
    text-align: left;
}

form .checkbox-label {
    min-width: 240px;

}

.checkbox-container {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}