/*This is copied from front-end css/main.css*/

*{
    padding:0;
    margin:0;
}

body
{
    min-height: 100vh;
    display:flex;
    flex-direction: column;
    /*background:#1a1a1d;*/
    background:#1a1a1d url("../img/bg.png");
    background-size: cover;
    background-position:center center;
    color: white;
    font-family: 'Roboto', sans-serif;
}

main{
    flex:1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width:600px;
    min-width:600px;
    align-self: center;
}

main>section{
    width: 150%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 10px 0;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    display:flex;
    flex-direction: column;
    overflow: hidden;
}
main>section>*
{
    margin: 12px;
    margin-left: 20px;
    margin-right: 10px;
    width:calc(100% - 30px);
}
/*Copié ici dessous pour les sections sous span... (je n'ai pas trouvé d'alternative à juste recopier)*/
main>span>section{
    width: 150%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 10px 0;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    display:flex;
    flex-direction: column;
    overflow: hidden;
}
main>span>section>*
{
    margin: 12px;
    margin-left: 20px;
    margin-right: 10px;
    width:calc(100% - 30px);
}

header{
    position:sticky;
    top:0;
    background: #1a1a1d;
    transition: .4s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

footer{
    min-height: 100px;
    background:#353538;
    display:flex;
    align-items: center;
    justify-content: space-around;
}
footer a{
    text-decoration: none;
    color:gray;
}
footer a:hover{
    text-decoration: underline;
}

/*----------------------navbar---------------------------*/

nav
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color:white;
    text-decoration: none;
}
nav>div{
    margin-right: 20px;
}
nav a:hover {
    text-decoration: underline;
}

.Roles{
    display: list-item;
    margin-bottom: 10px;
    list-style: none;
}
section a
{
    color:rgb(157, 130, 255);
    text-decoration: none;
}
section a:hover
{
    text-decoration: underline;
}

ul{
    min-width: 400px;
    width:50vw;

    display: flex;
    justify-content: space-between;
    align-items: center;
}
.errorlist{
    margin-left: 15px;
    display: inline;
    justify-content: left;
    align-items: left;
}
li{
    font-size: 120%;
    text-shadow: #bb2bf8 1px 1px 10px;

    list-style-type: none;
    justify-content: center;
    text-align: center;
}
.user_page{
    text-shadow: #bb2bf8 1px 1px 10px;
}

.slider
{
    min-width: 100%;
    max-width: 100%;
    display:flex;
    min-height: fit-content;
    align-self: center;
    animation:slide 12.5s infinite linear;
}
.slider>*
{
    min-width: 50%;
    max-width: 50%;
    min-height:fit-content;
    max-height:fit-content;
}

@keyframes slide {
    0%
    {
        transform: translateX(0);
    }
    25%
    {
        transform: translateX(-50%);
    }
    50%
    {
        transform: translateX(-100%);
    }
    75%
    {
        transform: translateX(-150%);
    }
    100%
    {
        transform: translateX(-200%);
    }
}

#tsp
{
    width:auto;
    margin-left: 10px;
}

.deroulement
{
    display: flex;
    justify-content: center;
    align-items: center;
}

#deroulement
{
    display: list-item;
    max-width:90%;
    list-style:none;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 20px;
    box-shadow:#ffffff 0px 0px 40px;
}

#logo
{
    max-height: 95px;
    width:auto;
    margin-left:8px;
    margin-bottom:4px;
}

