/* FONTS */
@font-face {
	font-family: "Split";
	src: url("../src/fonts/Split-Regular.otf");
}
@font-face{
    font-family: "IBMPlexMono-Regular";
    src: url("../src/fonts/IBMPlexMono-Regular.ttf");
}

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

::selection {
  color: white;
  background-color: var(--blue);
}

/* VARIABLES */
:root {
	--blue: rgb(0, 0, 255);
	--border-size: 2px;
	--inner-margin: 13px;
}

/* STYLES */
body {
	width: 100%;
	height: 100vh;
	font-family: sans-serif;
	/* définition de la grille */
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 60px 1fr 1fr 1fr 60px;
	grid-template-areas: "header header header" 
						"typocrypto typocrypto cryptobrut" 
						"typocrypto typocrypto cryptobrut"
						"textinput textinput cryptobrut" 
						"footer footer footer";
	overflow: hidden;
}


/* header : titre et about */
header {
	grid-area: header;
	padding: var(--inner-margin);
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-end;
	color: white;
	font-family: sans-serif;
	background-color: var(--blue);
}
header h1 {
	font-weight: 500;
	font-size: 30px;
	border-bottom: var(--border-size) solid transparent;
	font-family: 'IBMPlexMono-Regular';
}
header button {
	border: none;
	background: none;
	color: white;
	cursor: pointer;
	font-family: 'IBMPlexMono-Regular';
	font-size: 30px;
	border-bottom: var(--border-size) solid white;
}

header button:hover {
	border-bottom: var(--border-size) solid transparent;
}


/* typo chiffrement */
#crypto-output {
	grid-area: typocrypto;
	white-space: nowrap;
	padding: var(--inner-margin);
	overflow-x: hidden;
	overflow-y: auto;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: flex-start;
	font-family: 'Split';
	font-size: 30px;
	color: black;
	border-bottom: var(--border-size) solid var(--blue);
	border-right: var(--border-size) solid var(--blue);
}
.crypted-letter{
	flex-basis: auto;
	margin-bottom: 10px;
}
.crypted-letter .top-part,
.crypted-letter .bottom-part{
	width: 100%;
	font-size: 20px;
	line-height: 20px;
}

#crypto-output ::selection  {
  /*color: gold;*/
  background-color: transparent;
  color:var(--blue);
}

/* zone d'écriture */
#text-input {
	grid-area: textinput;
	padding: var(--inner-margin);
	color: black;
	font-family: 'IBMPlexMono-Regular';
	font-size: 20px;
	border: none;
	resize: none;
    overflow-x: hidden;
	overflow-y: auto;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: flex-start;
	border-bottom: var(--border-size) solid var(--blue);
	border-top: var(--border-size) solid var(--blue);
	border-right: var(--border-size) solid var(--blue);
}

/* chiffrement brut */
#crypto-raw {
	grid-area: cryptobrut;
	white-space: pre-wrap; /* permet d'avoir deux espaces consécutifs */
	padding: var(--inner-margin);
	overflow-x: hidden;
	overflow-y: auto;
	color: black;
	font-family: monospace;
	border-left: var(--border-size) solid var(--blue);
	border-bottom: var(--border-size) solid var(--blue);
	font-family: 'IBMPlexMono-Regular';
}


/* footer & boutons du footer */
footer {
	grid-area: footer;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
	align-items: center;
	color: var(--blue);
	border-top: var(--border-size) solid var(--blue);
}
footer button {
	border: none;
	background: none;
	color: var(--blue);
	font-size: 17px;
	font-family: 'IBMPlexMono-Regular';
	text-transform: uppercase;
	cursor: pointer;
	border-bottom: var(--border-size) solid var(--blue);
}
footer button:hover{
    border-bottom: var(--border-size) solid transparent;
}
footer #slidercontainer input {
	width: 250px;
	height: 3px;
    -webkit-appearance: none;
    background: var(--blue);
}
/*input::-webkit-slider-thumb,
input::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	background-color: var(--blue);
}*/

.legende {
	display: inline-block;
	font-size: 20px;
	margin-left: 5px;
	margin-right: 5px;
	font-family: 'IBMPlexMono-Regular';
}

.chiffrement{
	font-family: 'IBMPlexMono-Regular';
	font-size: 12px;
	text-align: center;
}

/* about window WIP */
#about-window {
	position: fixed;
	top: 100%;
	left: 0;
	width: 100%;
	height: calc(100vh - 60px);
	padding: var(--inner-margin);
	border-top: 4px solid white;
	color: white;
	background-color: var(--blue);
	transition: top 200ms ease-in-out;
    font-size: 30px;
    font-family: 'IBMPlexMono-Regular';
    overflow: hidden;
}
#about-window p{
	width: 100%;
}

#about-window.open {
	top: 60px;
}

/* l'élément permettant de copier le texte (caché) */
.temp{
    position: fixed;
    top:110%;
    left:0;
    opacity: 0;
}

/* RUSTINES DIPLOME :*/
.rustine80{
	width: 80px;
}
.rustine60{
	width: 60px;
}