/* Reset default browser margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: 'DepixelHalbfett';
  src: url('../fonts/depixelhalbfett.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'DepixelHalbfett', monospace;
  text-align: center;
  padding: 0px;
  background: radial-gradient(circle at center, #253a5e 0%, #0c0d13 100%);
  background-attachment: fixed;
  color: #e0e0e0;
}

img.logo {
  width: 35%;
  margin: 20px 0;
  padding: 2px;
  -webkit-filter: drop-shadow(5px 5px 5px #222);
  filter: drop-shadow(5px 5px 5px #222);
}

img.gooseboxgameslogo {
  position: fixed;
  width: 12%;
  height: auto;
  left: 0px;
  bottom: 0px;
}

img.screenshot {
  width: 24%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: inline-block;
  margin: 1%;
  vertical-align: top;
  cursor: pointer;
  -webkit-filter: drop-shadow(5px 5px 5px #222);
  filter: drop-shadow(5px 5px 5px #222);
}

@keyframes slideFingerRight {
  0% { margin-left: 200px; }
  50% { margin-left: 240px; }
  100% { margin-left: 200px; }
}

@keyframes slideFingerLeft {
  0% { margin-left: -300px; }
  50% { margin-left: -340px; }
  100% { margin-left: -300px; }
}

/* Wrapper to anchor the finger positions relative to the video */
.youtube-wrap {
  position: relative;
  display: inline-block;
  margin: 10px 0 20px;
}

img.pointing-finger-right {
  display: inline-block;
  height: 70px;
  position: absolute;
  left: 100%;
  margin-left: 20px;
  top: 50%;
  transform: translateY(-50%) scaleX(-1);
  animation: slideFingerRightRelative 2s infinite;
}

img.pointing-finger-left {
  display: inline-block;
  height: 70px;
  position: absolute;
  right: 100%;
  margin-right: 20px;
  top: 50%;
  transform: translateY(-50%);
  animation: slideFingerLeftRelative 2s infinite;
}

@keyframes slideFingerRightRelative {
  0% { margin-left: 20px; }
  50% { margin-left: 40px; }
  100% { margin-left: 20px; }
}

@keyframes slideFingerLeftRelative {
  0% { margin-right: 20px; }
  50% { margin-right: 40px; }
  100% { margin-right: 20px; }
}

img.pointing-finger-down {
  display: none;
  width: 70px;
  padding-bottom: 15px;
}

/* YouTube embed */
.youtube-container {
  position: relative;
  width: 560px;
  max-width: 90vw;
  aspect-ratio: 16/9;
  border: 2px solid #aaa;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 5px 5px 20px rgba(0,0,0,0.5);
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

h2 {
  margin: 20px auto;
  font-size: 15px;
  max-width: 60%;
  color: #aaa;
  text-shadow: 5px 5px 5px #000000;
}

h3 {
  margin: 20px auto;
  max-width: 50%;
  color: #e0e0e0;
  text-shadow: 5px 5px 5px #000000;
}

p {
  margin: 20px auto;
  font-size: 14px;
  max-width: 40%;
  min-width: 30%;
  text-shadow: 2px 2px 2px #000000;
}

.btn {
  display: inline-block;
  margin: 4px;
  padding: 5px 10px;
  background-color: #1a1c28;
  border: 2px solid #aaa;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  color: #aaa;
  transition: background-color .3s, color .3s;
  font-size: 20px;
  font-family: 'DepixelHalbfett', monospace;
  cursor: pointer;
}

.btn:hover {
  -webkit-filter: drop-shadow(5px 5px 5px #222);
  filter: drop-shadow(5px 5px 5px #222);
  border: 2px solid #ffffff;
  color: #ffffff;
}

/* Contact section */
.contact-section {
  margin: 20px auto;
  max-width: 500px;
  width: 90%;
}

.contact-buttons {
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  background-color: #1a1c28;
  border: 2px solid #aaa;
  border-radius: 5px;
  color: #e0e0e0;
  font-family: 'DepixelHalbfett', monospace;
  font-size: 14px;
  padding: 8px 12px;
  width: 100%;
  resize: vertical;
  transition: border-color .3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #e0e0e0;
}

.form-feedback {
  margin-top: 10px;
  font-size: 13px;
  color: #aaa;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.overlay img {
  width: 40%;
  max-height: 90%;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #aaa;
  font-size: 24px;
  cursor: pointer;
}

nav {
  background-color: #1a1c28;
  padding: 10px 0;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 30px;
}

.nav-btn {
  display: inline-block;
  margin: 0 15px;
  padding: 10px 35px;
  text-decoration: none;
  text-align: center;
  color: #aaa;
  font-size: 18px;
  border-bottom: 2px solid transparent;
  transition: border-color .3s, color .3s;
}

.nav-btn:hover {
  border-bottom: 2px solid #e0e0e0;
  color: #e0e0e0;
}

/* Styles for the menu icon */
.menu-icon .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #e0e0e0;
}

.nav-links {
  display: none;
  width: 100%;
  text-align: center;
}

.menu-icon {
  display: block;
  cursor: pointer;
}

.active-nav .nav-links {
  display: block;
}

@media only screen and (max-width: 768px) {
  body {
    padding: 0px;
  }

  img.logo {
    width: 70%;
  }

  img.gooseboxgameslogo {
    position: fixed;
    width: 25%;
    height: auto;
    left: 0px;
    bottom: 0px;
  }

  img.screenshot {
    width: 70%;
    margin: 1% 2%;
  }

  .youtube-container {
    width: 90vw;
  }

  .overlay img {
    width: 90%;
    max-height: 90%;
  }

  h2 {
    max-width: 70%;
    font-size: 15px;
  }

  p {
    font-size: 12px;
    max-width: 80%;
  }

  .btn {
    margin: 10px;
    padding: 10px 20px;
    font-size: 18px;
  }

  .nav-btn {
    display: block;
    margin: 0px auto;
    font-size: 10px;
    width: 70%;
    text-align: center;
  }

  img.pointing-finger-right,
  img.pointing-finger-left {
    display: none;
  }

  img.pointing-finger-down {
    display: inline-block;
  }
}