#countdown
{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shiny
{
    background: linear-gradient(to right, #be39ca 0%, #6306b9 35% 65%, #af3bbe);
    align-items: center;
    text-align: center;
    font-size:larger;
    text-shadow: #8E44AD 3px 3px 15px;
}

.submit
{
    margin-top: 5px;
    padding: 2px 3px;
}

h1
{
    text-align: center;
    margin:10px;
    text-shadow: #8E44AD 1px 1px 10px;
    margin-bottom: 10px;
}

span
{
    font-size: large;
    font-weight: normal;
}

p
{
    font-size: 120%;
}

label
{
    margin-top: 10px;
}

input[type=text],[type=password],[type=email]
{
    margin-top: 5px;
    min-height: 35px;
    font-size: medium;
    font-weight:bold;
    margin-bottom:20px;
    margin-right: 10px;
    padding-left: 5px;
}

input[type=radio],[type=checkbox]
{
    margin-bottom: 10px;
    margin-right: 3px;
    margin-left: 5px;
    -ms-transform: scale(1.5); /* IE 9 */
    -webkit-transform: scale(1.5); /* Chrome, Safari, Opera */
    transform: scale(1.5);
}

/*Design from https://uiverse.io/Yaseen549/average-firefox-86*/
input[type=text],[type=password],[type=email] {
    color: #dd8fff;
    background-color: #202020;
    /* text-align: center; */
    border: 2px solid white;
    border-radius: 5px;
    /* box-shadow: 3px 3px 2px rgb(249, 255, 85); */
}
input[type=text]:focus,[type=password]:focus,[type=email]:focus {
    color: white;
    background-color: #313131;
    outline-color: #b300ff;
    box-shadow: -3px -3px 20px #b300ff;
    transition: .1s;
    transition-property: box-shadow;
}
input[type=text]:-webkit-autofill,input[type=password]:-webkit-autofill,input[type=email]:-webkit-autofill { /* Chrome, Safari, Edge */
    -webkit-box-shadow: 0 0 0px 1000px #525252 inset;
    -webkit-text-fill-color: #bea6ff;
    transition: background-color 5000s ease-in-out;
}
input[type=text]:-moz-autofill,input[type=password]:-moz-autofill,input[type=email]:-moz-autofill { /* Firefox */
    box-shadow: 0 0 0px 1000px #525252 inset;
    -moz-text-fill-color: #bea6ff;
    transition: background-color 5000s ease-in-out;
}

input[type=submit]
{
    background-color: #7b4ff3ff;
    color:#ffffff;
    text-shadow: #ffffff 0px 0px 20px;
    border-radius: 16px;
    border-style:none;
    align-self: center;
    max-width: 50%;
    font-weight: bolder;
    font-size: larger;
    height: 50px;
    margin-bottom: 20px;
    padding-left: 50px;
    padding-right: 50px;
}

textarea
{
    min-height: 60px;
    font-size:larger;
    font-weight:500;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin-right: 10px;
    margin-bottom:10px;
    padding-left: 5px;
    width: 99%;
    max-width: 99%;
    min-width: 99%;
    height: 15%;
    resize: none;
    color: #dd8fff;
    background-color: rgb(23, 9, 63);
    border: 1px solid rgb(86, 25, 255);
    border-radius: 5px;
}
textarea:focus
{
    color: white;
    background-color: rgb(44, 20, 110);
    outline-color: #b300ff;
    box-shadow: -3px -3px 20px #b300ff;
    transition: .1s;
    transition-property: box-shadow;
}
textarea:disabled
{
    color: rgb(165, 165, 165);
    background-color: rgb(80, 80, 80);
    outline-color: #000000;
    border: 2px solid rgb(0, 0, 0);
    box-shadow: 0px 0px 2px rgb(0, 0, 0);
}

/*Radio from https://uiverse.io/gharsh11032000/moody-dog-23*/
.radio-button-container {
    display: flex;
    align-items: center;
    gap: 24px;
}
.radio-button {
    display: inline-block;
    position: relative;
    cursor: pointer;
}
.radio-button__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.radio-button__label {
    display: inline-block;
    padding-left: 33px;
    margin-bottom: 7px;
    position: relative;
    font-size: 20px;
    color: #f2f2f2;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
}
.radio-button__custom {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #555;
    transition: all 0.3s ease;
}
.radio-button__input:checked + .radio-button__label .radio-button__custom {
    background-color: #7b4ff3ff;
    border-color: transparent;
    transform: scale(0.8);
    box-shadow: 0 0 20px rgb(61, 27, 153);
}
.radio-button__input:checked + .radio-button__label {
    color: #7b4ff3ff;
}
.radio-button__label:hover .radio-button__custom {
    transform: scale(1.2);
    border-color: #7b4ff3ff;
    box-shadow: 0 0 20px rgb(61, 27, 153);
}

/*Checkbox from https://uiverse.io/gharsh11032000/good-wasp-26*/
/* Hide the default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.container {
  display: flex;
  position: relative;
  cursor: pointer;
  font-size: 20px;
  user-select: none;
}
/* Create a custom checkbox */
.checkmark {
  position: relative;
  top: 0;
  left: 0;
  height: 1.3em;
  width: 1.3em;
  border: 2px solid #414141;
  border-radius: 5px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}
.container input:hover ~ .checkmark {
  border: 2px solid #7b4ff3ff;
}
/* When the checkbox is checked */
.container input:checked ~ .checkmark {
  box-shadow: 0 0 15px #7b4ff3ff;;
  border: 2px solid #7b4ff3ff;
}
/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}
/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 0.45em;
  top: 0.25em;
  width: 0.25em;
  height: 0.5em;
  border: solid #7b4ff3ff;
  border-width: 0 0.15em 0.15em 0;
  transform: rotate(45deg);
}
.label_container {
    margin-top: 4px;
    display: inline-block;
    margin-left: 15px;
    position: relative;
    font-size: 20px;
    color: #f2f2f2;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
}


