body {
  height: 200vh;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.navbar-ref {
  color: #808080;
  font-size: 20px;
  padding: 10px 10px; 
  border-radius: 0px;
  opacity: 1;
  display: inline-flex ;
  z-index: 3;
  text-decoration: none;
}


#navbar-list {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  position: fixed;
}

#navbar-list li {
  margin: 0 10px; /* Adjust spacing between items as needed */
}

@keyframes moveNavbar {
  0% { transform: translateX(-10px); } 
  50% { transform: translateX(0); }
  100% { transform: translateX(10px); } 
}

@keyframes colorChange {
  0% { color: red; }
  50% { color: blue; }
  100% { color: green; }
}

.navbar-ul {
    background-color: white;
    background-image: url('../images/zermatts.jpg');
    background-size: cover; 
    background-position: center; 
    background-repeat: repeat; 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 65px;
    margin: 0 auto;
    color: rgb(87, 142, 190); 
    font-size: 45px; 
    z-index: 2;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    padding: 0 20px;
    animation-play-state: running;
    opacity: 1; 
}

.navbar-ul:hover {
  /* Pause animation when hovered */  
  animation-play-state: paused; 
 }

@keyframes scroll {
  0% {
      transform: translateX(1500px);
  }
  100% {
      transform: translateX(calc(-200px * 25)); /* Adjust according to image width and count */
  }
  }

.list-inline {
  display: flex;
  text-decoration: none;
  justify-content: space-around;
  margin:20px 0;
  width: 50%;
}

@media only screen and (max-width: 100%) {
  .list-inline {
    width: 100%;
	height: auto;
  }

  .navbar-ref {
    color: #11e923;
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    text-decoration: dotted;
  }
  .navbar-ref:hover {
    color: blue; 
}
}

a::selection,
span::selection {
  background: #ffb7b7; 
}

a::selection,
span::-moz-selection {
  background: #ffb7b7; 
}


@keyframes moveFromRightToLeft {
  0% {
    transform: translateX(100%); /* Start off-screen to the right */
  }
  100% {
    transform: translateX(-100%); /* Move to the left off-screen */
  }
}

/* Define the base style for all elements */
.home, .blog, .project, .slow, .flow, .plow, .show, .snow, .glow, .grow, .stow, .snow, .blow, .mlow, .crow, .map, .cv, .pubs, .cider, .experimental3, .experimental4,  .flip {
  animation: moveFromRightToLeft 25s linear infinite, colorChange 10s linear infinite;
  z-index: 5;
}

/* Specific delays to create a wave effect */
.home {
  animation-delay: 0.2s;
  font-family: 'Raleway', sans-serif;
}

.blog {
  animation-delay: 0.4s;
  font-family: 'Raleway', sans-serif;
}

.project {
  animation-delay: 0.6s;
  font-family: 'Raleway', sans-serif;
}

.slow {
  animation-delay: 0.8s;
  font-family: 'Raleway', sans-serif;
}

.flow {
  animation-delay: 2.5s;
  font-family: 'Raleway', sans-serif;
}

.glow {
  animation-delay: 1s;
  font-family: 'Raleway', sans-serif;
}

.plow {
  animation-delay: 1.2s;
  font-family: 'Raleway', sans-serif;
}

.snow {
  animation-delay: 1.4s;
  font-family: 'Raleway', sans-serif;
}

.grow {
  animation-delay: 1.6s;
  font-family: 'Raleway', sans-serif;
}

.blow {
  animation-delay: 1.8s;
  font-family: 'Raleway', sans-serif;
}

.mlow {
  animation-delay: 2s;
  font-family: 'Raleway', sans-serif;
}

.crow {
  animation-delay: 2s;
  font-family: 'Raleway', sans-serif;
}

.map {
  animation-delay: 1.4s;
  font-family: 'Raleway', sans-serif;
}

.cider {
  animation-delay: 0.8s;
  font-family: 'Raleway', sans-serif;
}

.experimental3 {
  animation-delay: 0.7s;
  font-family: 'Raleway', sans-serif;
}

