/*
Theme Name: jaimelesjeux-2
Author: Adrien BAUDET
Description: theme pour jaimelesjeux.fr
Requires at least: WordPress 5.0
Version: 1.1
*/

:root {
  --main-bg-color: #fafafa;
  --primary: #48665e;
}

a {
  color: var(--primary);
  text-decoration: underline;
}

body {
  margin: 0;
  padding: 0;
  background-image: url("./images/background.png");
}

header {
  position: sticky;
  top: 0;
  padding: 16px;
  background-color: var(--main-bg-color);
  margin-bottom: 100px;
  box-shadow: 10px 10px 30px 0px rgba(0,0,0,0.65);
}

header .menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  gap: 16px;
}

header .menu-inner {
  display: none;
  list-style-type: none;
}

header .menu-inner.open {
  display: contents;
}

#toggle {
  font-size: 2rem;
}

footer ul {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0;
  gap: 16px;
}

header ul a {
  color: #010101;
  text-decoration: none;
  font-weight: bold;
}

#extra-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #010101;
  transition: height 1s linear;
  text-align: center;
}

#extra-menu.shrink {
  height: 0px;
  overflow: hidden;
  transition: height 1s linear;
}

#extra-menu p {
  margin: 0;
  padding: 0;
  font-size: 2rem;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 100vh;
}

.container article {
  margin: 0 16px;
  padding: 25px 32px 32px;
  background-color: var(--main-bg-color);
  border-radius: 16px;
  box-shadow: 4px 4px 8px #2f3650ce;
  width: 30ch;
}

.container .excerpt .text {
  grid-area: text;
}

.container .excerpt .link {
  grid-area: link;
}

.container .excerpt img {
  grid-area: img;
}

.container article h2 {
  margin-top: 0;
}

.link a {
  display: inline-block;
  padding: 8px;
  border-radius: 4px;
  background-color: var(--primary);
  color: #f7f7f7;
  box-shadow: 2px 2px 4px #2f3650;
  text-decoration: none;
  font-weight: bold;
}

.container .excerpt a:hover {
  background-color: #597870;
  color: #f7f7f7;
}

footer {
  padding: 16px;
  background-color: var(--main-bg-color);
  margin-top: 32px;
  box-shadow: 2px 2px 4px #2f3650;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

footer .menu {
  display: contents;
}

footer .menu ul {
  display: contents;
}

footer .menu ul a {
  color: #010101;
  text-decoration: none;
  font-weight: bold;
  padding: 0;
}

footer .menu li {
  margin: 0;
}

.btn {
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  background-color: var(--primary);
  color: #f7f7f7;
  box-shadow: 2px 2px 4px #2f3650;
  font-weight: bold;
}

.thumbnail {
  text-align: center;
}

.thumbnail img {
  width: 200px;
}

@media only screen and (min-width: 576px) {
  .container article {
    width: 50ch;
  }

  .thumbnail img {
    width: initial;
  }

  header .menu {
    flex-direction: row;
    justify-content: start;
  }

  #toggle {
    display: none;
  }

  header .menu-inner {
    display: contents;
  }
}

@media only screen and (min-width: 992px) {
  .container article {
    width: 70ch;
  }
}

@media only screen and (min-width: 1400px) {
}
