@font-face {
  font-family: Loker;
  src: url(../fonts/LOKER.ttf) format("truetype");
}

*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  background-color: #1e1e1c;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  padding-bottom: 81px;
}

section {
  padding: 40px 0;
}

.page-content {
  min-height: 58vh;
  max-width: 95%;
  margin: auto;
}

.title {
  text-align: center;
}

section .title {
  margin-bottom: 2rem;
}

.corrections .title {
  margin-bottom: 2rem;
}

.title.medium h2 {
  color: #d18d52;
}

.title.hard h2 {
  color: #e05851;
}

.header-container {
  border-bottom: solid 1px rgba(255, 255, 255, .3);
  margin-bottom: 50px;
}

.header { 
  width: 50vw;
  margin: 0 auto;
  padding: 15px 0;
}

.footer {
  bottom: 81px;
  margin-top: 50px;
  padding: 5px 0;
  text-align: center;
  border-top: solid 1px #fff;
  font-family: 'Poppins', sans-serif;
}

.pre {
  margin-bottom: 40px;
  padding: 10px;
  background-color: #000;
}

.code {
  white-space: pre-wrap;
}

.code.easy .tag {
  color: #e05851;
}

.code.easy .attr {
  color: #d18d52;
}

.code.easy .value {
  color: #67b779;
}

.code.easy .answer {
  color: #525bd1;
}

.code.medium .answer {
  color: #d18d52;
}

.code.hard .answer {
  color: #e05851;
}

.explanations-title {
  text-align: center;
  margin-bottom: 20px;
}

.text-bold {
  font-weight: 600;
}

.explanations {
  padding-left: 20px;
}

.nav {
  background-color: #fff;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

.nav .nav-items {
  list-style-type: none;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.nav .nav-items .nav-item {
  padding: 7px 0 5px;
  width: 30%;
  transition: .3s ease-in-out;
}

.nav .nav-items .nav-item:hover {
  background-color: #e2e2e2;
  transition: .3s ease-in-out;
}

.nav .nav-items .nav-item.active .nav-link {
  color: #e05851;
}

.nav .nav-items .nav-item.active .nav-link .icon {
  fill: #e05851;
  stroke: #e05851;
}

.nav .nav-items .nav-item .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #1e1e1c;
  text-decoration: none;
  font-weight: 400;
}

.nav .nav-items .nav-item .nav-link .icon {
  fill: #1e1e1c;
  stroke: #1e1e1c;
  height: 40px;
}

.rules .title {
  margin-bottom: 20px;
}

.rules .second-title {
  font-size: 1.1rem;
}

.rules p {
  margin-bottom: 20px;
}

.rules .penality-cards .list {
  list-style-type: none;
  padding: 0;
}

.rules .penality-cards .list .icon {
  width: 100px;
  height: 50px;
  object-fit: contain;
  margin-right: 20px;
}

.rules .penality-cards .list li {
  display: flex;
  margin-bottom: 20px;
}

.rules .list-no-padding {
  padding-left: 20px;
}

.rules .list-no-padding ul {
  padding-left: 20px;
}

.rules .rules-intro {
  text-align: center;
}

.rules {
  text-align: justify;
}

.rules ul li {
  margin-bottom: 15px;
}

.cta .btns-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.corrections .btns-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 3px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  font-weight: 600;
  transition: .2s ease-in-out;
}

.btn-info {
  text-align: center;
  font-size: .9rem;
  font-style: italic;
  margin: 0 !important;
}

.btn.disabled {
  cursor: not-allowed;
  pointer-events: none;
}

.btn:hover {
  transition: .2s ease-in-out;
}

.btn-primary {
  color: #1e1e1c;
  background-color: #e05851;
}

.btn.disabled {
  filter: brightness(.5);
}

.btn-primary:hover:not(.disabled) {
  box-shadow: 0px 0px 9px 2px rgb(156 156 156 / 50%);
  color: #e05851;
  background-color: #1e1e1c;
}

.btn-secondary {
  box-shadow: 0px 0px 9px 2px rgb(156 156 156 / 50%);
  color: #e05851;
  background-color: #1e1e1c;
}

.btn-secondary:hover {
  color: #1e1e1c;
  background-color: #e05851;
}

.home .rules .title {
  margin-top: 70px;
}

@media screen and (min-width:  992px) {
  .page-content {
    max-width: 70%;
    min-height: 57vh;
  }
  h1 {
    margin-bottom: 1rem;
  }
  section .title {
    margin-bottom: 3rem;
  }
  .corrections .title {
    margin-bottom: 3rem;
  }
  .header { 
    width: 400px;
  }
  .nav .nav-items {
    max-width: 70%;
    margin: auto;
  }
  .rules .penality-cards .list li {
    align-items: center;
  }
}