* {
    margin: 0;
    padding: 0;
}

a {
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: coral;
}

h1, h2, h3 {
    font-family: Arial, Helvetica, sans-serif;
    padding: 2% 0;
}

p {
    font-family: Georgia, 'Times New Roman', Times, serif;
    margin-bottom: 2%;
}

img {
    height: 100%;
    width: 100%;
}

/* The Modal (background) */
#modal {
     /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    margin-top: -8px;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
  
/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    border: 2px solid black;
    padding: 2% 0;
}

.modal-text {
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: larger;
    text-align: center;
}

.modal-thanks {
    font-size: 1.4em;
    text-align: center;
}
  
/* The Close Button */
.cancel {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    margin-top: -2.5%;
    padding: 1%;
}
  
.cancel:hover,
.cancel:focus {
    color: orange;
    text-decoration: none;
    cursor: pointer;
    transform: rotate(50% -50% 50%);
}

.button {
    padding: 0 .4em .135em;
    border: 1px solid black;
    border-radius: 2%;
}

.button:hover {
    color: orange;
    cursor: pointer;
}

.header {
    position: fixed;
    width: 100%;
    margin-top: -10px;
    background-color: orange;
    font-size: 1rem;
    font-weight: 1000;
    height: 24vh;
}

.headline {
    color: white;
    text-align: right;
    margin-right: 1%;
}

.social-media {
    margin-left: 4%;
}

.fa {
    font-size: 30px;
    text-align: center;
    text-decoration: none;
}

.fa:hover {
    opacity: 0.7;
}

.fa-facebook {
    background: blue;
}

.fa-twitter {
    background: lightblue;
}

.main {
    padding: 0 4%; 
}

.news-content {
    background-color: lightgray;
    box-shadow: blue 1px 1px;
    padding: 1%;
}

.sub-header {
    text-align: center;
}

.text-one {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: black;
}

.plaone:hover {
    opacity: 0.5;
}

.one-contact {
    height: auto;
    width: 400px;
    margin: auto;
}

.address {
    text-align: center;
}

.footer {
    background-color: black;
    font-variant: normal;
    padding: 2%;
    color: white;
    text-align: center;
}

/*
.slider-frame {
    overflow: hidden;
    height: 400px;
    width: 3600px;
}


@keyframes slide_animation{
    0% {left:0px;}
    10% {left: 2000px;}
    20% {left: 2600px;}
    30% {left: 2800px;}
    40% {left: 3600px;}
    50% {left: 4000px;}
    60% {left: 1200px;}
    70% {left: 1200px;}
    80% {left: 0px;}
    90% {left: 0px;}
    100% {left: 0px;}
}

/*
@-webkit-keyframes slide_animation{
    0% {left:0px;}
    10% {left:0px;}
    20% {left: 3000px;}
    30% {left: 3000px;}
    40% {left: 2400px;}
    50% {left: 2400px;}
    60% {left: 1200px;}
    70% {left: 1200px;}
    80% {left:  0px;}
    90% {left:  0px;}
    100% {left: 0px;}
}

.slide-images {
    width: 3000px;
    height: 800px;
    margin: 0;
    position: relative;
    animation-name: slide_animation;
    animation-duration: 9s;
    animation-iteration-count: infinite;
    animation-play-state: running;
    -webkit-animation-name: slide_animation;
    -webkit-animation-duration: 6s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-play-state: running;
}


.img-container {
    height: 400px;
    width: 1000px;
    position: relative;
    float: left;
}
*/


@media only screen and (max-width: 500px) { 
    
    .container {
        display: block;
    } 

    .img-container {
        padding-top: 170px;
    }

    .social-media {
        margin-left: 4%;
    }
    
    .fa {
        padding: 10px;
        width: 30px;
    }
}

@media only screen and (min-width: 500px) {

    .img-container {
        padding-top: 170px;
    }

    .social-media {
        margin-left: 4%;
    }
    
    .fa {
        padding: 10px;
        width: 34px;
    }
}

@media only screen and (min-width: 600px) {

    .img-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        gap: 0.2%;
        margin-top: 0.4%;
    }

    .companies {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
        gap: 0.8%;
    }
}

@media only screen and (min-width: 822px) {

h2 {
    text-align: center;
}

.social-media {
    margin-left: 4%;
}

.fa {
    padding: 14px;
    width: 50px;
}

.news-content {
    width: 80%;
    height: auto;
}

.four-four {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row: 1;
}

.four {
    grid-column: 2/3;
    grid-row: 1;
    padding: 10% 2%;
}

.five-five {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row: 1;
    margin-bottom: 1%;
}

.five {
    grid-column: 1/2;
    grid-row: 1;
    padding: 22% 2%;
    }
}

@media only screen and (min-width: 992px) {

    .news-content {
        width: 70%;
        height: auto;
    }

    .beginning-text {
        text-align: center;
    }

    .four {
        width: 200px;
        margin-left: 30%;
    }

    .five {
        width: 200px;
        margin-left: 24%;
    }   
}

@media only screen and (min-width: 1200px) {

    .fa {
        padding: 20px;
        width: 50px;
    }

    .news-content {
        width: 50%;
        height: auto;
    }

    .four {
        width: 300px;
    }

    .five {
        width: 300px;
    }
}

@media only screen and (min-width: 1656px) {

    .beginning-text-a {
        text-align: center;
    }   
    
    .four {
        width: 400px;
    }

    .five {
        width: 400px;
    }
}