/****************************/
/*           GENERAL        */
/****************************/

/* GLOBAL */
:root {
    width: 100%;
    scroll-behavior: smooth;
    
    --black:#3E3B56;
    --black-light:#474467;
    --black-dark:#2E303E;
    --white:#FFFDEA;
    --white-transparent:rgba(255, 253, 234, .1);
    --yellow:#FFB308;
    --yellow-light:#FFD599;

    --paper-color:var(--black);
    --text-color:var(--white);
    --marked-color:var(--yellow);
    --second-marked-color:var(--yellow-light);

    color:var(--text-color);
    background-color:var(--paper-color);
    fill: var(--text-color);

    height: inherit;
    width: inherit;

    font-size: 100%;
    font-family: 'Paysage';
}
p:not(:has(img)), ul, li, mark, .btn{
    font-size: clamp(1rem, 3.75vw, 1.33rem);
    max-width: 36em;
    font-weight: normal;
}
body{
    margin:0;
}

/* TYPO */
@font-face {
    font-family: 'Paysage';
    src: url("../fonts/Paysage-Black.woff");
    font-weight: 1000;
    font-display: swap;
}
@font-face {
    font-family: 'Paysage';
    src: url("../fonts/Paysage-Bold.woff");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Paysage';
    src: url("../fonts/Paysage-Medium.woff");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Paysage';
    src: url("../fonts/Paysage-Regular.woff");
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Code Pro';
    src: url("../fonts/SourceCodePro-Black.ttf");
    font-weight: 1000;
    font-display: swap;
}

/* TEXT */
h1{
    font-size: 5rem;
    font-weight: 700;
    line-height: 75%;
    max-width: 16em;
    padding: 0;
    margin: 0;
    width: fit-content;
}
h2{
    font-size: 2.5rem;
    font-weight: 1000;
    padding: 0;
    margin: 0;
    margin-bottom: 1rem;
    max-width: 24rem;
}
h3{
    font-size: 2rem;
    font-weight: 700;
    padding: 0;
    margin: 0;
    width: fit-content;
    border-bottom: solid 4px var(--marked-color);
    margin-bottom: .5em;
}
strong{
    font-weight: 1000;
}
small{
    display: flex;
    max-width: 32rem;
}
ul{
    padding-left: 1em;
    margin-bottom: 1em;
}
li{
    padding-left: .25em;
    margin-top: 0.5em;
    max-width: 32em;
}

/* LINK */
a{
    color: inherit;
    cursor:default;
    font-size: inherit;
    text-decoration: none;
}
a[target="_blank"]::after{
    content:" ↗";
}
a:not(.btn){
    border-bottom: solid 2px var(--second-marked-color);
}
a:not(.btn):not(.active):hover{
    cursor: pointer;
    color: var(--second-marked-color);
}
a.active{
    font-weight: bold;
    color: var(--second-marked-color);
}

/* BUTTON */
.btn, button{
    text-decoration: inherit;
    padding: .68rem 1.35rem;
    border-radius: 8px;
    margin-bottom: .5em;
    width: fit-content;
    border: solid 1px var(--paper-color);
}
.btn:not(.active):hover{
    transform:translateY(-2px) scale(1.02);
    transition: 0.35s;
    cursor: pointer;
}
.btn.lv1{
    fill: var(--paper-color);
    color: var(--paper-color);
    background-color: var(--second-marked-color);
}
.btn.lv1:not(.active):hover{
    background: var(--text-color);
}
.btn.lv2{
    border: 2px solid var(--text-color);
    background-color: var(--paper-color);
    color: var(--text-color);
}
.btn.lv2:not(.active):hover{
    background-color: var(--text-color);
    color: var(--paper-color);
}
.btn.active{
    background-color: var(--marked-color);
    color: var(--paper-color);
    border: 2px solid var(--marked-color);
}

/* MEDIA*/
img{
    width: 100%;
    max-width: 720px;
}
svg{
    height: auto;
}
picture{
    width: 100%;
    display: flex;
    justify-content: center;
}

/********************/
/*  TO USE CLASSES  */
/********************/

