/* variables */
:root{
    --primary: #51746d;
    --secondary: #ffffff;
    --thirdary: #4b4b4b;
    --fourthary: #f5f5f5;
    --shadowary: #dadada;
}
/* fonts */
@font-face{
    font-family: 'Rubik';
    src: url(fonts/Rubik-VariableFont_wght.ttf);
}
/* reset */
body,p,a,ul,li{
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: 'Rubik';
}
*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

/* Navigation style */
nav{
    background: var(--secondary);
    height: 100px;
    width: 100%;
}
label.logo img{
    height: 90%;
    width: auto;
    line-height: 80px;
    padding: 0;
    float: left;
    margin: 10px 10px;
    cursor: pointer;
}
nav ul{
    float: right;
    background: none; 
    padding: 0;
    margin: 0;
}
nav ul li{
    display: inline-block;
    line-height : 80px;
    margin-right: 40px;
    margin-top: 20px;
}
nav ul li a{
    color: var(--thirdary);
    font-size: 1rem;
    padding: 0;
    border-radius: 3px;
}
a:hover{
    background: var(--primary);
    color: var(--secondary);
    transition: .5s;
}
.checkbtn{
    font-size: 2rem;
    color: var(--thirdary);
    float: right;
    line-height: 50px;
    margin-right: 40px;
    margin-top: 5px;
    cursor: pointer;
    display: none;
}
.fa-solid.fa-bars{
    display: none;
}
#check{
    display: none;
}
body{
    margin: 0;
    font-family: 'Rubik';
}
body img{
    width: 100%;
   
}
/* 12 column grid set-up*/
.grid{
    display: grid;
    grid-template-columns: repeat(12, 1fr) ;
    gap: 30px;
}
/* column distribution -- main */
main{
    max-width: 100%;
    margin: 20px 0;
    margin-bottom: 0;
    padding: 20px;
    background: var(--fourthary);
}
main h2{
    grid-column: span 12;
    text-align: center;
    font-size: 1.5em;
    color: black;
    margin-top: 5%;
}
main .welcome{
    grid-column: 4 / span 6;
    display: grid;
    margin-top: 5%;
}
.welcome p{
    color: var(--thirdary);
    text-align: justify;
    line-height: 1.25em;
}
#picture1{
   grid-column: 5 /span 8;
   width: 50%;
   border-radius: 0px;
   margin-top: 5%;
}
main .welcome-text{
    grid-column: 4 / span 6;
}


.welcome a{
    color: var(--primary);
    font-size: 1em;
}
.welcome a:hover{
    background: var(--primary);
    color: var(--secondary);
    transition: .5s;
}

main .card{
    grid-column: span 4;
    background: var(--secondary);
    padding: 10px 20px;
    border-radius: 6px;
    box-shadow: 3px 3px 3px var(--shadowary);
}
main .card p{
    color: var(--thirdary);
    line-height: 1.25em;
}
main .card a{
    color: var(--primary);
}
.card a:hover{
    background: var(--primary);
    color: var(--secondary);
    transition: .5s;
}
main h3{
    color: var(--thirdary);
    text-align: center;
    padding: 10px;
}


/* Desktop */
@media (min-width: 400px){
    nav ul li a{
       font-size: 1.5rem;
    }
    .arrow-btn{
        position: fixed;
        bottom: 30px;
        right: 30px;
    }
    .arrow-btn a{
        height: 39px;
        width: 37px;
        text-align: center;
        background: var(--thirdary);
        display: block;
        border-radius: 3px
    }
    .arrow-btn a span{
        color: var(--secondary);
        line-height: 39px;
        font-size: 25px;
        cursor: pointer;
        z-index: 9;
    }
}
/* large tablet */
@media (max-width:950px){
    nav{
        background: none;
        height: 75px;
        width: 100%;
    }
    label.logo img{
        height: 90%;
        width: auto;
        line-height: 75px;
        padding: 0;
        float: left;
        margin: 5px 5px;
    }
    nav ul li{
        display: inline-block;
        line-height : 75px;
        margin-right: 20px;
        margin-top: 9px;
    }
    nav ul li a{
        font-size: 1.2rem;   
    }
    main img{
        grid-column:  2 / span 10;
    }   
}
/* small tablet */
@media (max-width:740px){
    nav{
        background: none;
        height: 50px;
        width: 100%;
    }
    label.logo img{
        height: 90%;
        width: auto;
        line-height: 50px;
        padding: 0;
        float: left;
        margin: 5px 5px;
    }
    nav ul li{
        display: inline-block;
        line-height : 50px;
        margin-right: 20px;
        margin-top: 5px;
    }
    nav ul li a{
        font-size: 0.9rem;

    }
    main .card{
        grid-column: 3 / span 8;
    }
    main .welcome{
        grid-column: 3 / span 8;
        margin-top: 0px;
    }
    .welcome{
        text-align: start;
    }
    .welcome h2{
        margin-top: 10px;
    }
    #about .card{
        grid-column: 3 / span 8;
    }
    #contact input{
        max-width: 180px;
        align-content: center;
    }
    #contact textarea{
        max-width: 180px;
        padding: 5px;
    }
    #contact form{
        display: block;
        text-align: center;
        padding: 5px;
        border: 5px;
    }
}
/* smartphone */
@media (max-width:550px){
    .checkbtn{
        display:block; 
    }
    main .welcome{
        grid-column: 1 / span 12;
        display: grid;
        margin-top: 5%;
    }
    .welcome p{
        color: var(--thirdary);
        text-align: justify;
        line-height: 1.25em;
    }
    #picture1{
       grid-column: 3 /span 10;
       width: 90%;
       border-radius: 0px;
       margin-top: 5%;
    }
    main .welcome-text{
        grid-column: 4 / span 6;
    }
    /* side bar pop up */
    ul{
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 80px;
        left: -100%;
        text-align: center;
        transition: all .5s;
    }
    nav ul{
        background: var(--thirdary);
    }
    nav ul li{
        display: block;
        margin: 50px 0;
        line-height: 30px;
    }
    nav ul li a{
        font-size: 2rem;
        color: var(--secondary);
    }
    a:hover{
        background: var(--primary);
        color: var(--secondary);
    }
    #check:checked ~ ul{
        left: 0;  
    }
    .fa-solid.fa-bars{
        display: block;
        color: var(--thirdary);
    }
    .arrow-btn{
    visibility:hidden;
    }
    nav i{
        overflow: hidden;
        background-color: none;
        position: fixed;
        padding-top: 10px;
        padding-right: 10px;
      }
      
}
