html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;       /* ensures it fills the screen */
}

body {
  background-size: cover;
  background-repeat: no-repeat;
  animation: slideshow 30s infinite;
}

.slideshow {
  position: fixed;
  top: 0;
  left: 0; 
  width: 100%;
  height: 100vh;
  z-index:-1;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: crossfade 36s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }
.slide:nth-child(4) { animation-delay: 12s; }
.slide:nth-child(5) { animation-delay: 16s; }
.slide:nth-child(6) { animation-delay: 20s; }
.slide:nth-child(7) { animation-delay: 24s; }
.slide:nth-child(8) { animation-delay: 28s; }
.slide:nth-child(9) { animation-delay: 32s; }


@keyframes crossfade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }   /* fade in */
  20%  { opacity: 1; }   /* stay visible */
  25%  { opacity: 0; }   /* fade out */
  100% { opacity: 0; }
}


h1,h2,h4 {
 
    font-family: Helvetica;
    font-weight: bold;
    color: white;
    text-align: center;
}

h1{
    padding-top: 200px;
    margin-bottom: 0;
}

.first {
    opacity: 1;
    transition: opacity 1.0s ease-in-out;
}
.first:hover{
    opacity:0;
}
.third {
    opacity: 1;
    transition: opacity 1.0s ease-in-out;
}
.third:hover {
    opacity:0;
}

h2{ 
    margin-top: 2px;
    margin-bottom:0;
    font-size:25px;
}

h4{
    margin-top: 100px;
    font-size:25px;
    margin-top:2px;
    margin-bottom:0;
}

.red {
    color:rgb(211, 1, 1);
    margin-left: 7px;
    margin-right: 7px;
    opacity: 1;
    transition: opacity 1.0s ease-in-out;
}

.red:hover {
    opacity:0;
}

.hero-line {
    color: white;
    font-family: Helvetica;
    font-weight: bold;
    font-size:25px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;   /* 👈 important */
    width: 100%;
}

.left {
    justify-self: end;
    margin-right: 10px;
}

.center {
    justify-self: center;
    margin-left: 0px;
}

.right {
    justify-self: start;
    margin-left: 10px;
}

ul {
    list-style-type: none; 
    margin: 0; 
    padding: 0; 
    display: flex;
    justify-content:center;
    gap:450px;
    overflow: hidden; 
    font-family: Helvetica;
    font-weight: bold; 
}


ul li a { 
    display: block; 
    color: white; 
    text-align: center; 
    text-decoration: none;
    padding: 20px; 
    transition: all 0.5s ease-in-out;
    animation-duration: 0.9s;
}

ul li a:hover {
  color: #ff0000;
  animation-name: pulse79;
  animation-iteration-count: infinite;
}

@keyframes pulse79{
    0% { transform: scale(1); }
    50% { transform: scale(1.07); }
    100% { transform: scale(1); }
}

@media screen and (max-width:600px){ /*mobile view*/
  ul{
    flex-direction: row;
    align-items:center;
    gap:10px;
    padding:10px 0;
  }
  ul li a{
    padding: 12px 20px;
    font-size:18px;
  }
}

button {
    background-color: rgb(211, 1, 1);
    border: none;
    display: block;
    margin: 0px auto 0; /* top, left/right, bottom */
    font-size: 15px;
    font-family: Helvetica;
    font-weight: bold;
    border-radius: 14px;
    width: 150px;
    height: 30px;
    cursor: pointer;
}

button:hover {
    animation: pulse79 0.8s ease-in-out infinite;
}

a {
  text-decoration: none;
  color: rgb(255, 255, 255);
  display: inline-block;       /* important for transform/animation */
  transition: transform 0.3s ease-in-out;
}

a:hover {
  animation: pulse79 0.8s ease-in-out infinite;
  transform-origin: center;
}


@media screen and (max-width:600px){
  .hero-line{
    grid-template-columns:1fr;
    text-align:center;
    gap:10px;
  }
  .left,.center,.right{
    justify-self:center;
    margin:0;
    font-size:20px;
  }

  button{
    width:90%;
    font-size:20px;
    height:40px;
  }

  a{
    font-size:20px;
    padding:5px 0;
    text-decoration: none;
  }

  .first, .third, .red{
    display: inline-block;
    margin-left:3px;
    margin-right:3px;
    font-size: 20px;
  }

  h1,h2,h4 {
    margin-top: 20px;
    margin-bottom:10px;
    text-align:center;
    font-size:20px;
  }
}

