@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:ital,wght@0,300..800;1,300..800&family=Quicksand:wght@300..700&display=swap');

html{
    --shadow: 0 0 8px -4px black;

    --light-border:  1px solid lightgrey;

    --color-text: rgb(0,0,0);
    --color-background: rgb(255,255,255);

    --color-primary: rgb(0, 0, 128);
    --color-primary-alpha: rgba(0, 38, 128, 0.251);
    --color-primary-dark: rgb(0, 0, 95);

    --lighter-grey: rgb(246, 246, 246);
    --light-grey: rgb(229, 229, 229);
    --grey: rgb(208, 208, 208);
    --dark-grey:  rgb(101, 101, 101);
    --light-black: rgb(35, 35, 35);

    --color-info: rgb(0, 128, 255);
    --color-success: rgb(0, 162, 0);
    --color-error: rgb(182, 0, 0);
    --color-warning: rgb(229, 198, 0);
    --color-error-dark: rgb(145, 0, 0);

    --color-tip: rgba(255, 210, 7, 0.507);
    --color-warn: rgba(202, 0, 0, 0.507);

    --radius: 0.25rem;

    position: absolute;
    top:0;
    left: 0;
    right: 0;
    bottom:0;
    font-size: 12px;
    text-align: justify;
    scrollbar-gutter: stable;
}

html,body{
    z-index: -3;
    margin: 0;
    padding: 0;
    width: 100%;
    /* font-family: 'Segoe UI'; */
    font-family: 'Host Grotesk', sans-serif;
    scroll-behavior: smooth;
}

header{
    box-shadow: 0 0 4px -2px black;
    box-sizing: border-box;
    background-color: rgba(255,255,255,0.75);
    backdrop-filter: blur(1rem);
    position: sticky;
    top:0;    
    width: 100%;
    z-index: 2;
}

nav#m-nav{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
nav#m-nav div{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap:0.5rem;
}
nav#m-nav div a{
    display: block;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    text-decoration: none;
    color: black;
}
nav#m-nav div:nth-child(1) a:nth-child(1){
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}
#m-logo{
    width: 2.25rem;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
}


nav#l-nav{
    margin: 0 15%;
    display: none;
    flex-direction: row;
    justify-content: space-between;
}
nav#l-nav div{
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap:0.5rem;
}
nav#l-nav div:nth-child(1) a:nth-child(1){
    position: absolute;
    top:0;
    left:0;
}
nav#l-nav div a svg{
    transform: translateX(-200%);
    position: absolute;
    left: -11.5rem;
    width: 10rem;
}

nav#l-nav div a svg.notransform{
    transform: translateX(0);
}

.flex-grow{
    display: flex;
    flex-grow:1;
}

nav#l-nav div a{
    display: block;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    text-decoration: none;
    color: black;
}

/* DOCS */
section.category-list{
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
section.category-list div{
    border: var(--light-border);
    border-radius: var(--radius);
}
section.category-list div:hover{
    background-color: var(--light-grey);
}
section.category-list div a{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    text-decoration: none;
    padding: 1rem;
}

main.agreement ol{
    list-style-type: decimal;
}
main.agreement section.article h3{
    border: none;
    padding-left: 0;
}
main.agreement ol ol{
    list-style-type: lower-alpha;
}
main#docs{
    margin-top: 4rem;    
}
#docs section.img-section{
    margin: 0;
}
section.doc-title{
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
section.doc-title div{
    border-left: 1rem solid var(--color-primary);
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
section.doc-title p{
    margin: 0;
}
section.doc-title h1{
    margin: 0;
    border: none;
    font-weight: 600;
    font-size: 3rem;
}
div#docs-container{
    width: 100%;
    display: flex;
    flex-direction: row;
}
nav#side-bar{
    display: none;
    box-sizing: border-box;
    overflow-y: auto;
    height: 80%;
    border-bottom: var(--light-border);position: fixed;
    z-index: 1;
    top: 4rem;
    left: 0;
    flex-direction: column;
    background-color: var(--color-background);
    width: 100%;
    padding: 2rem;
}
nav#side-bar a{
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    text-decoration: none;
    color: var(--color-text);
    padding: 0.25rem 0.5rem;
    text-align: left;
}
nav#side-bar span{
    font-size: 1.5rem;
}
nav#side-bar h4{
    font-size: 2rem;
    margin: 1rem 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
