@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: normal;
  src: url(../fonts/Ubuntu/Ubuntu-Regular.woff)

}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: bold;
  src: url(../fonts/Ubuntu/Ubuntu-Bold.woff)

}
@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: normal;
  src: url(../fonts/Ubuntu/Ubuntu-Italic.woff)

}

/* EBGARAMOND */
@font-face {
  font-family: 'ebgaramond';
  font-style: normal;
  font-weight: 500;
  src: url(../fonts/ebgaramond/ebgaramond-regular.woff);
}
@font-face {
  font-family: 'ebgaramond';
  font-style: normal;
  font-weight: 700;
  src: url(../fonts/ebgaramond/ebgaramond-bold.woff);
}
@font-face {
  font-family: 'ebgaramond';
  font-style: normal;
  font-weight: 600;
  src: url(../fonts/ebgaramond/ebgaramond-semibold.woff);
}
:root {
  --black: #060808;
  --dark-green: #0A1314;
  --bold--white: #EDFAF2;
  --white: #DAE6DE;
  --accent-green: #42A866;
  --purple: #E00D62;
  --grey: #949C97;
}
h1,
h2, summary {
  font-family: ebgaramond;
}
h1 {
  text-align: center;
  font-size: clamp(2.0rem, 2vw + 1rem, 3.5rem);
  font-weight: 700;
}
summary {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.5rem);
  margin: 2rem 0;
  cursor: pointer;
  font-weight: 600;
  width: clamp(10rem, 55vw + 1rem, 60rem);
}

h2{
  font-size: clamp(1.1rem, 1.3vw + 1rem, 1.5rem);
  font-weight: 600;
  color: var(--purple);
  font-size: 1.7rem;
}

h2:not(:first-child){
  margin: 1.5rem 0 0.3rem;
}

main {
  padding: 1rem 10rem;
}
main nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  height: 9rem;
}
main nav a img {
  width: 80%;
  min-width: 5rem;
  transition: transform 0.3s;
}
main nav a:first-child img:hover {
  transform: scale(1.3);
}
main nav a:last-child img:hover {
  transform: scale(1.3);
}
b, strong{
  color: var(--bold-white);
}
main p,
main ul, main dl, main ol{
  font-size: 1.2rem;
  margin: 1rem 0 1rem;
}
main p{
  line-height: 1.4em;
/*   letter-spacing: 0.8px; */
}
p.description{
  padding: 0;
  margin: 0;
  margin-bottom: 5rem;
  color: var(--grey);
}
.title.show + article {
  display: block;
}
hr {
  margin-top: 2em;
}
article {
  display: flex;
  flex-direction: column;
/*   display: none; */
  transition: display 2s step-end;
}
details{
  width: 100%;
}
article :is(ul:not(.images), ol) li {
  margin: 0.5rem 5rem;
}
article dl dd{
  display: list-item;
}
article dl{
  padding-left: 1rem;
}
code {
  background-color: var(--dark-green);
  font-family: 'Courier New', Courier, monospace;
}
code div,
.big-code {
  background-color: var(--dark-green);
  padding: 1em;
  margin: 1rem;
}

code:has(div)+figure{ 
  padding-top: 1rem;
}

.images {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  list-style: none;
}
article :is(img, video) {
  max-width: 100%;
  min-width: 25%;
  max-height: 70vh;
}
video{
  max-width: 100%;
}

article>figure {
  text-align: center;
}
.images li {
  max-width: 40%;
}
figcaption {
  font-size: 1rem;
}
.media-games{
  max-width: 300px;
  width: 25vw;
  min-width: 100px;
}
@media screen and (max-width: 767px) {
  main {
    padding: 1rem 1rem;
  }
  article :is(ul:not(.images), ol) li {
  margin: 0.5rem 2rem;
}
}
@media screen and (min-width: 1440px){
  main {
  padding: 1rem 20rem;
}
}