/* ### Définition des variables ### */
:root {
  --dark-color: #290900;
  --h-shadow-color: #898900;
  --menu-images-hover: #66ccff;
  --home-image: #992600;
  --home-image-hover: #922a07;
	--deviantart-color: #05cc47;
	--twitter-color: #1da1f2;
	--discord-color: #7289da;
	--workshop-color: #0071b2;
	--forum-feather-color: white;
	--forum-scroll-color: tan;
	--text-shadow: #b81c12;
	--icon-size: 32px;
	--main-size: 1000px;
	--nav-height: 300px;
  --nav-icon-size: 50px;
  --menu-item-bg: url('/img/backgrounds/menu_buttons.png');
  --menu-item-hover-bg: url('/img/backgrounds/menu_buttons_hover.png');
  --menu-background: url('/img/backgrounds/header_and_footer.jpg');
  --menu-border: linear-gradient(#562d05 0%, #562d05 33%, #391300 33%, #391300 66%, #69481f 66%, #69481f 100%) 99;
}

/* ### Définition des fonts ### */
@font-face {
	font-family: 'Stonehenge';
	src: url('/fonts/Stonehenge.ttf');
}
@font-face {
	font-family: 'AonCariCeltic';
	src: url('/fonts/AonCariCeltic.ttf');
}
@font-face {
	font-family: 'SachaWynterTight';
	src: url('/fonts/SachaWynterTight.ttf');
}

html {
  display: grid;
  height: 100%;
}
body {
	background: url('/img/backgrounds/page.jpg') repeat fixed center center;
	margin: 0;
  font-family: "Times New Roman", serif;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  height: 100%;
}

header, main, footer, nav {
  margin: auto;
  width: var(--main-size);
  box-sizing: border-box;
}
header {
	background-image: var(--menu-background);
	display: flex;
	justify-content: space-evenly;
	align-items: center;
  height: 50px;
  border-image: url('/img/backgrounds/header_down.png') 5 / 5px / 0 repeat;
  border-bottom: 3px solid;
}
main {
	flex-grow: 1;
	padding: 10px 40px 30px;
}
footer {
	background-image: var(--menu-background);
  color: white;
  text-align: center;
  padding: 5px 20px;
  margin-top: 20px;
  position: relative;
}
footer::before {
  content: "";
  width: 100%;
  height: 20px;
  display: block;
  position: absolute;
  top: -20px;
  left: 0;
  background-image: url('/img/backgrounds/footer_up.png');
}
footer p { margin-top: 0; }
h1, h2, h3, h4, h5, h6 {
	font-family: 'Sherwood', 'Monotype Corsiva', 'Times New Roman', serif;
	color: var(--text-shadow);
	filter: drop-shadow(1px 1px 1px var(--h-shadow-color));
	margin-bottom: 0.8em;
}
h1 {
	font-size: 2em;
	text-align: center;
}
h2 { font-size: 1.6em; }
h3 { font-size: 1.4em; }
h4 { font-size: 1.2em; }
h5 { font-size: 1em; }
h6 { font-size: 0.8em; }
p {
	text-align: justify;
	margin: 0;
}
hr {
	background-image: url('/img/celticFriezes/simple.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  height: 50px;
  border: none;
  margin: 1.5em auto;
}
section { margin: 2em 1em; }
.other-platforms-links {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
	padding: 5px;
}
figure.zoom {
  background-position: 50% 50%;
  position: relative;
  overflow: hidden;
  cursor: all-scroll;
	margin: 0;
}
figure.zoom img:hover { opacity: 0; }
figure.zoom img {
  transition: opacity .5s;
  display: block;
  width: 100%;
}
.icon {
  width: var(--icon-size);
  height: var(--icon-size);
	transition: .25s filter ease;
}
.deviantart { color: var(--deviantart-color); }
.twitt { color: var(--twitter-color); }
.discord { color: var(--discord-color); }
.workshop { color: var(--workshop-color); }
.forum { color: var(--forum-feather-color); fill: var(--forum-scroll-color); }
.icon:hover { filter: brightness(125%) drop-shadow(0 0 1px currentColor); }

nav { display: flex; }

nav ul {
	font-family: 'Stonehenge', 'Monotype Corsiva', 'Times New Roman', serif;
	display: flex;
	list-style: none;
	flex-flow: column wrap;
  justify-content: space-evenly;
  align-items: center;
	height: var(--nav-height);
	margin: 0 2%;
	padding: 0;
}
.left, .right {
  box-sizing: border-box;
}

.left li, .right li {
  background-image: var(--menu-item-bg);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transition: 0.5s filter ease, 0.5s background-image ease;
}
.left li:hover, .right li:hover {
  background-image: var(--menu-item-hover-bg);
  filter: drop-shadow(0 0 3px var(--menu-images-hover));
}

nav ul a {
	display: flex;
  text-decoration: none;
  font-size: 1.2em;
	width: 100%;
  box-sizing: border-box;
  color: white;
  text-shadow: 0 0 2px var(--dark-color),0 0 5px var(--dark-color);
}

.middle a img {
  filter: drop-shadow(0 0 15px var(--home-image));
  width: var(--nav-height);
  height: var(--nav-height);
  transition: 0.5s filter ease;
}
.middle:hover a img {
  filter: drop-shadow(0 0 5px var(--home-image-hover));
}
.left a img, .right a img {
  width: var(--nav-icon-size);
  height: var(--nav-icon-size);
  transition: 0.5s filter ease;
}
.left li:hover a img, .right li:hover a img {
  filter: drop-shadow(0 0 3px var(--menu-images-hover));
}

.left a div, .right a div {
  height: var(--nav-icon-size);
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
}

@media (min-width: 1000px) {
  .left, .right {
    width: 38%;
  }
  .left { order: 0; }
  .middle { order: 1; width: 24%; margin: 0; }
  .right { order: 2 }

  nav ul li {
    box-sizing: border-box;
    width: 75%;
  }
  .left li { align-self: flex-start; }
  .middle li { width: 100%; }
  .right li { align-self: flex-end; }
  .left li ~ li { margin-left: 7%; }
  .left li ~ li ~ li { margin-left: 25%; }
  .right li ~ li { margin-right: 7%; }
  .right li ~ li ~ li { margin-right: 25%; }

  .right a { flex-direction: row-reverse; padding-left: 15px; }
  .left a { padding-right: 15px; }
  .middle a { justify-content: center; }
}

@media (max-width: 999px) {
  :root {
  	--main-size: auto;
    --nav-height: auto;
    --nav-width: 745px;
  }
  header, nav ul:not(.middle) a img {
    display: none;
  }
  nav {
    width: 100%;
    position: relative;
  }
  .left, .right {
    position: fixed;
    left: 0;
    margin: 0;
    height: 50px;
    display: block;
    padding: 0;
  }
  .left {
    order: 1;
    z-index: 1;
    left: calc((100% - var(--nav-width)) / 2);
  }
  .middle {
    order: 3;
    margin: auto;
    margin-top: 50px;
  }
  .right {
    order: 2;
    text-align: right;
    width: 100%;
    padding: 0 calc((100% - var(--nav-width)) / 2);
    background-image: var(--menu-background);
    border-image: var(--menu-border);
    border-bottom: 3px solid;
  }
  nav ul li {
    display: inline-block;
    margin: 0;
    width: auto;
    padding: 0 12px;
  }
  .left li, .right li {
    background-position: center;
    background-size: 100% 40%;
    background-repeat: no-repeat;
    transition: 0.5s filter ease, 0.5s background-image ease;
  }
  nav ul a {
  	display: inherit;
  	width: auto;
    padding: 0;
  }
  .middle a img {
    width: 300px;
  }
}
