html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5 {
  overflow-wrap: break-word;
}

button,
input,
textarea,
label {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

@font-face {
  font-family: 'gotham-black';
  src: url('/assets/fonts/gotham-black.woff2') format('woff2');
  font-display: swap;
}

body {
  font-family: 'gotham-black', Arial, sans-serif;
  margin: 0;
  min-height: 100svh;
  background-image: url('/assets/img/bg.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

header {
  background-color: #ffe5d9;
  margin-bottom: 15px;
  padding: 10px;
  text-align: center;
}

nav {
  background-color: #dbfbdb;
  margin-bottom: 15px;
  padding: 10px;
}

main {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100svh;
  overflow: hidden;
}

section {
  background-color: #c1d3fe;
  padding: 15px;
  margin-bottom: 15px;
}

article {
  background-color: #e0ffff;
  padding: 10px;
}

aside {
  background-color: #fffacd;
  padding: 20px;
}

footer {
  background-color: #fbd6d2;
  padding: 10px;
}

audio {
  display: none;
}

.wrapper {
  width: clamp(16rem, 90vw, 120rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.img-container {
  display: none;
  height: 100%;
  padding: 20px;
  position: relative;
}

@property --position-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -50%;
}

@property --velib-scale {
  syntax: '<number>';
  inherits: false;
  initial-value: 0.75;
}

@property --velib-rotate {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

form.img-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translate(var(--position-x), 0) rotate(var(--velib-rotate));
  transition: 0.5s ease;
  z-index: 1;
  animation: rotate 5s linear infinite;
}

form input[type='radio'] {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  visibility: hidden;
}

.velib {
  position: absolute;
  inset: 0;
}

#fart-btn {
  display: none;
  text-transform: uppercase;
  font-size: clamp(1.5625rem, 1.3933rem + 0.8462vw, 2.25rem);
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  padding: 10px;
  background-color: #fbd6d2;
  border: none;
  cursor: pointer;
  height: 10svh;
  width: 100%;
}

@media screen and (min-width: 768px) {
  #fart-btn {
    width: 30%;
  }
}

form.img-container:valid + #fart-btn {
  display: block;
}

form.img-container:valid {
  animation: move 5s linear infinite;
}

form.img-container:valid ~ .img-container {
  display: flex;
}

.img-container img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

form.img-container:valid img {
  transition: 0.5s ease;
  transform: scale(var(--velib-scale));
  animation: scale 5s linear infinite;
}

.container {
  height: 40%;
  display: flex;
  width: 100%;
  justify-content: space-between;
  position: relative;
}

@keyframes move {
  0% {
    --position-x: -50%;
  }
  25% {
    --position-x: 20%;
  }
  50% {
    --position-x: -50%;
  }
  75% {
    --position-x: -120%;
  }
  100% {
    --position-x: -50%;
  }
}

@keyframes scale {
  0% {
    --velib-scale: 0.75;
  }
  25% {
    --velib-scale: 0.5;
  }
  50% {
    --velib-scale: 0.75;
  }
  75% {
    --velib-scale: 0.5;
  }
  100% {
    --velib-scale: 0.75;
  }
}

@keyframes rotate {
  0% {
    --velib-rotate: 0deg;
  }
  100% {
    --velib-rotate: 360deg;
  }
}
