/* Extract from main css */

*,
*::before,
*::after {
    box-sizing: border-box;
}
/* HACK pour optenir les dimensions de l'interface dans une variable */
@property --_w {
  syntax: '<length>';
  inherits: true;
  initial-value: 100vw; 
}
@property --_h {
  syntax: '<length>';
  inherits: true;
  initial-value: 100vh; 
}
:root {
  --w: tan(atan2(var(--_w),1px)); /* screen width */
  --h: tan(atan2(var(--_h),1px)); /* screen height*/
  /* The result is an integer without unit  */

}
@font-face {
    font-family: inclusive;
    src: url("fonts/InclusiveSans-Regular.woff2");
}

@font-face {
    font-family: lexend;
    src: url("fonts/Lexend-Light.woff2");
}




html{
    position: relative;
}




a:focus-visible{
  outline: #ff1493 2px solid;
}

body{
    margin: 0px;
    background-color: #f8f8f8;
    zoom: max(min(100%), calc((var(--h)/936) * 100%));
}


/* Bandeau top menu placeholder */
#top{
    height: 40px;
    width: 100%;
    background-color: #bdcee2;
}

/* tweaked from gradienty.codes */
@keyframes slit-in-vertical {0% { transform: translateZ(-800px) rotateY(90deg); opacity: 1; } 100% { transform: translateZ(0) rotateY(0);} }

.slit-anim { 
    animation: slit-in-vertical 1.5s ease-out 0s 1 normal both; 
}

 
  
/* tweaked from https://codepen.io/alvaromontoro */
@keyframes showTopText {
    0% { transform: translate3d(0, 100%, 0); }
    100% { transform: translate3d(0, 0, 0); }
}
.animated-title {
	margin: auto;
	border-bottom: dotted 2px #2a80ba;
	max-width: 700px;
    font-family: "Lexend", Arial, sans-serif;
    color: white;
    height: 60%;
    overflow: hidden;
    position: relative;
    width: 100%;
    animation: slit-in-vertical 1.5s ease-out 0s 1 normal both;
}
.text-top {
	font-size: 95px;
    padding: 18px 0;
    position: relative;
    color: #2a80ba;
    text-align: center;
    animation: showTopText 1s;
    animation-delay: 2.5s;
    animation-fill-mode: forwards;
    bottom: 0;
    transform: translate(0, 100%);
}




#env{
    height: 350px;
	width: 350px;
    margin: auto;
    position: relative;
    text-align: center;
    margin-top: 30px;
}

#env svg{
	fill-rule:evenodd;
	clip-rule:evenodd;
	stroke-linecap:round;
	stroke-miterlimit:1.5;
}

#Artboard2{
	fill:none;
}


/* trace logo */
#nu{
    fill: #f8f8f8;
	stroke:#f8f8f8;
	/* stroke-width:0.24px; */
    stroke-width:0.45px;
	
	stroke-dasharray: 1141;
    stroke-dashoffset: 1141;
	stroke: #2a80ba !important;
	
	animation: dash 3.5s ease-in-out, fill-color-change 3.5s linear 0s forwards, stroke-width-change 3.5s linear 0s forwards;
    animation-fill-mode: forwards;
    stroke-linecap: round;
}
@keyframes stroke-width-change { 70% { stroke-width: 0.6px; } 100% { stroke-width: 0; } }


/* fond logo */
#gy{
	fill:#2a80ba;
	animation: fadeInBack 3.5s forwards;
}
/* pointilles */
#x{
	fill:none;
	stroke:#2a80ba;
	stroke-width:1.74px;
	stroke-linecap:square;
	stroke-dasharray:1.74,5.22,1.74,0;
	animation: fadeInBack 3.5s forwards;
}
@keyframes fadeInBack {  0% { opacity: 0;} 70% { opacity: 0;} 100% { opacity: 1;}}




@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}




/* Bloc text & boutons */
.tagline{
    font-size: 22px;
    width: fit-content;
    height: fit-content;
    margin: 30px auto 0 auto;
    color: #27464e;
    border-bottom: 1px dotted #27464e;
    text-align:center;
}
#status{
    margin-top: 20px;
    height: fit-content;
    width: 100%;
    text-align: center;
    color: #27464e;
    font-size: 16px;
}
#choiceL{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 65px;
    position: relative;
    height: fit-content;
    width: 100%;
    margin-top: 40px;
}
.butt{
    text-decoration: none;
    font-size: 16px;
    padding: 0 10px;
    height: 45px;
    width: fit-content;
    background-color: #2a80ba;
    border: solid 1px #27464e;
    color: white;
    cursor: pointer;
    line-height: 40px;
}
.butt:hover{
    background-color: #256fab;
}
#restofit {
    font-family: inclusive;
    opacity: 0;
    animation: fadeIn 2s forwards;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}


/* Redim */

@media screen and (max-aspect-ratio:0.7){
    .text-top {
        font-size: 12vmin;
        padding: 2vmin 0;
    }

    /* svg container adjustment */
    #env{
        width: 50vw;
        /*height: calc((239/361)*50vw); */
		height: 50vw;
    }
}



#logoMastodon svg{
    height: 37px !important;
    width: 35px !important;
}

#logoMastodon{
    position: fixed;
    display: block;
    bottom: 10px;
    right: 10px;
    width: 35px;
    height: 37px;
}