:root {
    --header-font: 'Cormorant', serif;
}

/* Header section */
header {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}
header picture {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
header img {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
    transition: transform 2000ms ease;
}
#header-background {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Main Section */
#listings-header {
    font-family: var(--header-font); 
    margin: 10px 10px 10px 0px;
    font-size: 25px;
    text-align: center;
}
.portfolio video {
    width: 100%;
    height: 200px;
}
.portfolio-text {
    padding: 10px;
    box-shadow: 2px 2px 2px lightgray, -2px -2px 2px lightgray;
}
.portfolio h3 {
    font-family: var(--header-font);
    margin: 0;
    white-space: wrap;
    text-align: center;
    font-size: 18px;
}
.portfolio a {
    text-decoration: none;
    border: 1px solid black;
    color: black;
    padding: 5px 10px 5px 10px;
    margin: 10px auto 0px auto;
    display: block;
    width: fit-content;
}
.portfolio a:hover {
    background-color: var(--primary-main-color);
    border: 1px solid var(--primary-main-color);
    color: white;
}

/* Small screens (Mobile) */
@media only screen and (max-width: 600px) {
   /* Header Section */
    #header-article {
        position: absolute;
        bottom: 25%;
        left: 8%;
        right: 8%;
        z-index: 1;
        width: 84%;
        text-align: center;
        display: flex;
        flex-flow: column wrap;
        align-items: center;
        justify-content: center;
        color: white;
    }
    h1 {
        font-size: 40px;
        font-family: var(--header-font);
        margin: 0;
    }
    header p {
        font-size: 18px;
        text-align: center;
    }

    /* Portfolio Section */
    #portfolio-list {
        display: flex;
        flex-flow: row wrap;
        width: 85%;
        margin: 10px auto 0px auto;
        justify-content: space-between;
    }
    .portfolio {
        width: 100%;
        margin: 0px 0px 10px 0px;
    }
}

/* Medium screens (Tablets) */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
   /* Header Section */
    #header-article {
        position: absolute;
        bottom: 25%;
        left: 25%;
        right: 25%;
        z-index: 1;
        width: 50%;
        text-align: center;
        display: flex;
        flex-flow: column wrap;
        align-items: center;
        justify-content: center;
        color: white;
    }
    h1 {
        font-size: 50px;
        font-family: var(--header-font);
        margin: 0;
    }
    header p {
        font-size: 18px;
        text-align: center;
    }

    /* Portfolio Section */
    #portfolio-list {
        display: flex;
        flex-flow: row wrap;
        width: 75%;
        margin: 10px auto 0px auto;
        justify-content: space-between;
    }
    .portfolio {
        min-width: 300px;
        max-width: 300px;
        margin: 0px 20px 20px 10px;
    }
}

/* Large screens (Desktops) */
@media only screen and (min-width: 1025px) {
    /* Header Section */
    #header-article {
        position: absolute;
        bottom: 25%;
        left: 30%;
        right: 30%;
        z-index: 1;
        width: 40%;
        text-align: center;
        display: flex;
        flex-flow: column wrap;
        align-items: center;
        justify-content: center;
        color: white;
    }
    h1 {
        font-size: 50px;
        font-family: var(--header-font);
        margin: 0;
    }
    header p {
        font-size: 18px;
        text-align: center;
    }

    /* Portfolio Section */
    #portfolio-list {
        display: flex;
        flex-flow: row wrap;
        width: 75%;
        margin: 10px auto 0px auto;
        justify-content: space-between;
    }
    .portfolio {
        min-width: 300px;
        max-width: 300px;
        margin: 0px 20px 20px 10px;
    }
}