
.topnav {
  display: flex;
  justify-content: center;
  background-color: hsl(228, 5%, 15%);
  overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
  background-color: #04AA6D;
  color: white;
}

.search-wrapper {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  align-items: center;
  font-size: xx-large;
  margin:45px;
}

input {
  font-size: 1rem;
  block-size: 2.5em;
}

h1{
  display: grid;
  align-items: center;
  place-items: center;
}

.user-cards {
  display: grid;
  gap: .25rem;
  margin-top: 1rem;
  align-items: center;
  place-items: center;
}

.card {
  border: 1px solid black;
  padding: .5rem;
  align-items: center;
}

.card > .header {
  margin-bottom: .25rem;
  color: chocolate;
  align-items: center;
  text-align: center;
  font-size:30px;
}

.card > .body {
  font-size: 50px;
  text-decoration: underline;
  font-weight: bold;
  color: #f70a0a;
  align-items: center;
  z-index: 2;
  float: none;
  text-align: center;
  position: absolute;
  margin: 152px;
  transform: rotate(345deg);
}

.messagebox{
  text-align: center;
  font-size: 20px;
  color: yellow;
  font-weight: bold;
}

.card > #myIframe{
  align-items: center;
  z-index: 1;
}

.hide {
  display: none;
}

/* Light theme (default) colors */
:root {
  --background-color: #ffffff;
  --text-color: #222222;
}

/* Dark theme colors for users who prefer it */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: hsl(228, 5%, 15%); /* A dark gray, not pure black */
    --text-color: hsl(228, 5%, 80%); /* An off-white, not pure white */
    color-scheme: dark; /* Ensures built-in UI elements (inputs, etc) also follow dark mode */
  }
}

/* Apply the variables */
body {
  background-color: var(--background-color);
  color: var(--text-color);
  align-items: center;
}




@media only screen and (max-width: 600px) {
  .card > #myIframe{
  align-items: center;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9; /* Maintains the 16:9 ratio */
}

body{
   margin: auto;
}

h1{
  margin: auto;
  width: 100%;
}

}