/* Christmas color palette */
:root {
  --red: #c62828;
  --green: #2e7d32;
  --gold: #fbc02d;
  --white: #ffffff;
  --bg-dark: #0b2e1d;
  --bg-darker: #072114;
}

/* Reset */
* {
  font-family: "Helvetica";
}

/* Page background */
body {
  background: linear-gradient(135deg, #0b2e1d, #145a32);
  color: var(--white);
  min-height: 100vh;
}

/* Title */
h1 {
  text-align: center;

  font-size: 4rem;
  letter-spacing: 6px;
  margin-bottom: 2rem;
  color: var(--red);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 0, 0, 0.4);
}

h2 {
  text-align: center;
}

/* Button */
button {
  background: linear-gradient(135deg, var(--red), #ff5252);
  color: var(--white);
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 2rem;
  cursor: pointer;
  box-shadow:
    0 6px 0 #8e0000,
    0 10px 20px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;

  width: 100%;
  margin: 1rem auto;
}

/* Button hover */
button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--red), #ffaaaa);
  box-shadow:
    0 8px 0 #8e0000,
    0 14px 25px rgba(0, 0, 0, 0.35);
}

/* Button click */
button:active {
  transform: translateY(4px);
  box-shadow:
    0 2px 0 #8e0000,
    0 6px 10px rgba(0, 0, 0, 0.3);
}

form,
.section {
  min-width: 400px;
  margin: 1 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  margin-bottom: 2rem;
}

/* Labels */
.section label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  color: #fff;
  margin: 0 auto;
}

.important {
  font-weight: bold;
  color: var(--gold);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 0, 0, 0.4);
}

/* Labels */
form label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #fff;
}

/* Inputs & textarea */
form input,
form textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: #ffffff;
}

/* Textarea */
form textarea {
  resize: vertical;
  box-sizing: border-box;
}

/* Focus glow */
form input:focus,
form textarea:focus {
  box-shadow: 0 0 0 3px rgba(251, 192, 45, 0.6);
}

input {
  width: 100%;
  resize: none;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

textarea {
  width: 100%;
  height: 120px; /* fixed size */
  resize: none; /* disables resizing */
}

.layout {
  display: flex;
  max-width: 100rem;
  margin: 0 auto;
}

.content {
  width: 60%;
  margin: 0 auto;
}

.sidebar {
  width: 20%;
  margin: 0 auto;
}

.button-row {
  display: flex;
  gap: 5px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    /* arrow */
    linear-gradient(45deg, transparent 50%, white 50%),
    linear-gradient(135deg, white 50%, transparent 50%),
    /* button gradient */ linear-gradient(135deg, var(--red), #ff5252);

  background-position:
    calc(100% - 24px) 50%,
    calc(100% - 18px) 50%,
    center;

  background-size:
    6px 6px,
    6px 6px,
    100% 100%;

  background-repeat: no-repeat;

  color: var(--white);
  border: none;
  padding: 1rem 3rem 1rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 2rem;
  cursor: pointer;

  box-shadow:
    0 6px 0 #8e0000,
    0 10px 20px rgba(0, 0, 0, 0.3);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;

  width: 100%;
  margin: 1rem auto;
}

select:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--red), #ffaaaa);
  box-shadow:
    0 8px 0 #8e0000,
    0 14px 25px rgba(0, 0, 0, 0.35);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  background-color: var(--bg-dark);
}

table th,
table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

table tbody tr:nth-child(even) {
  background-color: var(--bg-darker);
}

.reset-style {
  all: unset;
}

.rule-adder {
  display: flex;
  gap: 5px;
}

.add-rule-button {
  width: auto;
}

@media (max-width: 1000px) {
  .content {
    width: 90%;
  }

  .add-rule-button {
    width: 100%;
  }

  .rule-adder {
    display: unset;
    width: 100%;
  }

  .button-row {
    flex-wrap: wrap;
  }

  .button-row button {
    width: auto;
  }

  form,
  .section {
    backdrop-filter: none;
    min-width: 0;
  }
}
