@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

a {
    text-decoration: none;
}
.header{
    width: 100%;
    padding-top: 10px;
    padding-bottom: 10px;
    display:flex;
    justify-content: right;
    background-color:#fff;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}


.nav {
    margin: 5px 5%;
}

.nav li {
    display: inline;
    margin:10px;
}

.nav a {
    color: black;
    font-size: 1em;
    transition: font-size 0.35s;
    text-decoration: none;
}

.nav a:hover {
    color: darkblue;
    cursor: pointer;
    font-size: 1.2em;
}

footer{
    background-color: rgb(20,20,20);
    color:#fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding-top: 2em;
    padding-bottom: 2em;
    gap: 20px;
    
}

footer p {
    font-size: 1.2em;
    color: #999999;
}

.email {
    grid-column: 1 / 2;
    justify-self: center;
}

.email h1 {
    font-size: 3em;
}

.social {
    grid-column: 2 / 3;
    display: flex;
    flex-flow: column;
    justify-self: start;
}

.social h3 {
    font-size: 1.75em;
}

.social a {
    font-size: 1.7em;
    padding: 15px;
    width: 30px;
    text-align: center;
    text-decoration: none;
    color: #000;
    border-radius: 50%;
    background-color: #fff;
    margin-bottom: 5%;
    transition: all 0.3s;
}

.social a:hover {
    opacity: 0.7;
    font-size: 2em;
    padding: 20px;
    width: 35px;
}

.credit {
    grid-column: 1 / span 2;
    align-self: end;
    margin-bottom: 0;
    border-top:#999999 1px solid;
    width: 75%;
    justify-self: center;

}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@media only screen and (max-width: 769px){
    .nav ul {
        /* display: none; */
        flex-direction: column;
        width: 100%;
        background: #fff;
        text-align: center;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 0;
        margin: 0;
        box-shadow: 0px 4px 5px rgba(0,0,0,0.1);
        z-index: 2;
    }

    .nav li{
        display: block;
        margin: 10px 0;
    }

    .nav-toggle {
        display: none;
    } 

    .nav-toggle-lable {
        cursor: pointer;
        display: block;
        padding: 20px;
    }

    .nav label {
        font-size: 1.5em;
    }

    .nav-toggle:checked ~ .menu {
        display: flex;
        animation: fadeIn 0.3s ease-in-out forwards;
    }

    .nav-toggle:not(:checked) ~ .menu {
        display: flex;
        animation: fadeOut 0.3s ease-in-out forwards;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 1em;
        padding-bottom: 1em;
    }

    footer {
        display: flex;
        flex-flow:column;
        align-items:start;
    }

    .social,
    .email {
        margin-left: 8%;
    }

    .social a {
        margin: 5%;
    }

    .credit{
        align-self: center;
    }
}


@media (min-width: 769px){
    .nav-toggle,
    .nav-toggle-label {
        display: none;
    }
}

@media only screen and (max-width: 1024px) and (min-width: 769px){
    .video-background{
        top: 40%;
    }
}