html, body {
    margin: 0;
    padding: 0;
}

*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { 
    font-size: clamp(12px, 1vw, 14px); 
    overflow-y: scroll; 
}

body {
    background-color: #C7C2AB;
    display: flex;
    flex-direction: column;
    height: 100%;
}


h1 {
    font-family: RodinProDB, sans-serif;
    font-size: 24px;   
    color: #3A3831;
}

p {
    padding: 5px 50px;
    font-family: RodinProRegular, sans-serif;
    font-size: 14px;
    color: #3A3831;
}


/*** HEADER ***/
.header {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto;

    padding: 10px 2rem 10px 2rem;
    width: 100%;
    height: 80px;
    position: fixed;
    top: 0; 

    justify-content: space-between;
    align-items: center; 
    overflow: hidden;
    border-bottom: 2px solid #3A3831;
    background-color: #C7C2AB;
    box-sizing: border-box;  
    z-index: 1000;
}

.header a {
    text-decoration: none;
    color: #3A3831;
    background-color: #ACA993;

    font-family: RodinProB, sans-serif;
    font-size: clamp(12px, 0.6vw, 14px);
    letter-spacing: 0.1rem;
}

.header a:hover {
    color: #C7C2AB;
    background-color: #3A3831;
}

.logo {
    grid-area: 1 / 1 / 2 / 2;
    box-sizing: border-box;
    margin: 0;
    padding: 5px; 
    width: 30px;
    height: 30px; 
    display: flex; 
    justify-content: center;
    align-items: center; 
    font-size: 15px !important; 
    border-radius: 100px;
}

.menu { 
    grid-area: 1 / 2 / 2 / 3;
    box-sizing: border-box;
}

.menu ul{
    list-style: none;
    display: flex;
}

.menu ul li + li {
    margin-left: 1rem;
}

.menu li {
    font-size: 14px;
}

.menu li a {
    padding: 10px;
}


/*** MAIN ***/
.main {
    flex-grow: 1;
    padding: 80px 2rem 2rem 2rem;
    margin-bottom: 3rem;
    box-sizing: border-box;
    line-height: 1.5em;
}

.main h1 {
    padding: 25px 0;
    margin: 0;
    letter-spacing: 0.1rem;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    list-style: none;
    grid-column-gap: 1.5rem;
    grid-row-gap: 3rem;

    padding: 0 0 3rem 0;
    margin: 0;
}

figure {
    margin: 0;
    padding: 0;
}

.project-title {
    width: 90%;
    height: auto;
    background-color: #ACA993;
    padding: 8px;
}

.projects a {
    font-family: RodinProRegular, sans-serif;
    letter-spacing: 0.1rem;
    text-decoration: none;
    color: #3A3831;
}

.projects img {
    width: 100%;
    height: auto; 
    background-color: #3A3831;
    border: 2px solid #ACA993;
    vertical-align: bottom;
}

.projects img .hover-image {
    display: none;
}

.project-content {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}


/*** DESIGNS PAGE ***/
.project-tech {
    width: 100%;
    height: auto;
    background-color: #FAB217;
    color: #000000;
    padding: 8px;
    margin: 0;
    display: block;
    box-sizing: border-box
}

.page-description {
    padding: 0 0 2.5rem 0;
    margin: 0;
}

.page-description p {
    margin: 0;
    padding: 0;
}

body.designs {
    background-color: #FAB217;
}

body.designs h1 {
    color: #000000;
}

body.designs p {
    color: #000000;
}

body.designs .header {
    background-color: #FAB217;
    border-bottom: 2px solid #000000;
}

body.designs .header a {
    color: #000000;
    background-color: #FAB217;
    border: 1px solid black;
}

body.designs .header a:hover {
    background-color: #000000;
    color: #FAB217;
}

body.designs .project-title,
body.designs .project-tech {
    background-color: #FAB217;
    color: #000000;
}

body.designs .project-title {
    border-top: 1px solid black;
    border-left: 1px solid black;
    border-right: 1px solid black;
}

body.designs .project-tech {
    border-bottom: 1px solid black;
    border-left: 1px solid black;
    border-right: 1px solid black;
}

body.designs .projects img {
    border: 1px solid #000000;
}

body.designs .footer {
    background-color: #FAB217;
    border-top: 2px solid #000000;
}

body.designs .footer a {
    color: #000000;
    background-color: #FAB217;
    border: 1px solid black;
}

body.designs .footer a:hover {
    background-color: #000000;
    color: #FAB217;
}



/*** FOOTER ***/
.footer {
    padding: 10px 2rem 10px 2rem;
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    bottom: 0;
    border-top: 2px solid #3A3831;
    background-color: #D7D1BA;
    text-align: left; 

    display: flex;
    justify-content: space-between;
}

.footer a{
    font-family: RodinProDB, sans-serif;
    font-size: 10px;
    letter-spacing: 0.1rem;

    color: #3A3831;
    text-decoration: none;
    padding: 5px;
    background-color: #ACA993;
}

.footer a:hover{
    color: #D7D1BA;
    background-color: #3A3831;
}


/*** SCROLLBAR ***/
::-webkit-scrollbar {
    width: 10px; 
}

::-webkit-scrollbar-track {
    background-color: transparent; 
    border-left: 1px solid #3A3831; 
}

::-webkit-scrollbar-thumb {
    background-color: #3A3831; 
    border-radius: 0; 
}

html {
    scrollbar-width: thin; 
    scrollbar-color: #615f53 #3A3831;
}


/***  FONTS ***/
@font-face {
    font-family: 'OverpassRegular';
    src: url('/assets/fonts/Overpass-VariableFont_wght.ttf');
}

@font-face {
    font-family: 'OverpassItalic';
    src: url('/assets/fonts/Overpass-Italic-VariableFont_wght.ttf');
}

@font-face {
    font-family: 'RodinProB';
    src: url('/assets/fonts/FOT-RodinProN-B.otf');
}

@font-face {
    font-family: 'RodinProDB';
    src: url('/assets/fonts/FOT-RodinProN-DB.otf');
}

@font-face {
    font-family: 'RodinProEB';
    src: url('/assets/fonts/FOT-RodinProN-EB.otf');
}

@font-face {
    font-family: 'RodinProRegular';
    src: url('/assets/fonts/Rodin-Regular.ttf');
}

@font-face {
    font-family: 'RodinProItalic';
    src: url('/assets/fonts/Rodin-Italic.ttf');
}

@font-face {
    font-family: 'RodinProBold';
    src: url('/assets/fonts/Rodin-Bold.ttf');
}

@font-face {
    font-family: 'RodinProBoldItalic';
    src: url('/assets/fonts/Rodin-BoldItalic.ttf');
}


/*** MOBILE ***/
@media (max-width: 960px) {    
    .projects {
        grid-template-columns: auto;
        grid-template-rows: auto;
        column-gap: 0;
        row-gap: 1rem;
    }
}

@media (max-width: 450px) {
    main {
        padding: 50px 2rem 2rem 2rem;
    }

    main h1 {
        margin-top: 1rem;
    }
}