* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* NLW: Themes */
:root {
  --card-title-border-color: #746615;
  --card-color-primary: #f7dd43;
  --card-bg-color: #1d1c19;
  --text-color: #e1e1e6;
  --text-color-yellow: #f7dd43;
  --bg: url(./assets/bg-yellow.svg);
  --bg-color: #121214;
}

body.blue {
  --card-title-border-color: #338af3;
  --card-color-primary: #338af3;
  --card-bg-color: #202024;
  --bg: url(./assets/bg-blue.svg);
}

body.green {
  --card-title-border-color: #047c3f;
  --card-color-primary: #047c3f;
  --card-bg-color: #1a1f1b;
  --bg: url(./assets/bg-green.svg);
}

/* NLW: Body */
ul {
  list-style: none;
}

body {
  background: var(--bg-color) var(--bg) no-repeat top center/cover;
}

body * {
  font-family: 'Roboto', sans-serif;
}

#app {
  width: fit-content;
  margin: 52px auto;
}

/* NLW Header */
header {
  text-align: center;
  margin-bottom: 18px;
}

select {
  background-color: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--card-title-border-color);
  border-radius: 6px;
  outline: none;
  padding: 4px 12px;
  color: var(--text-color-yellow);
}

select option {
  color: var(--text-color);
}

h2 {
	color: var(--text-color);
	text-align: center;
	font-weight: 900;
	margin-top: 32px;
	padding-inline: 3px;
}

/* NLW: Main */
#cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.card {
  padding: 32px 23px;
  text-align: center;
  background: var(--card-bg-color);
  border-bottom: 2px solid var(--card-color-primary);
  border-radius: 6px;
}

.card h2 {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--card-title-border-color);
  border-radius: 6px;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 53px;
  color: var(--text-color-yellow);
}

.card h2 span {
  color: var(--text-color);
  font-size: 14px;
  text-transform: uppercase;
}

.card ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 270px;
}

.card ul li + li {
  padding-top: 24px;
  border-top: 1px solid #323237;
}

.card ul li strong {
  font-weight: 900;
  font-size: 36px;
  line-height: 125%;
  color: var(--text-color);
}

.card h2,
.card ul li strong,
.card ul li img {
  transition: transform 0.3s;
}

.card h2:hover,
.card ul li strong:hover,
.card ul li img:hover {
  transform: scale(1.1);
}

.card {
  opacity: 0;
  animation: appear 0.2s forwards;
}

/* 
.card:nth-child(2) {
  animation-delay: 0.4s;
}

.card:nth-child(3) {
  animation-delay: 0.6s;
} 
*/

@keyframes appear {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (min-width: 700px) {
  #cards {
    max-width: 670px;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
