body {
    background-image: url('../static/stars.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100%;
    margin: 0;
    padding-top: 3.75rem;
    color: #FFFFFF;
}

/*Navigation bar*/
nav {
    position: fixed;
    top: 0;
    left: 0;
    height: 65px;
    width: 100%;
    margin: 0;
    padding: 0rem 0;
    text-align: left;
    z-index: 1000;
    background-image: url('../static/stars.jpg');
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin: 1rem;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: clamp(20px, 2vw, 28px);
    padding: 0.625rem 0.9375rem;
    transition: background-color 0.3s, color 0.3s;
}

.nav-link:hover {
    background-color: #5271FF;
    color: black;
    border-radius: 10px;
}

nav img {
   float: left;
   height: 100%;
   max-height: 65px;
   width: auto;
   object-fit: cover;
}

/*Button*/
.button {
  display: inline-block;
  position: relative;
  background-color: #1007bb;
  border: none;
  border-radius: 10px;
  font-size: clamp(20px, 2vw, 28px);
  color: #FFFFFF;
  width: auto;
  padding: 10px;
  margin: 1rem 0 1rem 0;
  text-align: left;
  transition-duration: 0.4s;
  text-decoration: none;
  overflow: hidden;
}

.button:hover {
    background-color: #5271FF;
    color: #000000;
    cursor: pointer;
    }

.button:after {
  content: "";
  background: #5271FF;
  display: block;
  position: absolute;
  padding: 10px;
  margin: 0;
  opacity: 0;
  transition: 0.4s;
}

.button:active:after {
  padding: 0;
  margin: 0;
  opacity: 1;
  transition: 0s;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/*Text-alignment*/
.container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content:space-between;
    max-width: 90%;
    width: 100%;
    margin: auto;
}

.text {
    flex: 2;
    font-size: 1.5rem;
    min-width: 300px;
    max-width: 900px;
    text-align: left;
    position: relative;
    z-index: 2;
}

/*Rotating earth*/
.earth {
    animation: spin 10s linear infinite;
    transform-origin: center;
    display: block;
    position: absolute;
    right: 0;
    top: 1%;
    z-index: 1;
}

@keyframes spin {
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}

/*Input area*/
input[type="text"],
input[type="email"],
textarea {
    display: block;
    background-color: #1007bb;
}

textarea {
    display: block;
    width: 50%;
    height: 9.375rem;
    background-color: #1007bb;
}

/*Hover Input area*/
input:focus, textarea:focus {
    background-color: #5271FF;
}

/* Responsive Design: Stack Text & Image on Small Screens */
@media (max-width: 768px) {

    .nav-list {
        display: none;
        position: absolute;
        top: 60px;
        right: 1rem;
        flex-direction: column;
        background-color: #222;
        padding: 1rem;
        border-radius: 5px;
    }

    #menu-toggle:checked + .menu-icon + .nav-list {
        display: flex;
    }

    .menu-icon {
        display: block;
        margin: 1rem;
    }

    body{
    background-attachment: scroll;
    }

    .container {
        flex-direction: column; /* Stack items vertically */
        text-align: center; /* Center text */
    }
}
