@import url('https://fonts.googleapis.com/css?family=Syncopate:400,700');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo+Play:wght@200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
  font-family: 'Syncopate', sans-serif;
  margin: 0;
  overflow-x: hidden;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background-color: black;
}
header {
  width: 100%;
  height: fit-content;
  padding: 15px;
  background-color: #0f0f0fda;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.title {
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: bold;
  text-shadow: -3px 0 hsla(201, 17%, 66%, 0.25),
               0 4px hsla(198, 18%, 61%, 0.5),
               4px 0 hsla(200, 10%, 50%, 0.25),
               0 -3px hsla(212, 44%, 51%, 0.5);
  color: hsla(0, 0%, 0%, 0.9);
  margin-top: 20px;
}

.sub-title {
  color: hsla(0, 0%, 80%, 0.5);
  font-size: clamp(1rem, 2vw, 2rem);
  font-family:"Cairo Play", sans-serif;
}

#apod-date{
  font-size: 19px;
  font-family: VT323;
}
#apod-title{
  font-family: "Cairo Play", sans-serif;
  font-size: 25px;
  font-weight: 700;
  text-align: justify;
}
.open-modal-btn {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.5;
  color: rgb(233, 236, 236);
  font-family: VT323;
  border-radius: 8px;
  background-color: #2a323b5b;
  
}
.open-modal-btn:hover{
  opacity:0.8;
  background-color: #99badd46;
}

.content {
  max-width: 80%;
  margin-top: 30px;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border: 1px solid hsla(204, 17%, 94%, 0.5);
  border-radius: 8px;
}

.description {
  margin-top: 20px;
  font-family:'Share Tech Mono', monospace;
  text-align: justify;
 
}

svg.star-background {
  position: fixed;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  min-height: 100%;
  min-width: 100%;
}

 
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 10;

}

.modal-content {
  background-color: #3e43447a;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  color: white;
  text-align: center;
}
  
.modal-content input {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  opacity: 0.8;
  background-color: #dae9ecd8;

}

.modal-content button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #c0bdbd;
  color: #2b3536e8;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.modal-content button:hover{
  background-color: #8b9b99c4;}
  .modal-content .profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}
  .modal-content .profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    animation: sway 5s infinite;
    transform-origin: 50% 100% 0;
}
  @keyframes sway {
      0%, 100%{ transform: rotate(2deg);}
      50%{ transform: rotate(9deg); }
  }
  .modal-content .welh3 {
    margin: 10px 0;
    font-size: 1.5rem;
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: -3px 0 hsla(201, 17%, 66%, 0.25),
                 0 4px hsla(198, 18%, 61%, 0.5),
                 4px 0 hsla(200, 10%, 50%, 0.25),
                 0 -3px hsla(212, 44%, 51%, 0.5);
    color: hsla(0, 14%, 93%, 0.9);
    margin-top: 20px;
    
}
  
  .modal-content p {
    font-size: 1rem;
    font-family: "Cairo Play", sans-serif;
}

  .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}
model-container {
  position: absolute;
  top: 30%;
  left: 50%;

  display: flex;
  gap: 50px;
  z-index: 1;
}

model-viewer.floating-astronaut {
  height: 500px;
  animation: float-astronaut 20s ease-in-out infinite;
  opacity: 0.5;
}
model-viewer.floating-alien {
  height: 500px;
  animation: float-alien 30s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes float-astronaut {
  0%, 100% { transform: translateX(120px); }
  50% { transform: translateY(-300px); }
}
@keyframes float-alien{
  0%, 100% { transform: translateY(-900px) translateX(200px); }
  75% {transform: translateY(200px);}
  50% { transform: translateX(-100px); }
}
.frame {
	padding: 3rem 5vw;
	text-align: center;
	position: relative;
	z-index: 1000;
	line-height: 1;
  font-family: 'Share Tech Mono', monospace;
}