/* BARRE DE NAV */


ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #333;
	margin-top: -10px;
	margin-left: -10px;
	width: 100.95%;
}

li {
	float: left;
}

li a, .dropbtn {
	display: inline-block;
	color: white;
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
}

li a:hover, .dropdown:hover .dropbtn {
	background-color: #C69257;
}

li.dropdown {
	display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: #333;
	width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
}

.dropdown-content a {
	color: white;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	text-align: left;
}

.dropdown-content a:hover {
	background-color: #C69257;
}

.dropdown:hover .dropdown-content {
	display: block;
}


/* MISE EN PAGE */


:root{
    font-size: 70%;
    --duree: 1s;
    --colorBoite: #6990CC;
    --colorFond: #666666;
	--font-color: black;
	--title-color: black;
	--background-color: #cccccc;
	--background-border: 5px solid black;
	--background-image: url(../images/fond_web.jpg);
}

body {
	color: var(--font-color);
	background-color: var(--bg-color);
	background-image: var(--background-image);
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
}

main {
  border: var(--main-border);
  background: var(--main-bg);
}
h1 {
  color: var(--title-color);
}

#container > *  {
	margin-top: 50px;
	margin-left: -275px;
	width: 1750px;
	color: white;
	font-family: "MS Sans Serif";
	background-color: var(--background-color);
	border-radius: 25px;
	border: var(--background-border);
}

#header {
    display : block; 
    animation-name: fromtop;
    position: relative ;
}

#contenue {
    display : block; 
    animation-name: frombottom;
    position: relative ;
}

#content {
    grid-area: content;
    opacity: 0;
    animation-name: fondu;
    animation-delay: var(--duree);
    animation-fill-mode: forwards;
	max-width: 145%;
	height: 800px;
}

#container {
    max-width: 1200px;
    margin: auto;
	grid-template-columns: 150px 8fr 2fr;
    grid-template-areas: 
	"header header header"  
	"nav    content pub" 
}

@font-face {
  font-family: TS Block Bold;
  src: url("../assets/TS Block Bold.ttf");
}

.sousmenu{
    display: none;
}

@media (min-width: 1000px) {

#container {
    grid-template-columns: 150px 8fr 2fr;
    grid-template-areas: 
	"header header header"  
	"nav    content pub" 
}

nav ul {
    flex-direction: column;
}

:root{
    font-size: 100%;
}
    
#container > *{
    font-size: 1rem;
}

}

div:hover > img {
    transform: translateY(0);
}

#theme{
    position: fixed;
    top: 10px;
    right: 10px;
    height: 30px;
    max-width: 70px;
}


/* ACCUEIL */


div.a {
	text-align: center;
	font-size: 400%;
	font-family : Impact, fantasy;
}

div.twitchdiv {
	margin-top: 100px;
	margin-left: 50px;
	text-align: left;
	font-family : Arial, sans-serif;
	font-size: 150%;
	max-width: 60%;
	color: var(--font-color);
}


/* FORMULAIRE */


form {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 400px;
	height: 200px;
	margin-left: -250px;
	margin-top: -150px;
	background: black 0.5;
	background-size: cover;
	padding: 1em;
	border-radius: 1em;
	color: var(--font-color);
	font-weight: bold;
}

form div + div {
	margin-top: 1em;
}

label {
	display: inline-block;
	width: 110px;
	font-size: 150%;
	text-align: left;
}

input, textarea {
	font: 1em sans-serif;
	width: 450px;
	box-sizing: border-box;
	border: 1px solid #999;
}

input:focus, textarea:focus {
	border-color: #000;
}

textarea {
	vertical-align: top;
	height: 5em;
}

.button {
	padding-left: 90px;
	width: 200px;
}

button {
	margin-left: -90px;
	width: 150px;
	height: 25px;
}

div.formu {
	width: 100%;
	height: auto;
}

div {
	width: 100%;
	height: auto;
}

#containerstreamer > *  {
	margin-top: 50px;
	margin-left: 800px;
	max-width: 1000px; 
    max-height: 800px;
	color: white;
	font-family: "MS Sans Serif";
	background-color: var(--background-color);
	border-radius: 25px;
	border: var(--background-border);
}

.active{
	background-color: #C69257;
}

table, th, td{
    border: solid 3px white;
    padding: 5px;
    border-collapse: collapse;
    text-align: center;
    margin: auto;
	color: var(--font-color);
}
th{
    border: solid;
	background-color: #333;
}
tr:nth-child(2n)
{
    background-color: #C69257;
}
tr:nth-child(2n+3)
{
    background-color: #C69257;
}


/* TOUTE PAGES */


h1.titre {
	margin-top: 100px;
	font-size: 400%;
	text-align: center;
	font-family : Impact, fantasy;
	text-decoration: underline;
	animation-name: fromtop;
}


/* STREAMER */


div.streamer{
	text-align: center;
	font-size: 400%;
	font-family : Impact, fantasy;
	text-decoration: underline;
	color: var(--font-color);
}


/* ZERATOR */


div.streamerbiozera{
	text-align: center;
	font-size: 200%;
	font-family : Arial, sans-serif;
	color: var(--font-color);
}


/* MAGHLA */


div.streamerbiomaghla {
	text-align: center;
	margin-top: 150px;
	font-size: 200%;
	font-family : Arial, sans-serif;
	color: var(--font-color);
}


/* ANIMATION */


@keyframes fromtop {
	from {top:-1000px;}
	to {top:0px;}
}
@keyframes fromright {
	from {right:-1000px;}
	to {right:0px;}
}
@keyframes frombottom {
	from {bottom:-1000px;}
	to {bottom:0px;}
}
@keyframes fromleft {
	from {position:relative; left:-1000px;}
	to {position:relative; left:0px;}
}
@keyframes fondu {
	from {opacity : 0}
	to {opacity : 1}
}

.animationDepart{
    animation-duration: var(--duree);
}


/* DARK MODE */


.theme-switch-wrapper {
  display: flex;
  align-items: center;
}
.theme-switch-wrapper em {
  margin-left: 10px;
  font-size: 1rem;
}
.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
  margin-top:-46px;
  margin-left:250px;
  align-items: center;
}
.theme-switch input {
  display: none;
}
.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: 0.4s;
  width: 26px;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #C69257;
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider svg {
  color: #222;
  position: absolute;
  transition: opacity 0.2s ease 0s, transform 0.35s ease 0s;
  pointer-events: none;
}
.feather-moon {
  opacity: 0;
  left: 9px;
  bottom: 9px;
  transform: translateX(4px);
}
.feather-sun {
  opacity: 1;
  right: 10px;
  bottom: 9px;
  transform: translateX(0px);
}
input:checked + .slider .feather-moon {
  opacity: 1;
  transform: translateX(0);
}
input:checked + .slider .feather-sun {
  opacity: 0;
  transform: translateX(-4px);
}

[data-theme="dark"] {
  --bg-color: white;
  --font-color: white;
  --title-color: white;
  --title-background: white;
  --main-border: 1px solid white;
  --main-bg: white;
  --background-color: black;
  --background-border: 5px solid white;
  --background-image: url(../images/fond_web_dark.jpg);
}