@font-face {
	font-family: 'logos';
	src:  url('assets/logos.woff2') format('woff2');
	font-display: swap;
  }

:root {
	--button-border: 1px solid #ff0080;
}

body {
    padding: 0;
    margin: 0;
	width: 100%;
    /* cursor: none; */
	background-color: white;
    color: #000;
	position: absolute;
	transition: opacity .2s ease-in-out, translate .2s ease-in-out;
}

html {
    padding: 0;
    margin: 0;
}

::selection {
    background: #ff20a0;
}

* {
	/* margin: 0; */
    font-family: 'Logos', 'Montserrat', sans-serif;
}

img.pr {
    /* clip-path: polygon(0 10px, 0 100%, calc(100% - 10px) 100%, 100% calc(100% - 10px), 100% 0, calc(100% - 10px) 0, 10px 0); */
    max-height: 300px;
    max-width: 400px;
    /* margin: 10px; */
    object-fit: cover;
    margin: auto;
    transition: transform .15s ease-in-out;
    border-radius: 10px;
}

img:hover {
    /* z-index: 10000; */
    /* transform: scale(1.2); */
    transition: transform 0.2s ease-in-out;
}

p {
    text-align: justify;
    font-weight: 500;
}

/* div.desc {
    flex-grow: 1;
    margin: 10px;
} */

img#pfp {
    height: 100px;
    width: 100px;
    min-height: 100px;
    min-width: 100px;
    /* border: 2px solid rgb(204, 204, 204); */
    border-radius: 50%;
    object-fit: cover;
    display: inline;
    align-self: center;
    margin: 10px;
    background-color: #fff;
    clip-path: none;
}

/* div.project > * {
    margin: 0 30px;
} */

h1 {
    text-align: left;
    color: #ff0080;
    font-weight: 800;
    display: inline;
}

div.project {
    display: flex;
    flex-direction: row;
    flex-shrink: 1;
    padding: 5vh 5vw;
    align-items: stretch;
}

div.project > * {
    flex-shrink: 1;
    flex-grow: 1;
}

div.project  img {
    flex-shrink: 1;
    flex-grow: 0;
}

div.project .separator {
    width: 50px;
    height: 30px;
    flex-shrink: 0;
}

/* div.project * {
    flex-shrink: 1;
} */

button {
    all: unset;
    height: 100%;
    width: 100%;
    border-radius: 50px;
	border: var(--button-border);
    background: #00000020;
	display: flex;
	flex-direction: row;
    /* cursor: pointer; */
}

@media screen and (max-width: 850px) {
    /* button {
        border: 1px solid #ff0080;
    } */
    div.project {
        width: 80%;
        margin: 30px auto;
        flex-direction: column;
    }
    div.project > * {
        margin: 0;
    }
    div.blink {
        margin: 0 auto;
    }
    /* img:hover {
        transform: none;
    } */
    h1 {
        text-align: center;
    }
    img {
        /* transform: translateX(10%); */
        width: 100%;
        margin: auto;
        max-height: unset;
        max-width: unset;
    }
	img.pr {
		/* clip-path: polygon(0 10px, 0 100%, calc(100% - 10px) 100%, 100% calc(100% - 10px), 100% 0, calc(100% - 10px) 0, 10px 0); */
		max-height: unset;
		max-width: unset;
	}
    /* img:hover {
        transform: translateX(10%);
        z-index: unset;
    } */
}

div.header {
    /* margin: 30px; */
    /* padding: 30px; */
    /* background: linear-gradient(to right, rgb(255, 154, 96), rgb(255, 155, 172)); */
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center; 
    align-content: center;
    height: 100vh;
    /* clip-path: polygon(0 20px, 0 100%, calc(100% - 20px) 100%, 100% calc(100% - 20px), 100% 0, calc(100% - 20px) 0, 20px 0); */
}

div.header * {
    /* color: white; */
    flex-direction: column;
    text-align: center;
}

a:visited, a {
    all: unset;
    color: #ff0080;
}

a.handle:visited, a.handle {
    color: #000;
}

div.blink {
    /* clip-path: polygon(0 10px, 0 100%, calc(100% - 10px) 100%, 100% calc(100% - 10px), 100% 0, calc(100% - 10px) 0, 10px 0); */
    width: 150px;
    height: 50px;
    border-radius: 1000px;
    /* background-color: #ff0080; */
    /* border-bottom: 1px solid white; */
    /* text-decoration: underline; */
    transition: transform .2s;
    /* color: white; */
    /* box-shadow: 2px 2px #fff; */
    /* background: linear-gradient(to right, #09f 0px, #0f9 80px); */
}

/* div.blink:hover {
    transform: translate(0, -2px);
} */

