@import url('https://fonts.googleapis.com/css2?family=Tiny5&display=swap');

@font-face {
    font-family: 'Pixelanon';
    src: url('fonts/Pixelanon-Regular.eot');
    src: url('fonts/Pixelanon-Regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/Pixelanon-Regular.woff2') format('woff2'),
        url('fonts/Pixelanon-Regular.woff') format('woff'),
        url('fonts/Pixelanon-Regular.ttf') format('truetype'),
        url('fonts/Pixelanon-Regular.svg#Pixelanon') format('svg');
}

:root {
  --white-color: rgba(249, 245, 242, 1);
  --dark-color: rgba(81, 95, 83, 1);
  --mid-color: rgb(159, 187, 154, 1);
  --border: 1px solid rgb(159, 187, 154, 1);
  --title-font: "Pixelanon", sans-serif;
  --text-font: "Tiny5", sans-serif;
}

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

body{
    justify-content: center;
    text-align: center;
    background-color: var(--white-color);
    min-height: 100vh;
}

body.position-fixed {
    position: fixed;
}


/* ===================== HEADER ===================== */

header{
    position: sticky;
    background-color: var(--white-color);
    top: 0;
    border: var(--border);
    width : 100%;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    z-index: 100000;
}

.nav-button {
    position: relative;
    z-index: 1000;
}

.nav-container{
    display: none;
}

.nav-container.isOpen{
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--dark-color);
    padding: 10px;
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
}

.nav-button {
    position: relative;
    height: 40px;
    width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-button .bar {
    height: 10px;
    width: 100%;
    background: var(--dark-color);
    transition: 0.2s;
}

.nav-button.isOpen .bar {
    background: var(--white-color);
}

.nav-button.isOpen .bar:nth-child(1) {
    transform: translateY(150%) rotate(45deg);
}

.nav-button.isOpen .bar:nth-child(2) {
    display: none;
}

.nav-button.isOpen .bar:nth-child(3) {
    transform:translateY(-150%) rotate(-45deg);
}

.back{
    height: 40px;
    width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.back .bar {
    height: 10px;
    width: 75%;
    background: var(--dark-color);
}

.back .bar:nth-child(1) {
    transform: translateY(200%) rotate(25deg) translateX(15%);
}

.back .bar:nth-child(2) {
    transform: translateY(-200%) rotate(-25deg)translateX(15%);
}

/* ===================== BODY ===================== */

.container {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 5px;
    margin: 5px 0px 5px 0px;
    padding: 5px;
}

.image-box {
    overflow: hidden;
    border: var(--border);
    padding: 20px;
    font-size: 20px;
    justify-content: center;
    aspect-ratio: 1/1;
}

.image-box img {
    display: block;
    object-fit: cover;
    aspect-ratio: 1/1;
    width: 100%;
}

.vertical{
    width: 600px;
    height: 900px;
}

.horizontal{
    box-sizing: border-box;
    width: 100vw;
    margin-top: 5px;
}

.description{
    border: var(--border);
    margin: 0px 20px 5px 20px;
    text-align: center;
}

/* ===================== WHO AM I? ===================== */

.id{
    border: var(--border);
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 10px 300px;
    padding: 30px;
    height: fit-content ;
}

.picture{
    overflow: hidden;
    border: var(--border);
    width: 50%;
    height: 62.5%;
    justify-content: center;
    aspect-ratio: 4/5;
}

.picture img{
    display: block;
    object-fit: cover;
    aspect-ratio: 4/5;
    width: 100%;
}

.text{
    border: var(--border);
    padding: 5px;
    width: 100%;
}

ul{
    text-align: left;
}

.cv{
    border: var(--border);
    justify-content: center;
    margin: 0px 20px 5px 20px;
    padding: 5px 20px;
}

.lists{
    border: var(--border);
    padding: 20px 0px 20px 50px;
    margin: 10px 5px;
}

.intrests{
    border: var(--border);
    margin: 5px 50px 10px 50px;
    text-align: center;
}

/* ===================== TEXT ===================== */

h1{
    font-family: var(--title-font);
    text-transform: uppercase;
    font-size: 64px;
    border: var(--border);
    color: var(--dark-color);
}

h2{
    font-family: var(--title-font);
    text-transform: capitalize;
    font-size: 50px;
    color: var(--dark-color);
}

h3{
    font-family: var(--text-font);
    text-transform: uppercase;
    font-size: 24px;
    color: var(--dark-color);
}

p,li,a{
    font-family: var(--text-font);
    font-size: 20px;
}

p,li{
    color: var(--dark-color);
}

a{
    color: var(--mid-color);
}

.biglink {
    font-family: var(--title-font);
    text-transform: capitalize;
    font-size: 64px;
    color: var(--white-color);
    margin: 20px;
    text-decoration: none;
}

h4{
    font-family: var(--text-font);
    font-size: 16px;
    color: var(--dark-color);
}

/* ===================== CAROUSEL ===================== */

.gallery-cell {
    width: 30%;
    margin-right: 10px;
    counter-increment: gallery-cell;

}

.gallery-cell img {
    width: 100%;
}

.gallery.is-fullscreen .gallery-cell {
  height: 100%;
}

.flickity-button {
  background: var(--dark-color);
}
.flickity-button:hover {
  background: var(--mid-color);
}

.flickity-button-icon {
  fill: var(--white-color);
}

/* ===================== FOOTER ===================== */

footer {
    background-color: var(--dark-color);
    padding: 5px;
    text-align: left;
    margin-top: 20px;
}

.textfooter {
    color: var(--white-color);
}

/* ===================== PHONE ===================== */

@media only screen and (max-width: 1050px) {
    
    
    /* ===================== CAROUSEL ===================== */

    .gallery-cell {
            width: 75%;
    }

    /* ===================== TEXT ===================== */

    h1{
        font-size: 50px;
    }

    h2{
        font-size: 40px;
    }

    h3{
        font-size: 20px;
    }

    p,a{
        font-size: 18px;
    }


    .biglink {
        font-size: 50px;
    }

    h4{
        font-size: 14px;   
    }

    /* ===================== BODY ===================== */

    .container{
        grid-template-columns:auto;
    }

    /* ===================== WHO AM I? ===================== */

    .id{
        display: inline-grid;
        margin: 10px auto;
        height: fit-content;
        justify-content: center;
    }

    .picture{
        height: auto;
        justify-self: center;
    }

}