/* REMEMBER TO CODE FOR MOBILE FIRST */

* {
        margin: 0 0 0;
    }

body {
    background-color: Linen;
    margin-left: 5px;
    margin-right: 5px;
}

/* This is for the big headings at the top of the main pages */
h1 {
    width: 100%;
    text-align: center;
    border-bottom: 2px solid #000;
    line-height: 0;
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 2.9em;
    font-weight: normal;
}

/* This is for the big headings at the top of the main pages */
h1 span {
    background-color:Linen;
    padding:0 12px;
}

/* This is for smaller headings */
h2 {
    text-align: center;
    font-size: calc(20px + 1vw);
    font-family: 'Helvetica';
    margin: 0;
    font-weight: normal;
}

/* This is for big headings at the top of sub pages */
h3 {
    font-family: times new roman;
    font-size: 2.8em;
    font-weight: normal;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* This is for the subheadings */
h4 {
    font-family: 'Helvetica';
    font-size: calc(27px + 0.25vw);
    font-weight: normal;
    padding-top: 20px;
    padding-bottom: 10px;
}

p {
    text-align: center;
    font-size: calc(20px + 0.25vw);
    font-family: 'Helvetica';
}


nav ul{
    list-style-type:none;
    background-color: #c8bbb1;
    text-align: center;
    font-size: calc(22px + 0.1vw);
    font-family: 'Helvetica';
    margin: 0 0 0;
    padding: 10px 0 10px;
    overflow: hidden;
}

nav a{
    color: black;
    text-decoration: none;
    padding: 0;
    margin: 5px;
    text-align: center;
}

nav a:hover{
    background-color:Linen;
}

nav li{
    display: inline-block;
    list-style-type: none;
    margin: 5px;
}

a.button {
    background-color: #c8bbb1;
    color: Black;
    text-decoration: none;
    padding: 10px;
    border-radius: 13px;
    outline: darkgray solid 3px;
    margin-right: 15px;
    margin-left: 15px;
    font-family: 'Helvetica';
    font-size: calc(35px + 0.8vw);
    float: right;
}


form input {
    display: block;
    width: 91%;
    height: 2.5em;
    margin: 12px auto;
    font-size: 20px;
}

form button {
    font-size: 20px;
    padding: 5px 18px 5px;
    margin-left: 17px;
}

video {
	justify-content: center;
	display: block;
	margin: auto;
    width: 25em;
}

.container img {
        max-height: 100%;
        width: auto;
        height: 16em;
        display: block;
        margin: auto;
    }


header img {
    width: 20rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

footer img {
    height: 6rem !important;
}

header {
    height: 70px;
    padding: 10px 0 30px;
    color: Gainsboro;
}

footer {
    width: 100%;
    padding: 14px 0 20px;
    background-color: #c8bbb1;
    color: Black;
    text-align: center;
    font-size: calc(21px + 0.1vw);
    font-family: 'Helvetica';
    margin-top: 1em;
    grid-area: footer;
}

footer p {
    padding: 20px 0 0;
}

footer ul{
    list-style-type:none;
    text-decoration: none;
    text-align: center;
    padding: 16px 0 0;
}

footer li{
    display: inline-block;
}

footer a{
    display: inline-block;
    text-decoration: none;
    color: black;
}

figcaption {
    text-align: center;
    font-family: 'Helvetica';
    padding: 13px 0 0;
    font-size: calc(18px + 0.25vw);
}

/* The caption text which goes below the images on the gallery*/
.container .image-container p {
    text-align: left;
    font-family: 'Times New Roman';
    font-size: 20px;
    margin-left: 5px;
}

/* THE HEIGHT AND WIDTH ATTRIBUTES BELOW ARE WHAT CHANGE THE DIMENSIONS OF THE IMAGES*/
      .container .image-container .image {
        width: auto;
        height: auto;
        cursor: pointer;
      }

      .container .image-container .image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition: 0.2s linear;
      }

      .container .image-container .image:hover img {
        transform: scale(0.94);
      }

      .container .popup-image {
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.7);
        height: 100%;
        width: 100%;
        z-index: 100;
        display: none;
      }

        /* the x button on the popup */
      .container .popup-image span {
        padding-left: 10px;
        font-size: 75px;
        font-weight: bolder;
        color: white;
        cursor: pointer;
        z-index: 100;
      }

      .container .popup-image img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 5px solid white;
        border-radius: 5px;
        width: auto;
        object-fit: cover;
        max-height: 95%;
        height: auto;
        
      }

      @media (max-width: 768px) {
        .container .popup-image img {
          width: 95%;
        }
      }

/* Buffer between small and medium devices*/
@media only screen and (min-width: 500px) and (max-width: 767px){
    body {
        margin-left: 7vh;
        margin-right: 7vh;
    }
}

/* media query tablets/medium devices */
@media only screen and (min-width: 767px) and (max-width: 1200px){
    body {
        margin-left: 10vh;
        margin-right: 10vh;
    }
}

/* media query laptop/large devices */
@media only screen and (min-width:1200px){
    body {
        margin-left: 17vh;
        margin-right: 17vh;
    }
    
    form input {
        font-size: 19px;
    }
    
    form button {
        font-size: 19px;
    }

}

/* media query desktop/very large devices */
@media only screen and (min-width:1550px){
    body {
        margin-left: 30vh;
        margin-right: 30vh;
    }
}