nav#side-bar h4 span{
    font-size: 2rem;
}
#side-bar h4 span:nth-child(2){
    font-size: 2rem;
    cursor: pointer;
    border-radius: var(--radius);
}
#side-bar h4 span:nth-child(2):hover{
    background-color: var(--light-grey);
}
nav#side-bar li{
    font-size: 1.5rem;
}
nav#side-bar a:hover{
    border-radius: var(--radius);
    background-color: var(--light-grey);
}
nav#side-bar ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
nav#side-bar ul ul{
    margin-left: 1rem;
    padding-left: 0.75rem;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

main#docs ol{
    list-style-type: decimal;
}

#docs .menu-controller{
    position: fixed;
    left:0;
    top:5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    
    box-shadow: 0 0 4px -2px black;
    box-sizing: border-box;
    background-color: rgba(255,255,255,0.75);
    backdrop-filter: blur(1rem);
    border-radius: var(--radius);
    padding: 0 0.5rem;
}
.menu-btn{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    cursor: pointer;
    border-radius: var(--radius);
}
/* #docs-container:has(.menu-btn:hover) nav#side-bar, nav#side-bar:hover{
    
} */

table.example-table{
    margin-top: 1rem;
    border-collapse: collapse;
}
table.example-table td{
    border: 1px solid var(--dark-grey);
    padding: 1rem;
}

section.tip, section.warn{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
    padding: 0.5rem;
    margin: 2rem 0;
    border-radius: var(--radius);
}
section.tip{
    background-color: var(--color-tip);
}
section.warn{
    background-color: var(--color-warn);
}
section.tip span, section.warn span{
    margin: 1rem;
    font-size: 2rem;
}
section.tip p, section.warn p{
    margin: 0.5rem;
    flex-grow: 1;
}
section.tip p a, section.warn p a{
    color: var(--color-primary);
    text-decoration: underline;
}
ol ul{
    list-style-type: none;
}
/* -------------- */

/* LICENCE */
#licence-list{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}
.licence-box{
    flex-basis: 30%;
    flex-grow: 1;
    border: var(--light-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}
.licence-box p{
    margin: 0;
    box-sizing: border-box;
    padding: 0.5rem;
}
.licence-box p:nth-child(1){
    font-size: 2rem;
}
.licence-box p:nth-child(1), .licence-box p:nth-child(2){
    text-align: center;
}
.licence-box p:nth-child(2) span{
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-block;
    background-color: var(--color-warning);
    border-radius: var(--radius);
    padding: 0.1rem 0.75rem;
}
.licence-box table{
    width: 100%;
    padding: 1rem;
}
.licence-box table tr:nth-child(1) td{
    padding-bottom: 1rem;
}
.licence-box table tr td:nth-child(2){
    font-weight: bold;
    padding-left: 2rem;
}
/* -------------- */
main{
    margin: 0 5%;
}
main#main-page{
    margin-top: 100vh;
}
body#contact-body{
    height: 100%;
    display:flex;
    flex-direction: column;
}
section#logo-panel{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: -2;
}
section#sentence-panel{
    position: fixed;
    top: 0;
    left: 10%;
    width: 80%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
section#arrow-panel{
    position: fixed;
    display: flex;
    justify-content: center;
    width: 10%;
    left: 45%;
    bottom: 0;
    z-index: 3;
}
div#reduced-arrow-panel{
    margin-top: 15vh;
    display: none;
}
section#arrow-panel div, #reduced-arrow-panel{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;

    animation: bottom-arrow 6s infinite both;
}
section#arrow-panel div span:nth-child(1), div#reduced-arrow-panel span:nth-child(1){
    font-size: 1rem;
    font-weight: 200;
    white-space: nowrap;
}
section#arrow-panel div span:nth-child(2), div#reduced-arrow-panel span:nth-child(2){
    font-size: 3rem;
    font-weight: 100;
    margin-bottom: 1rem;
    cursor: pointer;
}

