body {
  margin: 0;
  overflow: hidden;
  font-family: "Space Mono", monospace;
}

nav ul {
  position: relative;
}

nav ul li#information {
  position: relative;
  cursor: pointer;
  text-decoration: underline;
}

#page-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-color: #ffffff;
  position: relative;
  z-index: 1;
  transition: all 1s ease-in-out, opacity 0.5s ease-in-out,
    transform 0.5s ease-in-out;
  transform-origin: top right;
}

#page-content.animate {
  width: 35vw;
  height: 35vh;
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 1;
}

#page-content.animate-out {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  transform: none; /* Ensure no additional transforms */
}

#page-content.animate nav #information {
  display: none;
}

@keyframes animate-out {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

#background-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: auto;
  z-index: -1;
}

header {
  width: 100%;
  background-color: transparent;
  padding: 1em;
  margin-bottom: 1em;
  text-align: left;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 1em;
}

nav ul li {
  display: inline;
  font-size: 1.5em;
  cursor: pointer;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.marquee {
  --gap: 1rem;
  position: relative;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
}

.marquee__content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 55%;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

.marquee__content {
  animation: scroll 40s linear infinite;
}

.marquee__content > * {
  font-size: 15em;
  font-weight: bold;
  font-family: Arial, sans-serif;
  list-style-type: none;
}

#page-content {
  overflow: hidden;
}

.newsletter-signup {
  position: fixed; /* Fix position */
  right: 20px; /* Position to the right */
  bottom: 20px; /* Position to the bottom */
  background: #000000; /* Add a slight background */
  padding: 20px;
  flex-direction: column;
  min-width: 400px;
  width: 25%;
  z-index: 1000;
  display: flex;
  align-items: center;
  text-align: left;
}

.newsletter-signup .text-container {
  margin-right: 0;
  margin-bottom: 10px;
  text-align: center;
}

.newsletter-signup p {
  margin: 5px 0;
  color: white;
}

.newsletter-signup form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  border-bottom: none; /* Remove bottom border for the form */
}

.newsletter-signup input[type="email"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ffffff;
  color: black;
  background-color: black;
  font-size: 16px;
  outline: none;
  padding: 5px;
}

.newsletter-signup button {
  padding: 5px;
  margin-top: 10px;
  font-size: 16px;
  border: 1px solid #ffffff; /* Add border to input */
  background-color: black;
  color: #fff;
  cursor: pointer;
  width: 30%;
  right: 0;
  align-self: flex-end; /* Align the button to the right */
}

.newsletter-signup button:hover {
  background-color: #333;
}

#background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
  background-color: black;
}

.columns {
  display: flex;
  flex-direction: row;
  color: white;
  width: 50%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

#background .column p {
  font-size: 0.9em;
}

.column {
  margin: 20px;
}

.lorem {
  flex: 1;
  max-width: 60%;
  order: -1; /* Move this before links in the full web version */
}

.links {
  flex: 1;
  max-width: 40%;
}

.links ul {
  list-style: none;
  padding: 0;
}

.links ul li {
  margin: 10px 0;
}

.links ul li a {
  text-decoration: underline;
  color: white; /* Ensure the text color remains white */
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  #background {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  #background-image {
    top: 45vh;
  }

  #page-content.animate {
    width: 20vw;
    height: 20vh;
  }

  .marquee__content > * {
    font-size: 10em;
    padding-bottom: 5vh;
  }

  #page-content.animate nav #information,
  #page-content.animate .newsletter-signup,
  #page-content.animate .newsletter-signup .text-container #info-text {
    display: none;
  }

  #info-text {
    flex-direction: column;
    color: #000000;
    font-size: 1.25em;
    width: 90vw;
    height: 100%;
    padding: 20px;
    text-align: center;
    margin: 0 auto; /* Center the <p> element within its parent */
  }

  .columns {
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
  }

  .links {
    max-width: 100%;
    font-size: 1.25em;
  }

  .lorem {
    max-width: 100%;
    font-size: 1em;
    order: initial; /* Ensure order is normal in mobile view */
  }

  #header-news {
    font-size: 2em;
  }

  .newsletter-signup {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    position: static; /* Override the fixed position */
    background: transparent; /* Remove background */
    box-shadow: none; /* Remove the shadow */
    border-radius: 0; /* Remove the border-radius */
  }

  .newsletter-signup .text-container {
    margin-right: 0;
    margin-bottom: 10px;
    text-align: center;
  }

  .newsletter-signup form {
    display: flex;
    flex-direction: row;
    width: 80vw;
    justify-content: center;
    border-bottom: 1.5px solid #000; /* Add bottom border to the form */
  }

  .newsletter-signup input[type="email"] {
    width: 85%;
    border: none;
    background-color: #ffffff;
    box-sizing: border-box; /* Ensure padding is included in width */
    outline: none;
    font-family: "Space Mono", monospace;
  }

  .newsletter-signup button {
    margin: 0;
    background-color: #ffffff;
    color: black;
    border: none;
    font-family: "Space Mono", monospace;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    width: auto; /* Restore original button width */
  }
}

@media (max-width: 480px) {
  /* JAG TROR FAN DET ÄR DENNA SOM BITER PÅ TELEFON ALLTSÅ, TESTA IMON MED TYP NÅGON P TAG 
FÖR ATT SE IFALL DENNA KAN JUSTERA DET RÄTT ÄÄÄÄTTTTTNNNGGGLLIIIIGGGENNNN...

TÄNK OCKSÅ PÅ ATTT FLYTTA UPP BILD OCH ALLT PÅ FÖRSTA SIDAN AV TELEFON...
*/

  #background-image {
    top: 45vh;
  }

  #page-content.animate {
    width: 20vw;
    height: 20vh;
  }

  .marquee__content > * {
    font-size: 10em;
    padding-bottom: 5vh;
  }

  #page-content.animate nav #information,
  #page-content.animate .newsletter-signup,
  #page-content.animate .newsletter-signup .text-container #info-text {
    display: none;
  }

  .links {
    max-width: 100%;
    font-size: 1em;
  }

  .lorem {
    max-width: 100%;
    font-size: 0.8em;
    order: initial; /* Ensure order is normal in mobile view */
  }

  #header-news {
    font-size: 1em;
  }
}

@media (max-width: 320px) {
  #background-image {
    top: 40vh;
  }

  #page-content.animate {
    width: 20vw;
    height: 20vh;
  }

  .marquee__content > * {
    font-size: 10em;
    padding-bottom: 5vh;
  }

  .lorem {
    max-width: 100%;
    font-size: 0.6em;
    order: initial; /* Ensure order is normal in mobile view */
  }

  #page-content.animate nav #information,
  #page-content.animate .newsletter-signup,
  #page-content.animate .newsletter-signup .text-container #info-text {
    display: none;
  }
}