:root {
   --width: 400px;
   --height: var(--width);
}

html {
  background-color: #092E20;
}

body {
  border-radius: 8px;
  box-shadow: black 0px 0px 2px;
  width: 80vw;
  background: #fff;
  margin: 20px auto;
  border: solid 1px black;
  font-family: Arial, sans-serif;
  padding: 30px;
}

.label {
  text-wrap: nowrap;
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.code-container {
  width: var(--width);
  height: var(--height);
  display: none;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* Align items vertically */
  justify-content: space-between; /* Distribute space between elements */
  gap: 1rem; /* Add spacing between items */
  padding: 1rem; /* Add padding around the header */
}

header h1 {
  text-align: center;
  font-size: 2rem;
  flex-basis: 100%; /* Ensure the title takes full width on smaller screens */
  margin: 0;
}

header h3 {
  text-align: center;
  flex-basis: 100%;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

header p {
  margin: 0.5rem 0;
  flex-basis: 100%;
}

#links {
  text-align: center;
}

header a {
  text-decoration: none;
  color: #007acc; /* Link color */
  font-weight: bold;
  margin: 0 0.5rem;
}

header a:hover {
  text-decoration: underline; /* Add underline on hover */
}

#buttons {
  text-align: center;
  width: 100%;
  /*! display: flex; */
}

button {
  height: 40px;
  width: 28%;
  margin: 10px;
  font-size: 16px;
}

div #card-table, cards-js {
  background-color: green;
  height: var(--height);
  width: var(--width);
  border: solid 6px brown;
  border-radius: 8px;
  box-shadow: #111 1px 1px 2px;
  flex-shrink: 0;
}

#console {
   width: 100% !important;
   background-color: #ccc;
   margin-top: 10px;
   overflow-y: scroll;
   max-height: 100px;
}

.visible {
  display: block;
}

/* Media Queries for Responsive Design */

/* Tablet Devices (768px and below) */
@media (max-width: 768px) {
  :root {
    --width: 300px;
  }

  h1 {
    font-size: 40px;
  }

  body {
    padding: 20px;
  }

  .container {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
  }

  .code-container {
    justify-content: center;
    height: unset;
  }

  button {
    font-size: 14px;
  }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
  :root {
    --width: 250px;
  }

  h1 {
    font-size: 28px;
  }

  h3 {
    font-size: 16px;
  }

  body {
    padding: 10px;
  }

  button {
    font-size: 12px;
  }

  .code-container {
    flex-direction: column;
    align-items: center;
    height: unset;
  }
}
