:root {
  --animation-duration: 4s;
  --animation-delay: 2s;
  --animation-slide-duration: 12s;
  --transition-duration: 0.3s;
  --box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  --box-width-height: 60px;
  --animation-transition-background-color: darkgoldenrod;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
  background-color: #333;
  animation-name: backgroundCarousel;
  animation-duration: var(--animation-slide-duration);
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: ease-in-out;
  animation-delay: var(--animation-delay);
  transition: background-color var(--animation-transition-background-color);
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove the gap under the image */
}

.heading {
  margin: 0;
  padding: 20px;
  font-size: 1.5em;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

.heading-letter {
  font-size: 1.5em;
  margin: 0 0.1em;
  display: inline-block;
  transition: transform var(--transition-duration) ease;
}

.heading-letter:hover {
  animation-name: offlineAnimation;
  animation-duration: 7s;
  animation-iteration-count: infinite;
  border-radius: 35%;
  transform: rotate(360deg);
  box-shadow: var(--box-shadow);
  width: var(--box-width-height);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);

}

.heading-animation {
  width: auto;
  height: auto;
  margin: 5% auto;
  position: relative;
  align-content: center;
  justify-content: center;
  text-align: center;
  display: flex;
}
.heading-animation:hover {
  border: 3% solid;
  border-radius: 28%;
}

@keyframes backgroundCarousel {
  0% { background-image: url('./images/bg1.jpg');}
  33% { background-image: url('./images/bg2.jpg');}
  66% { background-image: url('./images/bg3.png');}
  100% { background-image: url('./images/bg1.jpg');}
}
@keyframes onlineAnimation {
  0% {
    background-color: blueviolet;
    transform: scale(0);
  }
  100% {
    background-color: lawngreen;
    transform: scale(1.3);
  }
}

@keyframes offlineAnimation {
  0% {
    background-color: blueviolet;
  }
  25% {
    background-color: lightseagreen;
  }
  50% {
    background-color: darkblue;
  }
  75% {
    background-color: green;
  }
  100% {
    background-color: darkviolet;
  }
}

.main {
  width: calc(100% - 40px);
  padding: 20px;
  background: #fefefe;
  color: #333;
  box-shadow: var(--box-shadow);
  border-radius: 8px;
}

main:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  padding: 20px;
  border: 1px solid gray;
  border-radius: 5px;
}

footer {
  padding: 10px 0;
  text-align: center;
  font-size: 0.75em;
  position: stiky; /* Changed from fixed to sticky */
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Added background color */
}

/* Added styles for a generic link within the footer */
footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

/* Added hover effect for a link within the footer */
footer a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}
ul:hover {
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}

li {
  box-shadow: var(--box-shadow);
  padding: 5px 10px;
  border-radius: 5px;
  transition: transform var(--transition-duration);
}

li:hover {
  transform: scale(1.4);
  margin: 15px auto;
  border: 3% solid;
  border-radius: 5%;
  z-index: 1;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
}
a {
  text-decoration: none;
  color: inherit;
}

button {
  background: #007aff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background-color: #005ecb;
}

button:hover {
  background-color: #005ecb;
  transition: background-color 0.4s ease;
}
button:active {
  transform: scale(1.1);
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

button:focus {
  outline: none;
  box-shadow: 0px 0px 5px 5px #f5f5f5;
}

#actionButton {
  background-color: #4CAF50;
}

#actionButton:hover {
  background-color: darkblue;
}

input[type="email"] {
  font-family: inherit;
  width: 300px;
  height: 35px;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 16px;
  margin: 10px 0;
}