header {
	padding: 10px;
	background-color: var(--gray);

	text-align: center;
	margin: 5px;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

header > a {
	width: 160px;

	padding: 15px;
	margin: 5px;
    border-radius: 5px;

	text-decoration: none;
	text-align: center;
    
	color: white;
	background-color: var(--green);
}

connection-menu {
    width: 160px;
    margin-right: 20px;

    display: inline-block;
}

dialog .choices {
    margin-top: 25px;
}

.connect-menu {
    position: absolute;
    padding: 15px;
    margin: 0px 5px 5px 5px;
    width: 180px;

    background-color: white;
    box-shadow: 0 0 3px black;
    border-radius: 5px;
}

.connect-menu a {
    color: black;
    text-decoration: none;

    padding: 0px;
}

.connect-menu hr {
    width: 100%;
}

.connect > button {
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.active {
	text-decoration: underline;
}

dialog {
    border-radius: 20px;
    padding: 50px;
    top: 40vh;
}

@media (min-width: 1075px) {
	header {
		position: sticky;

		top: 0;

		margin-top: 10px;
		z-index: 5;
	}
}

footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: max-content;

    background-color: var(--green);
	margin-top: 20px;
	padding: 10px;
}

footer > * {	
	margin: 10px;
}
* {
	box-sizing: border-box;

    --dark-gray: #7e7e7e;
    --gray: #A4A4A4;
    --light-gray: #d9d9d9;
    --light-gray-hover: #c7c7c7;
    --green: #18da11;
    --dark-green: #08AB03;
    --dark-blue: rgb(0, 0, 71);
    --light-blue: rgb(0, 145, 255);
}

@font-face {
    font-family: Lato;
    src: url(/build/fonts/Lato-Regular.9d883d54.ttf);
}

body {
    font-family: 'Lato', sans-serif;
    margin: 0;
}

main {
	box-shadow: 0px 0px 20px black;
    
    border: solid 1px var(--gray);
    border-radius: 5px;

    margin: 10px;
	padding: 10px;
}

a:hover {
	text-decoration-line: underline;
}

button.reset {
    border: none;
    background-color: transparent;
}

button.reset-size {
    border: none;
    background-color: transparent;

    margin: 0;
    padding: 0;
}

/* Font style */

@media (min-width: 1700px){
    button.reset-size {
        font-size: 1em;
    }

    p, a, label, legend, li {
        font-size: 1.3rem;
    }

    legend{
        font-size: 1.4em;
    }

    button{
        font-size: 1.3em;
        padding: 8px;
    }

    h1{
        font-size: 2.2em;
    }

    h2{
        font-size: 1.8em;
    }

    h3{
        font-size: 1.3em;
    }

    header > a {
       min-height: 80px; 
    }
}
/* Forms style */

form {
    margin: 10px;
}

input, button, textarea, select {
    font-size: 1.2em;
}

label, input, textarea, select {
    padding: 5px;
    width: 100%;
    margin: 5px 0;
}

label {
    display: block;

    margin: 10px;
}

input[type="date"] {
    height: 38px;
}

input[type="checkbox"] {
    width: auto;
}

button {
    padding: 5px;
    margin: 10px;
}

textarea{
    resize: none;
    height: 200px;
}

fieldset {
    padding: 20px;
}

.form-group {
    display: flex;
    justify-content: center;
    align-items: center;
}

.error {
    border: solid 1px red;
    background-color: #fd5050;

    box-shadow: 0px 0px 10px red;
    border-radius: 5px;

    padding: 15px 20px;
}

.valid {
    border: solid 1px green;
    background-color: #5DDF59;

    box-shadow: 0px 0px 10px green;
    border-radius: 5px;

    padding: 15px 20px;
}

.dialog {
    position: fixed;
    top: 300px;
    width: 80%;
}

li {
    display: block;

    margin: 10px;
}

li > div {
    display: flex;
    flex-wrap: wrap;
}

li > div > div {
    width: 100%;
}

dialog form > * {
    margin: 10px;
}

/* Responsive */

@media (min-width: 750px) {
    .infos {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }   

    .infos div {
        width: 49%;
    }
}
/* Modal style */

.modal {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100vw;
    height: 100vh;

    position: fixed;
    left: 0;
    top: 0;

    z-index: 6;

    background-color: rgba(29, 29, 29, 0.65);
    cursor: pointer;
}

.modal .content {
    width: 97%;
    height: 90%;

    padding: 25px;

    display: block;
    text-align: left;
    
    background-color: white;
    border-radius: 20px;

    overflow-y: auto;
    overflow-x: hidden;

    cursor: default;
}

.modal > .content > :first-child {
    width: 85%;
}

.modal .cross {
    position: fixed;
    top: 6vh;
    right: 2vw;

    width: 60px;
    height: 60px;

    font-size: 50px;
    border: solid 1px black;
    border-radius: 100%;
    background-color: white;
    line-height: 0.8;

    cursor: pointer;
}
.modal.image-container .tools {
    display: flex;
    justify-content: center;

    margin-bottom: 20px;
} 

.modal.image-container .tools button {
    width: 60px;
    height: 60px;
    
    cursor: pointer;

    border-radius: 10%;
    border: black;
    background-color: var(--light-gray);
}

.modal.image-container .content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal.image-container .react-transform-wrapper {
    max-width: 100%;
}

@media (max-width: 600px) {
    .modal.image-container .tools {
        margin-top: 70px;
    }
}
