:root {
  --head: "Inconsolata", monospace; /* header font */
  --text: "Input Serif", sans-serif;
}

div {
  margin-bottom: 1vh;
}

.app {
  position: relative;
  width: 80vw;
  max-width: 60vw;
  margin: 30px auto;
  padding: 30px;
  border-radius: 10px;
  border: 2px solid #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#rounds {
  font-weight: bold;
  font-size: 1.3rem;
}

#rounds #round-1 {
  color: #a24a4b;
}

.footer {
  font-family: "Redaction-20";
  position: relative; 
  bottom: 0; 
  left: 0;
  right: 0; 
  font-size: 0.85rem; 
  opacity: 70%; 
  text-align: center;
}

button {
  font-family: var(--text);    
  font-weight: bold;
}

:is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 6vh
}

.button {
  position: relative;
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  cursor: pointer;
}

/* Shadow layer */
.button .shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* Edge layer */
.button .edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(
    to left,
    hsl(210, 2%, 17%) 0%
    hsl(0, 0%, 65%) 8%,
    hsl(0, 0%, 62%) 92%,
    hsl(210, 2%, 17%) 100%
  );
}

/* Front layer */
.button .front {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1.25rem;
  color: black;
  background: hsla(0, 0%, 0%, 0.05);
  opacity: 0.7;
  border-radius: 8px;
  border-style: solid;
  border-width: 1px;
  transform: translateY(-2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1), opacity 0.5s ease-in-out;
}

/* Hover and active states */
.button:hover .shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.button:hover .front {
  opacity: 1;
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.button:active {
  transform: scale(0.95);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

/* Disable text selection */
.button .front span {
  user-select: none;
}

.devlog {
  font-family: var(--text);
  background: hsla(0, 0%, 0%, 0.05);
  color: hsl(210, 2%, 17%);
  border-radius: 8px;
  padding: 20px 28px;
  margin-bottom: 1.5vh;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid hsl(0, 0%, 80%);
  font-size: 1rem;
  line-height: 1.5;
  user-select: text;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.devlog:hover {
  background: hsla(0, 0%, 0%, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

  .app > div:first-child {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .app > div:first-child > div {
    flex: 1 1 250px; /* Minimum 250px, grows if space */
    min-width: 200px;
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
  }

  /* Make labels block level for easier wrapping */
  .app label {
    display: block;
    margin-bottom: 0.3rem;
  }

  /* Adjust button on small screens */
  @media (max-width: 400px) {
    #generateButton, #submit {
      width: 100%;
      transform: none !important;
    }
  }

  @media (max-width: 600px) {
  body, html {
    margin-left: 3vw;
    margin-right: 3vw;
  }
}

@media (max-width: 400px) {
  body, html {
    margin-left: 2vw;
    margin-right: 2vw;
  }
}

a {
  color: #66000a;
}