/* div.link {
    clip-path: polygon(0 9px, 0 100%, calc(100% - 9px) 100%, 100% calc(100% - 9px), 100% 0, calc(100% - 9px) 0, 9px 0);
    margin: 2px;
    width: 97%;
    height: 92%;
    transform: translateY(2px);
    background: #fff;
} */

button[disabled="disabled"] > * {
    color: #777;

}

/* button:not([disabled="disabled"]) {
    cursor: pointer;
} */
/* 
button:hover:not([disabled="disabled"]) + hr {
    width: 100%;
    transition: width .15s ease-in-out;
} */

button > p {
    width: 100%;
    text-align: center;
    /* transform: translate(0, -2px); */
    z-index: 1000;
    transition: translate .2s;
    /* color: #000; */
}

hr {
    margin-left: 0;
    z-index: -100;
    margin-top: -50px;
    border: none;
    visibility: visible;
    width: 0;
    height: 50px;
    position: relative;
    /* background: linear-gradient(to right, #09f 0px, #0f9 80px); */
    transition: width .25s ease-in-out;
}

div.buttons {
    display: flex;
    flex-direction: row;
}

div.buttons > div.blink > div.link {
    transform: translateY(0px);
}

div.buttons > div.blink > div.alink {
    transform: translateY(0px);
}

/* div.alink {
    clip-path: polygon(0 9px, 0 100%, calc(100% - 9px) 100%, 100% calc(100% - 9px), 100% 0, calc(100% - 9px) 0, 9px 0);
    margin: 2px;
    width: 97%;
    height: 92%;
    transform: translateY(2px);
} */

/* h2 {
    width: fit-content;
    background: linear-gradient(to right, #09f, #0f9);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
} */

h2 {
    color: #ff0080;
    font-weight: 800;
}

p.alert::before {
	content: "/ ! \\";
	text-decoration: underline;
	padding-right: 5px;
}

p.alert {
	color: #700000;
}

div#cursor {
    transition: width .2s, height .2s;
    top: -20px;
    /* background-color: #ff0080; */
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 500px;
    border: 1px solid #ff0080;
    z-index: 0;
    pointer-events: none;
	position: fixed;

}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    /* width: 100vw; */
    /* height: 100vh; */
}


* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

div.pane {
	z-index: 1; position: absolute; height: 100vh; display: block; top: 0; width: 50px;
}

div.pane > p {
	position: absolute;
	top: 50%;
	left: 50%; 
	transform: translate(-50%, -50%);
}

div#fw {
	right: 0;
}

div#bw {
	left: 0; 
}

div.fs {
	height: 100vh;
	width: 100vw;
	background-attachment: fixed;
	background-size: cover;
	background-position: center;
	/* backdrop-filter: blur(5px); */
		/* background-blend-mode: darken; */
}

.fs-1 {
	background-image: url("https://marly-la-ville.fr/wp-content/uploads/2020/11/college-scaled.jpg");
}

.fs-2 {
	background-image: url("https://upload.wikimedia.org/wikipedia/commons/e/eb/Saint-Witz_%2895%29%2C_lyc%C3%A9e_L%C3%A9onard_de_Vinci.jpg");
}

.fs-3 {
	background-image: url("https://upload.wikimedia.org/wikipedia/commons/e/e4/Lyc%C3%A9e_Carnot_Dijon_fa%C3%A7ade_entr%C3%A9e_principale.jpg");
}

.fs-4 {
	background-image: url("/assets/ecoles/tps.png");
}

p.tiltedtext {
	/* transform: translate(-50%, -50%); */
	position: relative;
	top: 50%;
	/* left: 50%; */
	text-align: center;
}

p#bwt {
	writing-mode: vertical-rl;
	right: 50%;
	transform: translate(-50%, -50%);
}

p#fwt {
	writing-mode: vertical-rl;
	left: -50%;
	transform: translate(50%, -50%) rotate(180deg);
}

div#progress {
	transition: width .1s ease-out;
	background-color: #ff0080;
	height: 2px;
	position: fixed;
	top: 0;
	left: 0;
	width: 0;
}

@keyframes c {
	0% {
		opacity: 0;
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

p#languages {
	display: inline;
	/* height: 100vh; */
}

p#btm {
	display: inline;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-name: c;
	/* animation-delay: 0; */
	/* animation-timing-function: ease-in-out; */
}

.fs-5 {
	font-size: xx-large;
}

p.front {
	position: relative;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 50px;
	border-radius: 25px;
	width: fit-content;
	backdrop-filter: blur(10px) brightness(2);
	margin: 0;
}


@media (prefers-color-scheme: dark) {
    body {
        background-color: #1b1619;
        color: #eee;
    }

    ::selection {
        background: #900040;
    }

	p.front {
		backdrop-filter: blur(10px) brightness(0.5);
	}

	p.alert {
        color: #FF8080;
	}

	a.handle:visited, a.handle {
        color: #FFF;
	}
}

div {
	margin: 0;
}
