/* OVERALL STYLES */

.Header {
    display: flex;
    justify-content: space-between;
    background-color: rgb(240, 38, 38);
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 2;
    opacity: 0.95;
    box-shadow: 5px 5px 10px 5px black;
}

body {
    font-family: 'Raleway', sans-serif;
    margin: 0px;
    background: #232323;
}

.Main {
    margin-top: 109px;
}

/* HEADER STYLES */

@media screen and (min-width: 777px) and (max-width: 1920px){

    #Hamburger {
        display: none;
    }

    .Navigation a {
        color: white;
        text-decoration: none;
        transition: color 0.5s;
        margin-right: 10px;
        font-size: 1.5em;
        padding: 10px;
    }

    .Navigation a:hover {
        color: #232323;
        transition: color 0.5s;
    }

    .Pages {
        display: flex;
        padding: 40px;
    }

    .Pages a.active {
        background-color: #232323;
    }
}

@media screen and (min-width: 0px) and (max-width: 777px) {
    .Pages {
    display: none;
    }

    #Hamburger a {
    text-decoration: none;
    color: black;
    transition: color 0.5s ease;
    }

    #Hamburger a:hover {
    color: rgb(240, 38, 38);;
    }

    #Hamburger {
    display: block;
    position: relative;
    top: 40px;
    left: 40px;

    z-index: 1;

    -webkit-user-select: none;
    user-select: none;
    }

    #Hamburger input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;

    cursor: pointer;

    opacity: 0;

    z-index: 2;

    -webkit-touch-callout: none;
    }

    #Hamburger span {
    display: block;
    width: 35px;
    height: 4px;
    margin-bottom: 4px;
    margin-top: 2px;
    position: relative;

    background: white;
    border-radius: 2px;
    z-index: 1;

    transform-origin: 4px 0px;

    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0), background 0.5s cubic-bezier(0.77,0.2,0.05,1.0), opacity 0.5s ease;
    }

    #Hamburger span:first-child {
    transform-origin: 0% 100%;
    }

    #Hamburger span:nth-last-child(2) {
    transform-origin: 0% 0%;
    }

    #Hamburger input:checked ~span {
    opacity: 1;
    transform: rotate(45deg) translate(2px,-5px);
    background: rgb(240, 38, 38);
    }

    #Hamburger input:checked ~span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.4,0.4);
    }

    #Hamburger input:checked ~span:nth-last-child(2) {
    transform: rotate(-45deg) translate(-1px, 4px);
    }

    #PageNames {
    position: absolute;
    width: 130px;
    margin: -100px 0 0 -50px;
    padding: 40px;
    padding-top: 125px;

    background: white;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;

    transform-origin: 0% 0%;
    transform: translate(-100%, 0);

    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    }

    #PageNames li {
    padding: 10px;
    font-size: 1.5em;
    }

    #Hamburger input:checked ~ul {
    transform: none;
    }
}

.Name div{
    text-align: right;
    margin-left: 10px;
    font-weight: 700;
    color: white;
    font-size: 1.8em;
    padding-right: 40px;
    padding-top: 37.5px;
    padding-bottom: 37.5px;
    white-space: nowrap;
}

@media screen and (min-width: 0px) and (max-width: 777px) {
    .Name div {
        font-size: 22px;
    }
}

/* "ABOUT ME" STYLES */

.AboutMe {
    text-align: center;
    font-size: 1em;
    padding: 40px;
    color: white;
}

.AboutMe a {
    color: white;
}

.AboutMe a:visited {
    color: white;
    text-decoration: none;
}

.AboutMe a:active {
    color: rgb(240, 38, 38);;
}

.AboutMe img {
    min-height: 200px;
    min-width: 200px;
    width: 20%;
    height: auto;
}

.EmailMeButton a{
    background-color: white;
    padding: 5px;
    border: 2px solid rgb(240, 38, 38);
    border-radius: 4px;
    text-decoration: none;
    color: #232323;
    transition: background-color 0.5s;
}

.EmailMeButton a:hover {
    border: 2px solid rgb(240, 38, 38);
    background-color: rgb(240, 38, 38);
    color: white;
    transition: background-color 0.5s;
}

/* "WORK" STYLES */

.WorkItems {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    align-content: center;
    column-gap: 40px;
    row-gap: 40px;
    position: relative;
}

.WorkItem {
    position: relative;
}

.WorkItemBG {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position:center;
    background-repeat: no-repeat;
    transition: 0.5s;
}

.Title {
    height: 100%;
    width: 100%;
    text-align: center;
    object-fit: cover;
}

.Title .Subtitle {
    padding-top: 10px;
    transition: 0.5s;
    color: transparent;
    font-weight: 600;
}

.Title:hover .Subtitle {
    color: white;
}

.Description {
    opacity: 0;
    position: absolute;
    top: 0;
    padding: 10px;
    text-align: justify;
    vertical-align: center;
    transition: 0.5s;
    color: white;
    font-size: 0.8em;
}

@media screen and (min-width: 0px) and (max-width: 777px) {
    .Description {
    font-size: 12px;
    }
}

.WorkItem:hover .Description {
    opacity: 1;
    transition: 0.5s;
}

.MediaButton {
    text-align: center;
}

.MediaButton a{
    text-align: center;
    display: inline-block;
    background-color: white;
    padding: 5px;
    border: 2px solid rgb(240, 38, 38);
    border-radius: 4px;
    text-decoration: none;
    color: #232323;
}

.MediaButton a:hover {
    border: 2px solid rgb(240, 38, 38);
    background-color: rgb(240, 38, 38);
    color: white;
    transition: background-colour 0.5s;
}

.img-darken {
    transition: 0.5s;
    filter: brightness(10%);
}

/* CONTACT STYLES */

.ContactOptions {
    text-align: center;
}

.ContactOptions img {
    width: 20%;
    height: 20%;
    padding: 20px;
    vertical-align: middle;
    object-fit: cover;
    min-height: 200px;
    min-width: 200px;
}

.Poem {
    text-align: center;
    background-color: white;
    color: black;
}