.experimental4 {
  animation-delay: 0.8s;
  font-family: 'Raleway', sans-serif;
}

.flip {
  animation-delay: 1s;
  font-family: 'Raleway', sans-serif;
}

.cv {
  animation-delay: 1.2s;
  font-family: 'Raleway', sans-serif;
}

.publications {
  animation-delay: 1.3s;
  font-family: 'Raleway', sans-serif;
}


@keyframes floating {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes slot-machine {
  0% { transform: translateY(0); }

  50% { transform: translateY(-35%); }

  100% { transform: translateY(-70%); }
}

@media screen and (max-width: 700px) {
  body {
     padding: 170px 0 0 0;
     width: 100%
  }
}

a {
  color: inherit;
}

.menu-item,
.menu-open-button {
  background: #EEEEEE;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  margin-left: -40px;
  position: fixed;
  color: #FFFFFF;
  text-align: center;
  line-height: 80px;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-transition: -webkit-transform ease-out 200ms;
  transition: -webkit-transform ease-out 200ms;
  transition: transform ease-out 200ms;
  transition: transform ease-out 200ms, -webkit-transform ease-out 200ms;
}

.menu-open {
  display: none;
}

.lines {
  width: 25px;
  height: 3px;
  background: #596778;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -12.5px;
  margin-top: -1.5px;
  -webkit-transition: -webkit-transform 200ms;
  transition: -webkit-transform 200ms;
  transition: transform 200ms;
  transition: transform 200ms, -webkit-transform 200ms;
}

.line-1 {
  -webkit-transform: translate3d(0, -8px, 0);
  transform: translate3d(0, -8px, 0);
}

.line-2 {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.line-3 {
  -webkit-transform: translate3d(0, 8px, 0);
  transform: translate3d(0, 8px, 0);
}

.menu-open:checked + .menu-open-button .line-1 {
  -webkit-transform: translate3d(0, 0, 0) rotate(45deg);
  transform: translate3d(0, 0, 0) rotate(45deg);
}

.menu-open:checked + .menu-open-button .line-2 {
  -webkit-transform: translate3d(0, 0, 0) scale(0.1, 1);
  transform: translate3d(0, 0, 0) scale(0.1, 1);
}

.menu-open:checked + .menu-open-button .line-3 {
  -webkit-transform: translate3d(0, 0, 0) rotate(-45deg);
  transform: translate3d(0, 0, 0) rotate(-45deg);
}

.menu {
  position: absolute; 
  top: 180px; /* Distance from the top of the page */
  right: 100px;
  width: 40px; /* Set width */
  height: 40px; /* Set height */
  text-align: center;
  box-sizing: border-box;
  font-size: 26px;
  z-index: 50;
}

.menu-item {
  transition: all 0.1s ease 0s;
}

.menu-item:hover {
  background: #EEEEEE;
  color: #3290B1;
}

.menu-item:nth-child(3) {
  -webkit-transition-duration: 180ms;
  transition-duration: 180ms;
}

.menu-item:nth-child(4) {
  -webkit-transition-duration: 180ms;
  transition-duration: 180ms;
}

.menu-item:nth-child(5) {
  -webkit-transition-duration: 180ms;
  transition-duration: 180ms;
}

.menu-item:nth-child(6) {
  -webkit-transition-duration: 180ms;
  transition-duration: 180ms;
}

.menu-item:nth-child(7) {
  -webkit-transition-duration: 180ms;
  transition-duration: 180ms;
}

.menu-item:nth-child(8) {
  -webkit-transition-duration: 180ms;
  transition-duration: 180ms;
}

.menu-item:nth-child(9) {
  -webkit-transition-duration: 180ms;
  transition-duration: 180ms;
}

.menu-open-button {
  z-index: 20;
  -webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  -webkit-transition-duration: 400ms;
  transition-duration: 400ms;
  -webkit-transform: scale(1.1, 1.1) translate3d(0, 0, 0);
  transform: scale(1.1, 1.1) translate3d(0, 0, 0);
  cursor: pointer;
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.14);
}

.menu-open-button:hover {
  -webkit-transform: scale(1.2, 1.2) translate3d(0, 0, 0);
  transform: scale(1.2, 1.2) translate3d(0, 0, 0);
}

.menu-open:checked + .menu-open-button {
  -webkit-transition-timing-function: linear;
  transition-timing-function: linear;
  -webkit-transition-duration: 200ms;
  transition-duration: 200ms;
  -webkit-transform: scale(0.8, 0.8) translate3d(0, 0, 0);
  transform: scale(0.8, 0.8) translate3d(0, 0, 0);
}

.menu-open:checked ~ .menu-item {
  -webkit-transition-timing-function: cubic-bezier(0.935, 0, 0.34, 1.33);
  transition-timing-function: cubic-bezier(0.935, 0, 0.34, 1.33);
}

.menu-open:checked ~ .menu-item:nth-child(3) {
  transition-duration: 180ms;
  -webkit-transition-duration: 180ms;
  -webkit-transform: translate3d(0.08361px, -104.99997px, 0);
  transform: translate3d(0.08361px, -104.99997px, 0);
}

.menu-open:checked ~ .menu-item:nth-child(4) {
  transition-duration: 280ms;
  -webkit-transition-duration: 280ms;
  -webkit-transform: translate3d(90.9466px, -52.47586px, 0);
  transform: translate3d(90.9466px, -52.47586px, 0);
}

.menu-open:checked ~ .menu-item:nth-child(5) {
  transition-duration: 380ms;
  -webkit-transition-duration: 380ms;
  -webkit-transform: translate3d(90.9466px, 52.47586px, 0);
  transform: translate3d(90.9466px, 52.47586px, 0);
}

.menu-open:checked ~ .menu-item:nth-child(6) {
  transition-duration: 480ms;
  -webkit-transition-duration: 480ms;
  -webkit-transform: translate3d(0.08361px, 104.99997px, 0);
  transform: translate3d(0.08361px, 104.99997px, 0);
}

.menu-open:checked ~ .menu-item:nth-child(7) {
  transition-duration: 580ms;
  -webkit-transition-duration: 580ms;
  -webkit-transform: translate3d(-90.86291px, 52.62064px, 0);
  transform: translate3d(-90.86291px, 52.62064px, 0);
}

.menu-open:checked ~ .menu-item:nth-child(8) {
  transition-duration: 680ms;
  -webkit-transition-duration: 680ms;
  -webkit-transform: translate3d(-91.03006px, -52.33095px, 0);
  transform: translate3d(-91.03006px, -52.33095px, 0);
}

.menu-open:checked ~ .menu-item:nth-child(9) {
  transition-duration: 780ms;
  -webkit-transition-duration: 780ms;
  -webkit-transform: translate3d(-0.25084px, -104.9997px, 0);
  transform: translate3d(-0.25084px, -104.9997px, 0);
}

.blue {
  background-color: #102c54;
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.14);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.12);
}

.blue:hover {
  color: #669AE1;
  text-shadow: none;
}

.green {
  background-color: #70CC72;
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.14);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.12);
}

.green:hover {
  color: #70CC72;
  text-shadow: none;
}

.red {
  background-color: #FE4365;
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.14);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.12);
}

.red:hover {
  color: #FE4365;
  text-shadow: none;
}

.purple {
  background-color: #C49CDE;
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.14);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.12);
}

.purple:hover {
  color: #C49CDE;
  text-shadow: none;
}

.orange {
  background-color: #FC913A;
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.14);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.12);
}

.orange:hover {
  color: #FC913A;
  text-shadow: none;
}

.lightblue {
  background-color: #62C2E4;
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, 0.14);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.12);
}

.lightblue:hover {
  color: #62C2E4;
  text-shadow: none;
}

.credit {
  margin: 24px 20px 120px 0;
  text-align: right;
  color: #EEEEEE;
}

.credit a {
  padding: 8px 0;
  color: #C49CDE;
  text-decoration: none;
  transition: all 0.3s ease 0s;
}

.credit a:hover {
  text-decoration: underline;
}
