/* Style the video: 100% width and height to cover the entire window */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  line-height: 1;
  font-family: "Times New Roman";
  box-sizing: border-box;
}

html {
  min-height: 100dvh;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  background-color: #0c0019;
  background-image: url(../img/square.jpg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

header {
  padding: 1rem;
  opacity: 1;
  transition: opacity 1s;
}

main {
  display: block;
  flex: 1 0 auto;
  min-width: 100vw;
}

footer {
  flex-shrink: 0;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  opacity: 1;
  transition: opacity 1s;
  color: #ccc;
}

.legal menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem
}

.legal button {
  color: #ccc;
  transition: color .5s;
  text-decoration: none;
  background-color: transparent;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
}

.legal button:hover {
  color: #fff;
}

#bgVideo {
  display: none;
  /* position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1/1; */
  object-fit: cover;
  width: 100vw;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
}

.playing #bgVideo {
  display: block;
}

.playing #audio {
  opacity: 1;
  pointer-events: all;
}

.playing #audio:hover {
  color: #fff;
}

.playing header,
.playing footer,
.playing #legal,
.playing #replay {
  opacity: 0;
  pointer-events: none;
}

.unmuted #audio {
  opacity: 0;
  pointer-events: none;
}

#replay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 1 ;
  background-color: transparent;
  border: 2px solid currentColor;
  color: #ccc;
  font-size: 1rem;
  padding: .5rem 1rem;
  border-radius: 2rem;
  margin: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  transition: color .5s, opacity 1s;
}

#replay:hover {
  color: #fff
}

#replay svg {
  fill: currentColor;
  height: 1em;
  line-height: 1;
  width: auto;
}

#audio {
  transition: opacity 1s;
  background-color: transparent;
  border: 2px solid currentColor;
  border-radius: 2rem;
  font-size: 1rem;
  line-height: 1;
  color: #ccc;
  width: 3rem;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

#audio svg {
  fill: currentColor;
  height: 1em;
  line-height: 1;
}

.logo {
  color: #ccc;
}

.logo svg {
  fill: currentColor;
  height: 2.5rem;
  opacity: .8;
  transition: color .5s;
}

.logo:hover svg {
  color: #fff;
}

#legal {
  position: absolute;
  align-self: center;
  max-width: 600px;
  width: 100%;
}

#legal article {
  background-color: #0c0019;
  border: 1px solid #ccc;
  padding: 1rem;
}

#imprint,
#privacy {
  overflow: hidden;
  color: #ccc;
  top: 50%;
  bottom: 0;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  max-width: 600px;
  width: 100%;
  background-color: rgba(12, 0, 25, .5);
  backdrop-filter: blur(8px);
  border: 1px solid #333;
  box-shadow: 0 8px 16px #0c0019;
}

article::before,
article::after {
  content: "";
  height: 2rem;
  width: 100%;
  position: absolute;
}

article::before {
  top: 0;
  background-image: linear-gradient(to bottom, #0c0019, transparent);
}

article::after {
  bottom: 0;
  background-image: linear-gradient(to top, #0c0019, transparent);
}

.wrapper {
  overflow: scroll;
  padding: 2rem 1rem;
  max-height: calc(90dvh - 4rem);
}

h1,
h2 {
  font-weight: normal;
  margin-bottom: .5em;
}

p {
  line-height: 1.3;
  margin-bottom: 1em;
}

#privacy ul {
  list-style: "- ";
  padding-left: .5rem;
  margin-bottom: 1em;
}

#privacy li {
  margin-bottom: .5em;
  line-height: 1.3;
}

#privacy a {
  color: #ccc;
}

#privacy a:hover {
  color: #fff;
}

#privacy .close,
#imprint .close {
  background-color: transparent;
  border: 0;
  color: #993573;
  text-decoration: none;
  position: absolute;
  top: 0;
  right: .5rem;
  bottom: auto;
  left: auto;
  font-size: 2.5rem;
  cursor: pointer;
  transition: color .5s;
}

#privacy .close:hover,
#imprint .close:hover {
  color: #fc009c;
}

@media screen and (max-width: 450px) {
  footer {
    flex-direction: column-reverse;
    gap: 1rem;
    align-items: center;
  }
  #privacy,
  #imprint {
    width: calc(100% - 2rem);
    box-shadow: none;
  }
}