@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --light-green: #00bc13;
    --medium-green: #1f5f1f;
    --dark-green: #163315;
    --white-background: rgb(215, 215, 215);
    font-family: "Roboto Slab", sans-serif;
    color: black;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background: #888;
}

.ionicon {
    width: 40px;
    color: white;
}

body {
    max-width: 100vw;
    background-color: var(--dark-green);
    overflow-y: scroll;
    overflow-x: hidden;
}

.footer {
    position: absolute;
}

main {
    display: flex;
}

.content {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#alert {
    position: absolute;
    bottom: 5%;
    right: 5%;
    padding: 20px;
    border-radius: 5px;
    display: none;
}

#alert p {
    font-size: 1.2em;
    font-weight: bold;
}

.alert-success {
    background: #4aa252;
}

.alert-danger {
    background-color: #c4392a;
}

.alert-danger p, .alert-danger span {
    color: white;
}

/* NAVBAR */

nav {
    width: 300px;
    height: 100vh;
    padding: 60px 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hide-nav {
    animation: hide-nav 1.3s forwards;
}

.show-nav {
    animation: show-nav 1.3s forwards;
}

@-webkit-keyframes hide-nav {
    0%{
        -webkit-transform:translateX(0);
        transform: translateX(0);
    }
    100%{
        -webkit-transform:translateX(-300px);
        transform: translateX(-300px);
    }
}

@-webkit-keyframes show-nav {
    0%{
        -webkit-transform:translateX(0);
        transform: translateX(0);
        width: 0px;
    }
    100%{
        -webkit-transform:translateX(+300px);
        transform: translateX(+300px);
        width: 300px;
    }
}

nav .background-nav {
    position: absolute;
    top: calc((100vh * 0.5) * -1);
    border-radius: 100%;
    left: -100%;
    z-index: -1;
    width: 200%;
    height: 200%;
    background: rgb(1,148,15);
    background: linear-gradient(0deg, rgba(1,148,15,1) 30%, rgba(16,119,23,1) 100%);
}

.content-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

nav .title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: -30px;
}

nav .title a img {
    height: 100px;
    width: 100px;
}

nav .title a {
    text-decoration: none;
}

nav .title a h1 {
    color: white;
    font-size: 2.5em;
    font-family: "Roboto Slab", sans-serif;
}

nav ul {
    list-style: none;
    margin: auto;
    width: 100%;
}

nav ul li {
    margin-bottom: 20px;
}

nav ul li a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

nav ul li .active {
    text-decoration: underline;
    text-decoration-color: white;
}

nav ul li a .ionicon {
    width: 40px;
    color: white;
}

nav ul li a span {
    color: white;
    margin-left: 10px;
    font-size: 1.5em;
}

nav ul li:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

#welcome_message {
    text-align: center;
    margin-top: 20px;
    margin-left: -20px;
    font-size: 25px;
    color: white;
}

nav ul li:last-child a {
    border: solid white 2px;
    border-radius: 8px;
    padding: 10px 20px;
    color: white;
    text-align: center;
    font-size: 1.4em;
}

nav ul li:last-child a:hover {
    scale: 1.1;
    transition: scale 0.2s;
}

/* BACKGROUND */

.circles {
    position: absolute;
    z-index: -1;
    left: 0;
    width: 100vw;
    height: 100%;
    overflow: hidden;
    opacity: 0.5;
}

.circle {
    width: 300px;
    height: 300px;
    background: rgb(45,208,42);
    background: linear-gradient(180deg, rgba(45,208,42,0.7) 0%, rgba(7,96,5,0) 100%);
    border-radius: 100%;
    position: absolute;
    -o-animation: slide;
    animation: slide;
}

.circle{
    -webkit-animation:slide-tr 20s cubic-bezier(.455,.03,.515,.955) infinite alternate forwards;
    animation:slide-tr 20s cubic-bezier(.455,.03,.515,.955) infinite alternate forwards
}

.circle:nth-child(1){
    top: 4%;
    left: 15%;
}

.circle:nth-child(2){
    top: 35%;
    left: 50%;
}

.circle:nth-child(3){
    top: 90%;
    left: 10%;
}

.circle:nth-child(4){
    top: 15%;
    left: 90%;
}

.circle:nth-child(5){
    top: 70%;
    left: 70%;
}

.circle:nth-child(6){
    top: 3%;
    left: 60%;
}

.circle:nth-child(7){
    top: 45%;
    left: 1%;
}

.circle:nth-child(8){
    top: 60%;
    left: 30%;
}

@-webkit-keyframes slide-tr{
    0%{
        -webkit-transform:translateY(0) translateX(0);
        transform:translateY(0) translateX(0)
    }
    100%{
        -webkit-transform:translateY(-50px) translateX(0px);
        transform:translateY(-50px) translateX(0px)
    }
}

@keyframes slide-tr{
    0%{
        -webkit-transform:translateY(0) translateX(0);
        transform:translateY(0) translateX(0)
    }
    100%{
        -webkit-transform:translateY(-50px) translateX(0px);
        transform:translateY(-50px) translateX(0px)
    }
}

.explosion {
    animation: rotate 2s ease-in-out, explode 0.5s both;
    position: absolute;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.formulaire {
    background: var(--white-background);
    padding: 20px;
    border-radius: 8px;
    width: 50%;
}

h2 {
    font-size: 35px;
    text-align: center;
    color: var(--medium-green);
}

.formulaire form {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formulaire form div {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: auto;
}

.formulaire form div div {
    margin-bottom: 20px;
    width: 100%;
}

.formulaire form div div label {
    text-align: center;
    color: var(--medium-green);
    font-size: 30px;
    font-weight: 700;
}

.formulaire form div div input {
    border: 2px var(--medium-green) solid;
    box-shadow: 9px 9px 8px -4px rgba(0,0,0,0.3);
    border-radius: 8px;
    font-size: 20px;
    outline: none;
    padding: 5px 10px;
    color: var(--dark-green);
}

.formulaire form div div input:focus {
    box-shadow: inset 0px 10px 5px -3px rgba(0,0,0,0.1);
}

.formulaire p, .formulaire a {
    text-align: center;
    color: var(--dark-green);
}

.formulaire form .error {

}

.formulaire form .error #error-message {
    color: red;
    font-size: 25px;
}

.btn {
    background-color: var(--light-green);
    border: 2px transparent solid;
    padding: 10px 20px;
    font-size: 25px;
    color: var(--dark-green);
    border-radius: 8px;
    box-shadow: 9px 9px 8px -4px rgba(0,0,0,0.3);
    cursor: pointer;
    margin: 10px auto;
}

.btn:hover {
    background-color: transparent;
    color: var(--medium-green);
    border: 2px var(--medium-green) solid;
}

.btn:active {
    background-color: var(--medium-green);
    color: var(--dark-green);
    border: 2px transparent solid;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    background-color: white;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background-color: var(--medium-green);
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background-color: var(--medium-green);
    border-radius: 50%;
    cursor: pointer;
}

.input {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.input label {
    text-align: center;
    color: var(--medium-green);
    font-size: 30px;
    font-weight: 700;
    display: block;
}

.input label span {
    text-align: center;
    color: var(--medium-green);
    font-size: 30px;
    font-weight: 700;
}

.input input {
    border: 2px var(--medium-green) solid;
    box-shadow: 9px 9px 8px -4px rgba(0,0,0,0.3);
    border-radius: 8px;
    font-size: 20px;
    outline: none;
    padding: 5px 10px;
    color: var(--dark-green);
}

.input input:focus {
    box-shadow: inset 0px 10px 5px -3px rgba(0,0,0,0.1);
}