div#reduced-sentence{
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
section#sentence-panel div{
    margin-top: 0rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}
section#sentence-panel div span, div#reduced-sentence span{
    text-align: center;
}
section#sentence-panel div span:nth-child(1), div#reduced-sentence span:nth-child(1){
    font-weight: 400;
    font-size: 2rem;
}
section#sentence-panel div span:nth-child(2), div#reduced-sentence span:nth-child(2){
    font-size: 1.75rem;   
}
section#sentence-panel div span:nth-child(3), div#reduced-sentence span:nth-child(3){
    font-weight: 400;
    font-size: 1rem;
}
section#sentence-panel div span:nth-child(3), div#reduced-sentence span:nth-child(3){
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
section#sentence-panel div span span, div#reduced-sentence span span{
    color: var(--color-primary);
}

section#logo-panel svg{
    width: 80%;
    margin-bottom: 40vh;
}


main{
    font-size: 1.25rem;
}
main h1{
    text-align: left;
    font-size: 4rem;
    width: 100%;
}


section{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ----- IMG-INFO ----- */
section.img-info{
    padding: 2rem 0;
    gap: 4rem;
    justify-content: center;
}
section.img-info div.info{
    flex-grow: 1;
    flex-basis: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
section.img-info div.img{
    flex-basis: 90%;
    display: flex;
    justify-content: center;
}
div.img img{
    width: 100%;
    border-radius: var(--radius);
}
/* ----- -------- ----- */


/* ----- IMG-SECTION ----- */
section.img-section{
    margin-top: 4rem;
    display: flex;
    flex-direction: row;
    gap:1rem;
    flex-wrap: wrap;
}
.img-section-part p{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: normal;
    gap: 1rem;
    font-size: 1rem;
    margin: 0;
}
.img-section-part{
    display: flex;
    flex-direction: column;    
}
.img-section-part img{
    max-width: 100%;
    /* box-shadow: 0px 0px 4px -2px black; */
    border: 1px solid var(--light-grey);
    border-radius: var(--radius);
}
/* ----- -------- ----- */


/* ----- ARTICLE ----- */
section.article h1, section.article h2 {
    margin-top: 4rem;
    border-left: 1rem solid var(--color-primary);
    padding-left: 1rem;
    font-weight: 600;
}
section.article h3{
    margin-top: 4rem;
    border-left: 1rem solid var(--color-warning);
    padding-left: 1rem;
    font-weight: 600;
    width: 100%;
}
section.article h3.grey, section.article h2.grey{
    border-color: var(--grey);
}
section.article{
    font-weight: normal;
}
section.article p{
    width: 100%;
    margin-top: 0;
    font-weight: normal;
}
section.article .article-img-info{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap:1rem;
}
section.article div.img-small-info{
    gap:6rem;
}
.article-img-info div.img{    
    flex-basis: 100%;
    display: flex;
    justify-content: center;
}
.article-img-info div.img img{
    /* box-shadow: 0px 0px 4px -2px black; */
    border: 1px solid var(--light-grey);
    border-radius: var(--radius);
}
.article-img-info p{
    flex-basis: 100%;
}
p.wide-flex{
    flex-basis: 100%;
    margin:0;
}
.article-img-info p a{
    text-decoration: none;
    font-weight: bold;
    color: var(--color-text);
}
ul{
    margin: 0;
}
ol{
    margin: 0;
    list-style-type: decimal-leading-zero;
}
section.article ol li{
    padding: 0.5rem;
}
section.article ol li::marker{
    font-weight: bold;
    color: var(--color-primary);
}
div.img-small{
    display: flex;
    justify-content: center;
    align-items: center;
}
/* ----- ------- ----- */

.button, .button-normal{
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 1rem;
    border-radius: var(--radius);
    outline: none;
    cursor: pointer;
    transition: 0.1s;
    font-size: 1rem;
    text-decoration: none;
}
.button-normal{
    height: 3rem;
}

.primary{
    cursor:pointer;
    background-color: var(--color-primary);
    border: 1px solid transparent;
    color: var(--color-background);
}
.disabled{   
    background-color: var(--lighter-grey);
    border: 1px solid transparent;
    color: var(--dark-grey);
}
.primary:hover,.primary:focus{
    background-color: var(--color-primary-dark);
}

.secondary{
    cursor:pointer;
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    
}
.secondary:hover,.secondary:focus{
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}


.nowrap{
    white-space: nowrap;
}

main > h2{
    margin-top: 6rem;
    border-left: 1rem solid var(--color-primary);
    padding-left: 1rem;
    font-weight: 600;
    text-align: left;
}
main > ol li{
    padding: 0.5rem;
}
main > ol li::marker{
    color: var(--color-primary);
}
main > ol a{
    text-decoration: none;
    color: var(--color-text);
    transition: 0.3s;
}
main > ol a:hover{
    color: var(--color-primary);
}

p a{
    text-decoration: underline;
    color: var(--color-primary);
}

footer{
    margin-top: 6rem;
    box-shadow: 0 0 4px -2px black;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 2rem;
    flex-wrap: wrap;
}
footer div{
    display: flex;
    flex-direction: column;
    gap:0.5rem;
    box-sizing: border-box;
    flex-basis: 25%;
    align-items: flex-start;
}
footer div span{
    font-size: 1.25rem;
}
footer div ul{
    margin:0;
    padding:0;
}
footer li{
    list-style-type: none;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap:0.5rem;
}
footer li img{
    height: 1rem;
}
footer div svg{
    max-width: 100%;
}
footer a{
    text-decoration: none;
    color: var(--color-text);
}



/* CONTACT------------------ */
section.contact-section div{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap:4rem;
    flex-wrap: nowrap;
}
section.contact-section div > div{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap:6rem;
    flex-basis: 50%;
}
#svg-zuraw{
    height: 10rem;
}
#svg-mail{
    animation: mail-drop 2s ease-in 0 forwards;
}
section.contact-section p{
    margin:0;
}
section.contact-section form{
    flex-basis: 40%;
    display: flex;
    flex-direction: column;
    gap:0.5rem;
}
section.contact-section form input, textarea{
    line-height: 1rem;
    outline: none;
    width: 100%;
    padding: 1rem 0.5rem;
    box-sizing: border-box;
    border: var(--light-border);
    border-radius: var(--radius);
    resize: none;
}
section.contact-section form textarea{
    height: 10rem;
}
section.contact-section button{
    padding: 0.5rem;
    border-radius: var(--radius);
}
section.contact-section form input:focus, textarea:focus{
    outline: 3px solid var(--color-primary);
}

