
body {
  background-color: #202223;
  font-family: arial;
}

p {
  font-family: "lora", serif;
  color: #202223;
}

.light-switch {
  width: 7%;
  margin-left: 5%;
  margin-top: 5%;
}
.light-switch:hover {
  cursor: pointer;
}

.light-sign {
  width: 20%;
  padding-left: 6%;
}

body.light-mode {
  background-color: #F8F7EA;
}

/* Optional dark mode class to make it more explicit */
body.dark-mode {
  background-color: #202223;
}

.newspaper {
  width: 40%;
  margin-left: 50%;
}

.keep-scrolling {
  width: 30%;
}
.keep-container {
  padding-left: 10%;
  padding-top: 5%;
  display: inline;
}

.doors {
  display: block;
  margin-top: 15%;
  text-align: center;
  margin-bottom: 5%;
}

.paths {
  font-size: 2.25rem;
  font-weight: 400;
}

.order {
  font-size: 1.72rem;
}

.choose {
  font-size: 1.75rem;
}

.door-buttons {
  margin-top: 7%;
  margin-bottom: 7%;

  display: flex;
  justify-content: space-evenly;
}

.door-container {
  position: relative;
  height: 20rem;
  width: auto;
}

.door {
  height: 100%;
  object-fit: contain;
}

.doorimg {
  object-fit: contain;
  position: absolute;
  left: 0;
  top: 0;
  height: 22rem;
  opacity: 0;
}

.door-container:hover .doorimg {
  opacity: 1;
}

.projects-container {
  display: flex;
  justify-content: space-between;
  text-align: center;
  position: relative;
}

.projects-title {
  margin-top: 4%;
  text-align: center;
  margin-bottom: 5%;
}

.exit {
  width: 5%;
  display: inline-block;
  position: absolute;
  right: 10%;
  top: 16%;
  transform: translateY(-50%);
}
.exit:hover {
  top: 13%;
}

.coffee-grid {
  margin-top: 5%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 3rem;
  row-gap: 3rem;
  margin-bottom: 3%;
  margin-right: 5%;
  margin-left: 5%;
}

.coffee-card {
  text-align: center;
  padding-left: 10%;
  padding-right: 10%;
  background-color: #ffffff;
  padding-top: 5rem;
  padding-bottom: 3rem;
  border-radius: 10%;
}

.coffee-card:hover {
  box-shadow: 5px 5px 20px rgb(130, 130, 130);
}

.boulangerie {
  width: 60%;
}

.item-name {
  font-weight: bold;
  font-size: large;
  margin-bottom: 0;
}

.project {
  font-size: larger;
  margin: 2%;
}

.project-date {
  margin: 0;
}

.project-description {
  margin-top: 10%;
}

.aboutme_container {
  display: flex;
  justify-content: space-between;
  text-align: center;
  position: relative;
  margin-left: 25%;
  margin-right: 25%;
}

.aboutme {
  font-size: 1.4rem;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.hobbies {
  overflow: hidden;
  padding: 4rem 0;
  white-space: nowrap;
}

.hobbies-slide {
  display: inline-block;
  animation: 35s slide infinite linear;
  width: max-content;
}

.hobbies-slide img {
  height: 15rem;
  margin: 0 4rem;
}

.email {
  display: inline-block;
  position: absolute;
  left: 10%;
  top: 80%;
  width: 24%;
  transform: translateY(-50%);
}
.email:hover {
  top: 75%;
}

.linkedin {
  display: inline-block;
  position: absolute;
  right: 10%;
  top: 80%;
  width: 24%;
  transform: translateY(-50%);
}
.linkedin:hover {
  top: 75%;
}

.surprise {
  display: inline-block;
  position: absolute;
  right: 45%;
  top: 80%;
  width: 16%;
  transform: translateY(-50%);
}
.surprise:hover {
  top: 75%;
}

.wrapper {
  box-sizing: content-box;
  background-color: #F8F7EA;
  margin-left: 10%;
  margin-right: 0;
  height: 8rem;
  display: flex;
  overflow: hidden;
  font-size: 6rem;
}
.wrapper p {
  margin: 0;
}

.words {
  overflow: hidden;
  justify-content: center; /* Centers the words horizontally */
  overflow: hidden;
}

span {
  display: block;
  margin-left: 10%;
  color: #0047FF;
  font-family: "lora", serif;
  animation: spin_words 6s infinite;
}
@keyframes spin_words{
  10% {
    transform: translateY(-112%);
  }
  25% {
    transform: translateY(-100%);
  }
  35% {
    transform: translateY(-212%);
  }
  50% {
    transform: translateY(-200%);
  }
  60% {
    transform: translateY(-312%);
  }
  75% {
    transform: translateY(-300%);
  }
  85% {
    transform: translateY(-412%);
  }
  100% {
    transform: translateY(-400%);
  }
}

.song-card {
  text-align: center;
  padding-left: 10%;
  padding-right: 10%;
  padding-top: 1rem;
  padding-bottom: 3rem;
  border-radius: 10%;
}

.top5-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 3rem;
  row-gap: 3rem;
  margin-bottom: 3%;
  margin-right: 5%;
  margin-left: 5%;
}

.song:hover {
  padding-left: 1rem;
}