h2
{
    margin-bottom: 10px;
    text-shadow: #662c80 1px 1px 10px;
}

#formulaire
{
    background-color: #7b4ff3ff;
    color:#ffffff;
    text-shadow: #ffffff 0px 0px 20px;
    border-radius: 16px;
    border-style:none;
    align-self: center;
    max-width: 25%;
    font-weight: bolder;
    font-size: large;
    height: 50px;
}

.error
{
    color: red;
    font-size: normal;
    text-shadow: #6b0d0d 0px 0px 15px;
    list-style-type: disc;
    justify-content: left;
    text-align: left;
}

/*Loader from https://cssloaders.github.io/*/
.loader, .loader:before, .loader:after {
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  animation-fill-mode: both;
  animation: bblFadInOut 1s infinite ease-in-out;
  align-self:center;
  margin-bottom:40px;
}
.loader {
  color: #7b4ff3ff;
  font-size: 7px;
  position: relative;
  text-indent: -9999em;
  transform: translateZ(0);
  animation-delay: -0.08s;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}
.loader:before {
  left: -3.5em;
  animation-delay: -0.16s;
}
.loader:after {
  left: 3.5em;
}

@keyframes bblFadInOut {
  0%, 80%, 100% { box-shadow: 0 2.5em 0 -1.3em }
  40% { box-shadow: 0 2.5em 0 0 }
}


/*user.css*/

:root{
    --slide-account:-0vw;
}

#loader
{
    width:0;
    height:0;
    background: #650668;
    animation: blink 1s infinite ease;
    position:fixed;
    z-index: 10;
}
@keyframes blink {
    0%{
        opacity: 0.8;
    }
    50%{
        opacity: 0.6;
    }
    100%{
        opacity: .8;
    }
}

#sendeder
{
    width:0;
    height:0;
    background: #650668;
    opacity: 0.8;
    position:sticky;
    top:0;
    z-index: 100;
    overflow:hidden;
    display:flex;
    justify-content: space-around;
    align-items: center;
    color:#eacceb;
}

#sendeder span
{
    font-size: 30;
}

#type
{
    align-self: center;
    display:flex;
    width: 30vw;
    margin: 1vh;
    overflow:hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.5);
}

#userdatacontainer
{
    display: flex;
    flex-direction: column;
}

.rgpdul{
    display:inline-block;
    margin-left:50px;
    max-width: calc( 100% - 30px );
}
.rgpdul li{
    text-align: start;
    list-style-type: decimal;
}

#type > section
{
    transform: translateX(var(--slide-account));
    transition:1s;
    padding: 4%;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    min-width: 92%;
    max-width: 92%;
}

form
{
    display:flex;
    flex-direction: column;
}

iframe{
    flex:1;
    border:none;
}

#pool-connector{
    display:flex;
    flex-direction: column;
}
#pool-creator, #pool-joiner
{
    margin:10px;
}
#pool-creator input
{
    width:auto;
}

h3{
    margin-top: 40px;
    margin-bottom: 25px;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    text-decoration-color: #7b4ff3ff;
}

label{
    text-shadow: #8E44AD 1px 1px 10px;
    margin-left: 10px;
    font-size: large;
    margin-bottom: 5px;
}

p{
    margin-bottom: 5px;
}

a{
    font-size:x-large;
    text-align:center;
}
