@import url("https://fonts.googleapis.com/css2?family=Boogaloo&family=Chewy&family=Luckiest+Guy&display=swap");

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

:root {
  --primarycolor: rgb(38, 73, 150);
  --hoverprimarycolor: rgb(150, 150, 240);
  --secondarycolor: rgb(224, 235, 245);
  --backgroundcolor: rgb(71, 92, 160);
  --titlefont: "Luckiest Guy";
  --textfont: "Chewy";
}

/* ----- Structure --------------- */

body {
  position: relative;

  font-family: var(--textfont);
  font-size: 20px;
  color: var(--secondarycolor);
  background-color: var(--backgroundcolor);
  padding-left: 0rem;

  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
}

body > header {
  position: relative;
  background: var(--textcolor);
}
body > main {
  width: 80%;
  padding: 1em;

  background-color: rgb(20, 20, 40, 0.4);
  backdrop-filter: blur(4px);

  flex: 1;
  align-self: center;
}
@media screen and (width <= 500px) {
  body > main {
    width: 100%;
    font-size: 16px;
  }
}

h1,
h2,
h3,
h4 {
  margin: 0.4em 0 0.2em;
  font-family: var(--titlefont);
  font-size: 2.5em;
  overflow-wrap: break-word;
}

header > h1 {
  height: 3rem;
  margin: 0;
  padding-top: 0.4rem;
  color: var(--primarycolor);
  background: var(--secondarycolor);
  font-family: var(--titlefont);
  font-size: 2.5em;
}


header > h1:hover {
  font-size: 250em;
  transition-delay: 10s;
  transition-duration: 600s;
}


/* ----- Général --------------- */

.center {
  text-align: center;
}

a {
  text-decoration: none;
  color: inherit;
}
main a {
  color: rgb(150, 150, 240);
}

.photo {
  width: 100%;
  vertical-align: middle;
}

.tourdobs {
  left: 0;
  bottom: 0;
  position: fixed;
  z-index: -1;
  height: calc(10vw + 30vh);
}

.nuages {
  bottom: 0;
  right: 0;
  position: fixed;
  z-index: -2;
  height: calc(25vw + 50vh);
}

textarea {
  width: 100%;
  max-width: 600px;
}

/* ----- Menu déroulant --------------- */

#open-btn,
#close-btn {
  position: absolute;
  left: 0;
  top: 0;
  height: 3rem;
  padding: 0 12px;

  color: var(--primarycolor);
  cursor: pointer;

  font-size: 36px;
  font-weight: bold;
}

#close-btn {
  padding: 0 20px;
}

#open-btn:hover {
  transform: scale(1.2);
  transition: transform 0.3s;
}

#sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: var(--secondarycolor);
  overflow-x: hidden;
  padding-top: 3em;
  transition: 0.5s;
  opacity: 0;
  white-space: nowrap;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#sidenav.open {
  opacity: 1;
  width: 300px;
  max-width: 100%;
}

#sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  display: block;
  color: var(--primarycolor);
  transition: 0.5s;
}

#sidenav a:hover {
  color: var(--hoverprimarycolor);
}


/*---------Accessibilité----------------*/

:focus-visible {
    outline: 3px solid var(--secondarycolor);
    box-shadow: 0 0 0 6px var(--primarycolor);
}