/* CONSENT BANNER */
.consent-box{
    position: fixed;
    display: none;
    align-items: center;
    justify-content: center;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background-color: rgba(174, 174, 174, 0.548);
    z-index: 5;
}
.consent-banner{
    width: 90%;
    background-color: var(--color-background);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}
.consent-banner h4{
    width: 100%;
    font-size: 1.5rem;
    margin: 0.5rem 0;
    padding: 0 1rem;
    font-weight: normal;
}
.consent-message{
    padding: 1rem;
    flex-grow: 1;
}
.consent-message a{
    text-decoration: none;
    font-weight: bold;
    color: var(--color-text);
}
.consent-buttons{
    padding: 0 1rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.link{
    text-decoration: none;
    color: var(--color-text);
    font-weight: bold;
    cursor: pointer;
}
.clear-a{
    text-decoration: none;
    color: inherit;
}

.display-center{
    display: flex;
    justify-content: center;
    align-items: center;
}
.offer-contact{
    display: flex;
    flex-direction: column;
}
.offer-contact > div{
    display: flex;
    justify-content: center;
}
.offer-contact form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-basis: 100%;
}
.offer-contact form input{
    line-height: 1rem;
    outline: none;
    width: 100%;
    padding: 1rem 0.5rem;
    box-sizing: border-box;
    border: var(--light-border);
    border-radius: var(--radius);
    resize: none;
}
.offer-contact form input:focus{
    outline: 3px solid var(--color-primary);
}
.offer-contact form input[type="checkbox"]{
    height: 1.5rem;
    width: 1.5rem;
    margin: 0 1rem 0 0;
    outline: none;
}
.offer-contact form p{
    display: flex;
    flex-direction: row;
    align-items: center;
}
#accept-error{
    display: none;
    color: var(--color-error);
}