.flex{
    display: flex;
    flex-direction: column;
    align-items: start;
}
.flex-row{
    display: flex;
    flex-direction: row;
    align-items: start;
    flex-wrap: wrap;
}
.align-center{
    align-items: center;
}
.j-space-between{
    justify-content: space-between;
}
.j-center{
    justify-content: center;
}
.baseline{
    align-items: baseline;
}
.w-100{
    width: 100%;
}
.w-90{
    width: 90%;
    margin: auto;
}
.w-80{
    width: 83%;
    margin: auto;
}
.f-contont{
    width: fit-content;
}
.mr-t-2{
    margin-top: 2em;
}
.mr-b-2 {
    margin-bottom: 2em;
}
.float-right{
    float: right;
    margin-left: 2em;
    width: 40%;
}
.float-left{
    float: left;
    margin-right: 2em;
    width: 40%;
}
.underline{
    text-decoration: underline;
}
.black-light{
    --paper-color:var(--black-light);
}
.black-dark{
    --paper-color:var(--black-dark);
}
.white{
    --paper-color:var(--white);
    --text-color: var(--black);
}
.yellow{
    --paper-color:var(--yellow);
    --text-color: var(--black);
    --marked-color: var(--white);
}
.yellow-light{
    --paper-color:var(--yellow-light);
    --text-color: var(--black);
    --marked-color: var(--yellow);
    --second-marked-color:var(--white);
}
.marked-color{
    color: var(--marked-color);
}
.fill-marked-color{
    fill: var(--marked-color);
}
.bck-marked{
    background-color: var(--marked-color);
    color: var(--black);
}

/***********/
/*  OTHER  */
/***********/

/* ARROW */
.arrow svg{
    width: 1.2em;
    height: auto;
}
.arrow-left svg{
    transform: rotate(180deg);
}
.arrow-up svg{
    transform: rotate(-90deg);
}
.arrow-down svg{
    transform: rotate(90deg);
}

/* CUSTOM */
/* Marked dot on typo */
h1::after, h2::after{
    content: ".";
    font-family: "Source Code Pro";
    font-weight: bolder;
    color: var(--marked-color);
}
span.dot{
    position: relative;
}
span.dot::after{
    content: ".";
    font-size: 80%;
    font-family: "Source Code Pro";
    color: var(--marked-color);
    position: absolute;
}
h1{
    .dot.o::after{
        top: -0.2em;
        left: 0.05em;
    }
    .dot.i::after{
        top: -0.2em;
        left: -.13em;
    }
}
h2{
    .dot.a::after{
        top: -0.4em;
        left: 0.05em;
    }
    .dot.i::after{
        top: -0.335em;
        left: -.13em;
    }
}

/****************************/
/*          HEADER          */
/****************************/
header{
    width: 100%;
    top: 0;
    padding:1% 0%;
    position: fixed;
    z-index: 100;
    background-color: var(--paper-color);
    margin-bottom: 4rem;
    border-bottom: solid .5px var(--black-dark);
}
#logo{
    height: 2em;
    width: 2rem;
    
    a{
        border: none;    
    }
    svg{
        height: 110%;
        width: auto;
    }
}

/* MENU */
#menu {
    ul {
    width: 100%;
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    margin: 0;
    flex-wrap: wrap;
    padding: 0;
    background-color: var(--white-transparent);
    border-radius: .4rem;
    padding-left: 2rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    }
    li {
        margin: 0;
        margin-right: 2rem;
      }
    a{
        border-bottom:none;
    }
}

/* Mobile Menu */
#logo-menu{
    height: 1.2em;
    display: none;
}
#logo-menu svg{
    height: 100%;
    width: auto;
}

.about {
    margin-left: 1rem;
    text-align: right;
}

/****************************/
/*          FOOTER          */
/****************************/
footer{
    padding: 3rem 10%;
    margin-right:auto;
    margin-left:auto;
    background-color: var(--black-dark);

    img{
        height: 1.5rem;
        width: auto;
        margin-right: 1rem;
        margin-bottom: .5rem;
    }

    p{
        margin: 0;
        margin-bottom: .5rem;
        max-width: 24rem;
    }
    hr{
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: var(--white-transparent);
    }
}

