
header {
    position: fixed;
    top: 30px; /* Change to something like 20px if you want a small gap at the top */
    left: 50%;
    transform: translateX(-50%);

    width: 85%;
    max-width: 1000px;
    padding: 50px;
    box-sizing: border-box;

    /* Highly Recommended */
    z-index: 100;

    background-color: darkgray;
    color: white;
    padding: 20px;
    text-align: center;

    background: darkgrey;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid darkgrey;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: black;

}

body {
    background-color: lightblue;
    font-family: 'Times New Roman', Times, serif
}

@media (max-width: 500px) {
    /* --- FIX THE HEADER --- */
    header {  
        padding: 15px 10px; /* Smaller padding gives the text more room */
        width: 95%;
        white-space: nowrap; /* Forces the text and emojis to stay on one line */
    }

    /* Shrink the text inside the header so it fits on small screens */
    header h1 { /* Change 'h1' to 'h2' or 'p' if your text uses a different tag */
        font-size: 1.4rem; 
        margin: 0;
    }

    /* --- FIX THE OVERLAP --- */
    body {
        /* Increase this number to push everything down further */
        padding-top: 150px; 
    }

    /* If your light blue joke box is a separate container, push it down explicitly */
    .joke-container { /* Change this to the actual class name of your light blue box */
        margin-top: 60px; 
    }
}

.joke-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 85%;
  max-width: 1000px;
  padding: 50px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 30px;     

  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #000000;
}

#joke {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}


.joke-container button {
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  background-color: darkgray;
  color: black;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.joke-container button:hover {
  transform: scale(1.05);
}