:root {
  --wine-red: #c7375f;
  --bright-red: #d42d2f;
  --dark-green: #344d2f;
  --light-green: #77a047;
  --gold: #fac57d;
  --snow: #f0f4f7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  text-shadow: 1px 1px 1px black;
}

/* Global styles */
body {
  position: relative;
  padding: 25px 8px;
  background-image: url('./images/winterLandscape.jpeg');
  background-repeat: no-repeat;
  min-height: 100vh;
}

h1 {
  text-align: center;
  color: var(--light-green);
}

.container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  margin-bottom: 25px;
}

/* List boxes */
.naughty-list,
.nice-list {
  flex: 1;
  color: var(--light-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

/* List box lists */
.naughty-list-box,
.nice-list-box {
  min-height: 250px;
  width: 100%;
  border-radius: 10px;
  padding: 15px;
}

.naughty-list-box {
  background-color: var(--bright-red);
}

.nice-list-box {
  background-color: var(--dark-green);
}

.list-item {
  margin: 10px;
  text-align: left;
  list-style-type: none;
}

#new-name {
  text-shadow: none;
}

input[type='checkbox'] {
  margin-left: 8px;
  width: 1rem;
  height: 1rem;
  border: none;
  outline: none;
  accent-color: red;
}

.btn {
  display: block;
  margin: 10px auto;
  width: 100%;
  max-width: 300px;
  padding: 10px;
  border: none;
  border-radius: 10px;
  outline: none;
  background-color: var(--gold);
  color: var(--snow);
  font-size: 22px;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.btn:hover {
  opacity: 0.8;
}

#submit-btn {
  background-color: #77a047;
}

form {
  width: 100%;
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

form input {
  padding: 10px;
  text-indent: 10px;
  font-size: 1rem;
}

form input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
}

.form-group {
  text-align: center;
  padding: 10px;
  user-select: none;
}

.list-item-btn {
  padding: 2px;
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
}

.list-item-btn:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

@media (max-width: 790px) {
  .container {
    flex-direction: column;
    margin-top: 25px;
  }
}
