/* All base & repeating elements, sorted by selector type, then A-Z */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*{
    font-family:'Roboto',serif;
    font-weight:200;
    color:white;
}

body {
    background-color:rgb(41, 41, 45);
    margin:0px;
    padding:0px;
}

footer {
    text-align:center;
    padding:20px;
    box-shadow: rgba(0, 0, 0, 0.3) 0px -1px 7px 1px;
}

footer p{
    margin:10px;
    font-size:18px;
    font-weight:400;
    
}

h1 {
    font-size:50px;
}

h2 {
    font-weight:800;
    font-size:28px;
    width:100%;
    margin:0px;
}

h3 {
    font-weight:700;
    margin:0px;
    font-size:20px;
}

h4 {
    font-size:18px;
    font-style:italic;
}

header{
    background-color:rgb(41, 41, 45);
    box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 7px -1px;

    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index: 1000;
    box-sizing: border-box;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-height:55px;
}

header img {
    height:30px;
    width:auto;
}

header img:hover{
    cursor:pointer;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
} 

p {
    line-height:30px;
}

.button1 {
    color:rgb(41, 41, 45);
    font-weight:700;
    font-size:16px;
    border-radius:20px;
    border: solid 0.5px white;
    padding:10px 30px 10px 30px;
    width:fit-content;
    margin: 20px 0px 20px 0px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button1:hover {
    color:white;
    background-color:rgb(41, 41, 45);
    cursor:pointer;

}

.container{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    overflow:hidden;
}

.column {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    text-align:center;
}

.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

.head-leftcol{
    flex:3;
    padding-left:60px;
}

.head-rightcol{
    display:flex;
    flex:2;
    background-color:rgb(41, 41, 45);
    float:right;
    flex-direction:column;
    padding:30px;
    height:fit-content;
}

.head-rightcol img{
    width:250px;
    height:auto;
    display:block;
}

.head-rightcol p {
    margin-bottom:20px;
}

.line{
    width:80%;
    border-top:solid white 0.5px;
    padding:0px;
    margin: 10px 0px 10px 0px;
}

.nava {
    color: white;
    position: relative;
    text-decoration: none;
}

.nava::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #cacaca;
    transition: transform 0.25s ease-out;
    transform-origin: bottom center;
}

.nava:hover::after {
    transform: scaleX(1);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items:center;
    justify-content:center;
}

.sub-line{
    width:80%;
    border-top:solid rgb(107, 107, 107) 0.5px;
    padding:0px;
    margin: 10px 0px 10px 0px;
    justify-self:left;
    
}

#cr {
    font-size:14px;
    font-weight:200;
}

#head{
    background: url("../../public/Longwell_DDT_2.png");
    background-repeat: no-repeat;
    background-size:100%;
    background-position:40% 30%;
    height:700px;
    margin-top:55px;
}

#lifoot{
   height:35px;
   width:auto;
}

#lifoot:hover{
    cursor:pointer;
}

#mailfoot {
    height:50px;
    width:auto;
}

#mailfoot:hover{
    cursor:pointer;
}

#sub-head {
    position: relative;
    background: url("../../public/Longwell_DDT_2.png");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: 60% 25%;
    height: 200px;
    margin-top: 55px;
    overflow: hidden;
}

#sub-head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(30, 30, 33, 0.75);
    z-index: 1;
}

#sub-head h1 {
    position: relative;
    z-index: 2;
}

#subfoot{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

@media only screen and (max-width: 1024px) {
    .container{
      flex-direction:column;
    }

    #head{
        flex-direction:column-reverse;
        height:100%;
        background-size:200%;
        background-position-y: 10%;
    }

    .head-leftcol {
        display:flex;
        flex:2;
        padding:0px;
        justify-content:center;
        align-items:center;
    }

    .head-rightcol {
        height:fit-content;
        flex:1;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        background-color: rgb(41,41,45);
        box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 7px -1px;
        position: absolute;
        top: 39px; 
        right: 0px;
        width: 200px;
        text-align: center;
        padding: 0px;
        border-radius: 0px;
        gap:0px;
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.6s ease-in-out, padding 0.4s ease-in-out;
    }
    
    .nav-links li {
        border-top:rgb(134, 134, 134) solid 0.5px;
        width:100%;
        padding: 20px;

    }

    .nava {
        font-size:20px;
        font-weight:200;
        padding:0px;
    }

    .nav-links.show {
        display: flex; 
        max-height:500px;
    }

    .hamburger {
        display: block; 
    }

    #nav-icon3 {
        width: 30px; 
        height: 20px; 
        position: relative;
        margin: 15px auto;
        transform: rotate(0deg);
        transition: .5s ease-in-out;
        cursor: pointer;
    }
    
    #nav-icon3 span{
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: #ffffff;
        border-radius: 2px;
        opacity: 1;
        left: 0;
        transition: .25s ease-in-out;
    }
   
    #nav-icon3 span:nth-child(1) {
        top: 0px;
    }
    
    #nav-icon3 span:nth-child(2), #nav-icon3 span:nth-child(3) {
        top: 8px;
    }
    
    #nav-icon3 span:nth-child(4) {
        top: 16px;
    }
    #nav-icon3.open span:nth-child(1),
    #nav-icon3.open span:nth-child(4) {
        top: 8px;
        width: 0%;
        left: 50%;
    }
    
    #nav-icon3.open span:nth-child(2) {
        transform: rotate(45deg);
    }
    
    #nav-icon3.open span:nth-child(3) {
        transform: rotate(-45deg);
    }
    
    .sub-line{
        justify-self:center;
        width:100%;
    }
}

@media only screen and (max-width: 500px) {
    #head {
        background-position-y: 150%;
    }
}