/* Return top buttun */
.up-page{
    position: fixed;
    bottom: 2em;
    right: 2em;
    padding: 0.5em;
    width: 2rem;
    height: 2rem;
}

/****************************/
/*           BODY           */
/****************************/
main{
    margin: auto;
    margin-top: 3.5em;
    position: relative;
    overflow: hidden;
}

/* First section homepage */
.main-first{
    margin: 5rem auto;
    padding-top: auto;
    margin-bottom: 5rem;
    align-items: center;
    
    p{
        max-width: 28rem;
        font-size: 1.7  5rem;
    }
    img{
        max-height:480px;
        width: auto;
        max-width: unset;
    }
    .btn{
        margin-top: 1rem;
    }
}
.main-first.grid{
    width: 90%;
}


/* CONTENT */
.section-home {
    padding-top: 3rem;
    padding-bottom: 3rem;
    background-color: var(--paper-color);
    color: var(--text-color);
    fill: var(--text-color);
}
.content {
    width: 90%;
    margin: auto;
    position: relative;
    li{
        list-style-type: none;
        position: relative;
        max-width: 36rem;
    }
    li::before {
        content: ".";
        font-family: "Source Code Pro";
        color: var(--marked-color);
        font-weight: 900;
        position: absolute;
        top: -0.75rem;
        left: -1.5rem;
        font-size: 2rem;
      }
}
.frame{
    margin: 4.5rem auto;
    width: 90%;
    border-radius: 2rem;
    padding-top: 3rem;

    .content{
        width: 70%;
    }

    h3{
        margin-top: 2.5rem;
    }
}
.content-center{
    .content{
    display: flex;
    flex-direction: column;
    align-items: center;
    }
    p:not(.card p), h2{
        text-align: center;
    }
}

/* GRID */
.grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    grid-gap: 1.5em;
    justify-content: center;
    width: 100%;
    margin: 3rem 0;
}

/* CARDS */
.card{
    overflow: hidden;
    --paper-color:var(--black-light);
    --text-color:var(--yellow-light);
    --marked-color:var(--white);
    background-color: var(--paper-color);
    color: var(--text-color);
    fill: var(--text-color);
    border: 1px var(--text-color) solid;
    border-radius: 10px;
    position: relative;

    &:not(.img){
    padding: .5em 1rem;
    }
    .txt{
        padding: 1em 1.5rem;

    }
    svg {
        margin-top: 1rem;
        margin-bottom: 1rem;
        height: 2rem;
        width: auto;
    }
    h3 {
        margin-top: .5rem;
        margin-bottom: 1rem;
        font-size: 1.5rem;
        font-weight: 1000;
        text-align: start;
        width: fit-content;
        border-bottom: none;
        line-height: 90%;    
        position: relative;
    }
    h3::after{
        content: ".";
        font-size: 130%;
        font-family: "Source Code Pro";
        color: var(--marked-color);
    }
    p{
        word-break: break-word;
        margin-top: 0.25rem;
        margin-bottom: .5em;
    }
}
.transpatent-card{
    .card{
        --paper-color:var(--white-transparent);
        --text-color:var(--black-light);
        --marked-color:var(--white);
        --second-marked-color:var(--yellow);
        background-color: var(--paper-color);
        color: var(--text-color);   
        fill: var(--text-color);
        border: 1px var(--text-color) solid;
    }
}

/*********************/
/*      MOBILE       */      
/*********************/

@media (max-width: 1024px) {
    .content{
        width: 87%!important;
    } 
    #menu{
        display: none;
    }
    .main-first.grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        h1, p{
            text-align: center;
            max-width: 36rem;
        }
        .flex{
            align-items: center;
        }
    }
}
@media (max-width: 792px) {
    .content{
        width: 90%!important;
    } 
    footer{
        flex-direction: column!important;
        div{
            margin-bottom: 2rem;
        }
    }
    h1{
        font-size: 4rem;
    }
    .main-first img{
        max-height: 300px;
    }
}


@media (max-width: 425px) {
    .content{
        width: 92%!important;
    }
    h1{
        font-size: 3rem;
    }
    .main-first img{
        max-height: 200px;
    }
}
