@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

body {
    background-color: #05080d;
    background-image:
        linear-gradient(rgba(0, 255, 200, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 200, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    color: #d0f5ec;
    text-align: center;
    font-family: 'Share Tech Mono', monospace;
    margin: 0;
    padding: 0;
}

h1 {
    color: #00ffc8;
    margin-top: 30px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 255, 200, 0.6);
}

.container {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: flex-start;
    padding: 20px;
    flex-wrap: wrap;
}

.main-content {
    background: rgba(10, 20, 25, 0.6);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 8px;
    padding: 20px;
    max-width: 650px;
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.08);
}

#apod-image {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 200, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.25);
    margin-top: 10px;
}

#apod-description {
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.7;
    padding: 0 10px;
    color: #a8d8cc;
    font-size: 0.95rem;
    text-align: left;
}

.sidebar {
    background: rgba(10, 20, 25, 0.6);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 8px;
    padding: 20px;
    min-width: 280px;
    text-align: left;
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.08);
}

.sidebar h2 {
    color: #00ffc8;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 255, 200, 0.3);
    padding-bottom: 10px;
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-top: 15px;
}

#calendar button {
    background-color: transparent;
    color: #a8d8cc;
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 4px;
    padding: 8px 0;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    transition: all 0.2s ease;
}

#calendar button:hover {
    background-color: rgba(0, 255, 200, 0.15);
    border-color: #00ffc8;
    color: #00ffc8;
}

#calendar button.selected {
    background-color: #00ffc8;
    border-color: #00ffc8;
    color: #05080d;
    font-weight: bold;
}
.loader {
  width: 64px;
  height: 64px;
  position: relative;
  background: #FFF;
  border-radius: 4px;
  overflow: hidden;
}
.loader:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  transform: rotate(45deg) translate(30%, 40%);
  background: #ff9371;
  box-shadow: 32px -34px 0 5px #ff3d00;
  animation: slide 2s infinite ease-in-out alternate;
}
.loader:after {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff3d00;
  transform: rotate(0deg);
  transform-origin: 35px 145px;
  animation: rotate 2s infinite ease-in-out;
}
@keyframes slide {
  0%, 100% { bottom: -35px }
  25%, 75% { bottom: -2px }
  20%, 80% { bottom: 2px }
}
@keyframes rotate {
  0% { transform: rotate(-15deg) }
  25%, 75% { transform: rotate(0deg) }
  100% { transform: rotate(25deg) }
}

#loader {
    display: none;
    margin: 20px auto;
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .main-content {
        max-width: 95%;
    }

    .sidebar {
        width: 90%;
        min-width: unset;
    }

    h1 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    #calendar {
        grid-template-columns: repeat(5, 1fr);
    }
}