@font-face {
  font-family: "Barlow";
  src:
    url("../fonts/subset-Barlow-Bold.woff2") format("woff2"),
    url("../fonts/subset-Barlow-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src:
    url("../fonts/subset-Barlow-BoldItalic.woff2") format("woff2"),
    url("../fonts/subset-Barlow-BoldItalic.woff") format("woff");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src:
    url("../fonts/subset-Barlow-ExtraBold.woff2") format("woff2"),
    url("../fonts/subset-Barlow-ExtraBold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src:
    url("../fonts/subset-Barlow-ExtraBoldItalic.woff2") format("woff2"),
    url("../fonts/subset-Barlow-ExtraBoldItalic.woff") format("woff");
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src:
    url("../fonts/subset-Barlow-SemiBold.woff2") format("woff2"),
    url("../fonts/subset-Barlow-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src:
    url("../fonts/subset-Barlow-SemiBoldItalic.woff2") format("woff2"),
    url("../fonts/subset-Barlow-SemiBoldItalic.woff") format("woff");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --max-width: 1550px;
  --blue: #0c2340;
  --dark-gray: #dddddd;
  --light-gray: #f3f2f280;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 2rem;
}

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }
}

main a {
  color: black;
}

img {
  display: block;
  width: 100%;
}

section {
  padding: 1rem;
  margin: 0 auto;
  max-width: var(--max-width);
}

footer {
  background: black;
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-size: 1rem;
}

footer a {
  color: white;
}

h1,
h2,
h3,
h4 {
  text-align: center;
}

ul {
  margin: 0 auto;
}

br {
  display: none;
}

#rules br {
  display: unset;
}

.two-cols {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 768px) {
  .two-cols {
    flex-direction: column;
  }
  ul {
    text-align: center;
    padding-left: 0;
    list-style-position: inside;
  }
  .modal ul {
    text-align: unset;
  }
}

.col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card .col {
  flex-direction: unset;
  align-items: center;
  justify-content: center;
}

.card .col p {
  padding: 1rem;
  max-width: 30rem;
}

.card img {
  display: inline-block;
  width: 80px;
  ratio: 1;
}

section#prizes h1,
section#prizes h2 {
  color: var(--blue);
}

section#prizes h2 {
  font-weight: normal;
}

section#download p {
  font-size: x-large;
  margin-top: 0;
  margin-bottom: 1rem;
}

section#download .col {
  align-items: center;
  justify-content: center;
}

section#download > div {
  column-gap: 1rem;
}

div.card {
  border: 1px solid var(--dark-gray);
  background: var(--light-gray);
  border-radius: 21px;
  margin: 1rem auto;
  padding: 1rem;
}

.center {
  text-align: center;
}

@media screen and (max-width: 768px) {
  .desktop {
    display: none;
  }
}

@media only screen and (min-width: 768px) {
  .mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  section#download .two-cols {
    flex-direction: row;
  }
  section#download p {
    font-size: unset;
    text-align: center;
  }
  section#download br {
    display: unset;
  }
}

#rules {
  visibility: hidden;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

#rules:target {
  visibility: visible;
  opacity: 1;
}

#rules .modal {
  opacity: 0;
  transform: translateY(-1rem);
  transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
  transition-delay: 0.2s;
}

#rules:target .modal {
  transform: translateY(0);
  opacity: 1;
}

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal {
  z-index: 1;
  background-color: white;
  width: 90%;
  max-width: 1000px;
  max-height: 80vh;
  padding: 1rem;
  border-radius: 8px;
  overflow-y: auto;
  font-size: 1rem;
}

.modal ul {
  list-style-position: outside;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  border-collapse: collapse;
}

table,
th,
td {
  border: 1px solid black;
}
