/* RESET */

/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 8. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}


/* Large desktop */
.container {
  display: grid;
  grid-template-columns: 1fr 485px 485px 1fr;
  grid-template-rows: 100px 250px 100px 1fr 100px;
  justify-items: center;
  gap: 20px;
  background-color: #F5EBF1;
}

.logo {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}
img {
  width: 200px;
  margin-top: 40px;
}

.ads1 {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  width: 100%;
  max-width: 970px;
  height: auto;
  justify-items: center;
  border: 1px solid red;
}

.disclaimer {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
    width: 75%;
    height: auto;
    border: 2px solid black;
    border-radius: 10px;
    padding: 10px;
    text-align: justify;
    font-size: small;
    
  }
  .disclaimer > h3 {
    text-align: center;
    color: red;
  }

main {
  grid-column: 2 / 4;
  grid-row: 4 / 5;
  justify-items: center;
}

/* table */

.table-wrapper {
  margin-top: 50px;
}
.table-wrapper > h3 {
  margin-top: 30px;
  font-family: Arial, Helvetica, sans-serif;
}
table {
  width: 970px;
  font-family: Arial, Helvetica, sans-serif;
  border: 1px solid #BE1E2D;
}
tbody > tr > td > a {
  text-decoration: none;
  color: #BE1E2D;
}
tbody > tr > td > a:hover {
  color: red;
}
th {
  max-width: 300px;
  background-color: #BE1E2D;
  color: #F2F2F2;
  padding: 15px;
  text-align: center;
}
td {
  max-width: 300px;
  background-color: #F5EBF1;
  padding: 15px;
  text-align: left;
}


/* Small desktop */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    display: grid;
    grid-template-columns: 1fr 162px 162px 1fr;
    grid-template-rows: 100px 188px 100px 1fr 100px;
    justify-items: center;
    gap: 20px;
    background-color: #F5EBF1;
  }
  
  .logo {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
  }
  img {
    width: 200px;
    margin-top: 40px;
  }
  
  .ads1 {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    width: 100%;
    max-width: 970px;
    height: auto;
    justify-items: center;
    border: 1px solid red;
  }
  
  .disclaimer {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
    width: 100%;
    height: auto;
    border: 2px solid black;
    border-radius: 5px;
    padding: 5px;
    text-align: justify;
  }
  .disclaimer > h3 {
    text-align: center;
    color: red;
  }  

  main {
    grid-column: 2 / 4;
    grid-row: 4 / 5;
    justify-items: center;
  }
  
  /* table */
  
  .table-wrapper {
    margin-top: 50px;
  }
  .table-wrapper > h3 {
    margin-top: 30px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: small;
  }
  table {
    width: 727.5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: small;
  }
  tbody > tr > td > a {
    text-decoration: none;
    color: #BE1E2D;
  }
  tbody > tr > td > a:hover {
    color: red;
  }
  th {
    max-width: 225px;
    background-color: #BE1E2D;
    color: #F2F2F2;
    padding: 15px;
    text-align: center;
  }
  td {
    max-width: 225px;
    background-color: #F5EBF1;
    padding: 15px;
    text-align: left;
  }
}


/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    display: grid;
    grid-template-columns: 1fr 121px 121px 1fr;
    grid-template-rows: 100px 125px 125px 1fr 100px;
    justify-items: center;
    gap: 20px;
    background-color: #F5EBF1;
  }
  
  .logo {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
  }
  img {
    width: 150px;
    margin-top: 40px;
  }
  
  .ads1 {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    width: 100%;
    max-width: 970px;
    height: auto;
    justify-items: center;
    border: 1px solid red;
  }

  .disclaimer {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
    width: 120%;
    height: auto;
    border: 2px solid black;
    border-radius: 5px;
    font-size: smaller;
    padding: 5px;
    text-align: justify;
  }
  .disclaimer > h3 {
    text-align: center;
    color: red;
  }  
  
  main {
    grid-column: 2 / 4;
    grid-row: 4 / 5;
    justify-items: center;
  }
  
  /* table */
  
  .table-wrapper {
    margin-top: 50px;
  }
  .table-wrapper > h3 {
    margin-top: 30px;
    font-size: small;
    font-family: Arial, Helvetica, sans-serif;
  }
  table {
    width: 485px;
    font-size: small;
    font-family: Arial, Helvetica, sans-serif;
  }
  tbody > tr > td > a {
    text-decoration: none;
    color: #BE1E2D;
  }
  tbody > tr > td > a:hover {
    color: red;
  }
  th {
    max-width: 150px;
    background-color: #BE1E2D;
    color: #F2F2F2;
    padding: 15px;
    text-align: center;
  }
  td {
    max-width: 150px;
    background-color: #F5EBF1;
    padding: 15px;
    text-align: left;
  }
}


/* Mobile */
@media (max-width: 480px) {
  .container {
    display: grid;
    grid-template-columns: 1fr 121px 121px 1fr;
    grid-template-rows: 100px 94px 94px 1fr 100px;
    justify-items: center;
    gap: 20px;
    background-color: #F5EBF1;
  }
  
  .logo {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    max-width: 160px !important;
  }
  
  .ads1 {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    width: 100%;
    max-width: 970px;
    height: auto;
    justify-items: center;
    border: 1px solid red;
  }

  .disclaimer {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
    width: 100%;
    height: auto;
    border: 2px solid black;
    border-radius: 5px;
    font-size: 10px;
    padding: 5px;
    text-align: justify;
  }
  .disclaimer > h3 {
    text-align: center;
    color: red;
  }
  
  
  main {
    grid-column: 2 / 4;
    grid-row: 4 / 5;
    justify-items: center;
  }
  
  /* table */
  
  .table-wrapper {
    width: 100%;
    margin-top: 5px;
  }
  .table-wrapper > h3 {
    margin-top: 30px;
    font-size: small;
    font-family: Arial, Helvetica, sans-serif;
  }
  table {
    width: 200px;
    font-size: 10px;
    font-family: Arial, Helvetica, sans-serif;
  }
  tbody > tr > td > a {
    text-decoration: none;
    color: #BE1E2D;
  }
  tbody > tr > td > a:hover {
    color: red;
  }
  th {
    min-width: 70px;
    background-color: #BE1E2D;
    color: #F2F2F2;
    padding: 5px;
    text-align: center;
  }
  td {
    min-width: 70px;
    background-color: #F5EBF1;
    padding: 5px;
    text-align: left;
  }
}