@keyframes bottom-arrow {
    0%{
        transform: translateY(0);
    }
    75%{
        transform: translateY(0);
    }
    80%{
        transform: translateY(-20%);
    }
    85%{
        transform: translateY(0);
    }
    90%{
        transform: translateY(-20%);
    }
    100%{
        transform: translateY(0);
    }
}

@keyframes mail-drop {
    0%{
        transform: translateY(0);
    }
    100%{
        transform: translateY(100vh);
        color: red;
        background-color: red;
    }
}



@media only screen and (min-width: 1000px) {
    html{
        font-size: 16px;
    }
    nav#l-nav{
        display: flex;
    }
    nav#m-nav{
        display: none;
    }
    main{
        margin: 0 15%;
    }
    main#main-page{
        margin-top: 100vh;
    }
    body#contact-body{
        display:flex;
        flex-direction: column;
    }
    section#sentence-panel div span:nth-child(1), div#reduced-sentence span:nth-child(1){
        font-size: 3rem;   
    }
    section#sentence-panel div span:nth-child(2), div#reduced-sentence span:nth-child(2){
        font-size: 1.25rem;   
    }
    section#sentence-panel div span:nth-child(3), .button, div#reduced-sentence span:nth-child(3){
        font-size: 1.5rem;   
    }
    .button-normal{
        font-size: 1.25rem;
    }
    section#sentence-panel{
        left: 20%;
        width: 60%;
        margin-top: 8vh;
    }
    section#logo-panel svg{
        width: 60%;
        margin-bottom: 35vh;
    }
    section.img-info{
        flex-wrap: nowrap;
    }
    section.img-info div{
        justify-content: flex-end;
    }
    section.img-info div.img{
        flex-basis: 48%;
    }
    section.img-section{
        flex-wrap: nowrap;
    }
    .article-img-info p{
        flex-basis: 48%;
    }
    .article-img-info div.img{
        flex-basis: 48%;
    }
    p.wide-flex{
        flex-basis: 75%;
    }

    footer{
        flex-wrap: nowrap;
    }
    footer div svg{
        max-width: 25%;
    }

    section.article .article-img-info{
        flex-wrap: nowrap;
        gap:0rem;
        justify-content: space-between;
    }
    #svg-zuraw{        
        height: 15rem;
    }

    section.contact-section div{
        flex-direction: row;
    }

    .consent-banner{
        width: 30%;
    }

    #licence-list{
        grid-template-columns: 1fr 1fr;
    }

       
    
    
    #docs .img-section .img-section-part{
        max-width: 70%;
    }
    nav#side-bar li, nav#side-bar span{
        font-size: 1rem;
    }
    nav#side-bar h4{
        margin: 0 0 1rem 0;
    }
    nav#side-bar h4 span{
        font-size: 1rem;
    }

    .offer-contact form{
        flex-basis: 50%;
    }

    section.category-list{
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }
    section.doc-title h1{
        font-size: 4rem;
    }

}

@media only screen and (min-width: 1600px) {
    #licence-list{
        grid-template-columns: 1fr 1fr 1fr;
    }


    main#docs{
        flex-basis: 70%;
        margin-left: 15%;
        flex-grow: 1;
        margin-top: 0;
    }
    #docs .menu-controller, #side-bar h4 span:nth-child(2){
        display: none;
    }
    nav#side-bar{
        width: 13%;
        min-width: 12rem;
        display: flex;
        position: fixed;
        top: 2.5rem;
        left: 0;
        border-right: var(--light-border);
        padding: 0 1rem;
        margin: 2rem 2% 0 0;
        border-bottom: none;
        scrollbar-gutter: stable;
    }
}


#btn-spinner{
    display: none;
}
/* HTML: <div class="loader"></div> */
.loader {
  height: 1.25rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: 
    radial-gradient(farthest-side,var(--light-grey) 94%,#0000) top/0.25rem 0.25rem no-repeat,
    conic-gradient(#0000 30%,var(--light-grey));
  -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 0.25rem),#000 0);
  animation: l13 1s infinite linear;
}
@keyframes l13{ 
  100%{transform: rotate(1turn)}
}