* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*PROJECTS HEADER*/
/*.projects-header-container {
    font-size: 20px;
    width: 80%;
    margin-left: 40%;
    margin-top: 5%;
    transform: translate(-50%, -10%);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

.projects-header-container > h1 {
    margin: 10px;
}

.projects-header-container > a {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 18px !important;
    color: #111;
    text-decoration: none;
    transition: .3s ease-out;
}

.projects-header-container a:hover {
    color: orange
}*/

/*Header logo and menu button*/
a {
    text-decoration: none !important;
}

#header {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    z-index: 1;
}

.logo-container > h1  {
    color: #000;
}

/*Projects Menu Button*/
/*Menu button*/
.menu-button {
    position: absolute;
    top: 80px;
    right: 0;
    transform: translate(-20%, -50%);
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    z-index: 7;
    width: 80px;
    height: 30px;
    display: block;
    cursor: pointer;
}

.menu-button::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 30px;
    display: block;
    transition: .5s ease-in;
}

.menu-button::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 60px;
    display: block;
    transition: .5s ease-in;
}

body.menu-button-active .menu-button::after,  body.menu-button-active .menu-button::before{
    width: 20px;
    height: 20px;
    background-color: #111;
    z-index: 7;
    display: block;
    position: absolute;
    top: 20%;
}

body.menu-button-active .menu-button::after {
    width: 40px;
    height: 10px;
    transform: translate(-50%, 50%) rotate(45deg);
}

body.menu-button-active .menu-button::before {
    width: 40px;
    height: 10px;
    transform: translate(25%, 50%) rotate(135deg);
}

body.menu-button-active span {
    transform: translateX(50%);
}

body:not(.menu-button-active) .menu-button::after, body:not(.menu-button-active) .menu-button::before, body:not(.menu-button-active) .menu-button span{
    width: 20px;
    height: 20px;
    background-color: #efbc31;
    z-index: 7;
    display: block;
    position: absolute;
    top: 20%;
    transition: .5s ease-in;
}


/*PROJECTS CONTAINER*/
.projects-container {
    width: 80%;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -20%);
}

.single-project-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    display: inline-block;
}

.single-project-container > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s linear;
}

.single-project-container h1 {
    font-family: sans-serif;
    color: #eee;
    position: absolute;
    bottom: 3%;
    left: 3%;
    opacity: 0;
    transition: .2s ease-in;
}

.single-project-container:hover img {
    filter:brightness(50%);
}
.single-project-container:hover h1 {
    opacity: 100;
}

@media screen and (max-width: 480px) {
    .logo-container > h1  {
        font-size: 28px !important;
    }
}

@media screen and (max-width: 400px) {
    .logo-container > h1  {
        font-size: 28px !important;
    }
}

@media screen and (max-width: 360px) {

    /*COMPANY's NAME*/
    .logo-container > h1  {
        font-size: 26px !important;
    }
}

@media screen and (max-width: 300px) {
    .logo-container > h1  {
        font-size: 26px !important;
    }

    .projects-container {
        width: 80%;
        display: grid;
        grid-gap: 10px;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-auto-rows: 200px;
        grid-auto-flow: dense;
        position: absolute;
        top: 60%;
        left: 45%;
        transform: translate(-50%, -20%);
    }

    .projects-header-container > h1 {
        font-size: 15px !important;
        transform: scale(20%);
        margin-left: -15px !important;
    }
}

@media screen and (max-width: 280px){
    .logo-container > h1  {
        font-size: 24px !important;
    }
}