/* CSS Reset - Ensures cross-browser consistency in styling */
* {
  padding: 1px;
  box-sizing: border-box;
}

/* Global styles */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: black;
  background-color: #000000;
  background-image: url(images/background4.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  background-attachment: fixed;
}

html,
body {
  height: 100%;
}

h1 {
  font-size: 50px;
  margin: 250px;
}

h2,
h3,
h4,
h5,
h6 {
  margin: 2rem 0 1.5rem;
  line-height: 1.2;
  font-weight: bold;
  text-rendering: optimizeLegibility;
}

p {
  margin: 0 0 1.5rem;
  color: rgb(255, 255, 255);
  text-align: left;
}

/* Header styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #5bb8abce;
}

nav {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
}

nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 1.5rem;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: x-large;
}

nav a:hover {
  color: #f6f7f8;
}

/* Main styles */
main {
  max-width: 1000px;
  margin: 80px auto 0;
  padding: 1rem;
  background-color: rgba(
    0,
    0,
    0,
    0.5
  ); /* Change the 0.5 to adjust the opacity */
  color: white;
  padding: 20px;
}

/* Footer styles */
footer {
  align-content: center;
}
#name:hover,
#email:hover,
#message:hover {
  background-color: #afbbf0;
}

#submit:hover {
  background-color: rgb(128, 128, 151);
  color: white;
}

nav a:first-child:hover {
  color: rgb(96, 89, 185);
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 30px;
  }
}

.my-button {
  background: linear-gradient(45deg, #85eb88, #2e2cbe, #35bbe7);
  border: #2e2cbe;
  color: rgb(255, 255, 255);
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 25px;
  font-weight: 750;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 10px;
}

.cool-text {
  color: #7c69b1;
  text-shadow: 5px 2px 5px rgba(0, 0, 0, 0.5);
  margin-top: 250px;
  font-size: 45px;
}
