center {
  margin-left: auto;
  margin-right: auto;
}

/* Navigation bar */

.topbar {
    background-color: var(--background-red);
    width: 100%;
    box-shadow: var(--box-shadow);
  }
  
  .logo {
    margin-left: 10%;
    background-color: var(--background-red);
    border: none;
  }
  
  .navigation {
    overflow: hidden;
    width: 40%;
    float: right;
    margin-right: 10.75%;
    margin-top: 10px;
  }
  
  .navigation a {
    float: right;
    margin-left: 75px;
    color: var(--font-color);
    text-decoration: none;
    text-align: center;
    font-family: var(--font-family);
    font-size: var(--font-size);
    font-weight: var(--font-weight);
    margin-top: 10px;
  }

  .navigation .active{
    color: var(--font-color-light);
  }

  .navigation .icon {
    display: none;
  }

  .navigation .game {
    display: none;
  }

  @media screen and (max-width: 1500px) {
    .navigation a:not(.icon) {display: none;}
    .navigation a.icon {
      float: right;
      display: block;
      color: aliceblue;
    }
  }

  @media screen and (max-width: 1500px) {

    .navigation.responsive {
      position: absolute;
      right: 0;
      top: 10px;
      background-color: var(--background-darkred);
      width: 280px;
      box-shadow: var(--box-shadow);
      padding: 12px 16px;
      z-index: 1;
    }

    .navigation.responsive a{
      display: block;
      text-align: left;
      float: left;
      color: var(--font-color);
      text-decoration: none;
      display: block;
      margin-left: -15px;
      padding: 3px 16px;
      margin-top: -5px;
    }
    .navigation.responsive a:first-child{
      float:right;
    }

    .navigation.responsive .dropdown {
      display: none;
    }


    .dropdown-content {
      position: absolute;
      background-color: var(--background-darkred);
      min-width: max-content;
      box-shadow: var(--box-shadow);
      margin-top: 49px;
      margin-left: 60px;
      padding: 12px 16px;
      z-index: 1;
    }
  }


  /* drop down box - referenced: https://www.w3schools.com/howto/howto_css_dropdown_navbar.asp */

  .dropdown {
    float: right;
    overflow: hidden;
  }

  .navigation a:hover, .dropdown:hover .drop-button {
    text-decoration: underline;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--background-darkred);
    min-width: max-content;
    box-shadow: var(--box-shadow);
    margin-top: 49px;
    margin-left: 60px;
    padding: 12px 16px;
    z-index: 1;
  }
  
  .dropdown-content a {
    float: none;
    color: var(--font-color-dark);
    text-decoration: none;
    display: block;
    text-align: left;
    margin-left: -15px;
    padding: 3px 16px;
    margin-top: -5px;
  }

  .dropdown:hover .dropdown-content {
    display: block;
    color: var(--font-color-light);
    box-shadow: var(--box-shadow);
  }

  h2 {
    font-family: var(--font-family);
    font-size: var(--font-size-p);
    font-weight: var(--font-weight);
  }

/* main content */

body {
    background-color: var(--background-light-gray);
}

.main {
    margin-left: 10%;
    margin-right: 10%;
    background-color: var(--background-light-grey);
    margin-top: 30px;
}

.container {
    margin-top: 10px;
    display: flex;
    align-items: top;
    gap: 2%;
    font-family: var(--font-family);
    font-size: var(--font-size);
    font-weight: var(--font-weight);
}
/* over the fold */

.text-box {
    background-color: var(--background-light-grey);
    width:45%;
    display: inline-block;
    color: var(--font-color-light);
    font-family: var(--font-family);
    font-size: var(--font-size-p);
    font-weight: var(--font-weight);
    margin-left: 2%;
    padding: 10px;
}

.text-box h1 {
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: var(--font-weight);
  color: car(--font-color-dark);
}

.text-box p {
  font-family: var(--font-family);
  font-size: var(--font-size-p);
}

.image {
    display: inline-block;
    width: 50%;
    box-shadow: var(--box-shadow);
}

.text-box a {
  color: var(--font-color);
  text-decoration: none;
  width: fit-content;


  display:block;
  background-color: var(--background-darkred);
  border: solid;
  padding-left: 2%;
  padding-right: 2%;
  padding-top:.05%;
  padding-bottom:.05%;
  transition: 0.3s;
  

}

.text-box a h2 {
  font-family: var(--font-family);
  font-weight: var(--font-weight);
  font-size: var(--font-size-h2);
  color: var(--font-color-light);
}

.text-box a:hover {
  background-color: #d63d37;
  box-shadow: var(--box-shadow);
}

h2 {
  font-family: var(--font-family);
  font-weight: var(--font-weight);
  font-size: var(--font-size-h2);
  color: var(--font-color-light);
}

p {
  font-family: var(--font-family);
  font-size: var(--font-size-p);
  color: var(--font-color-light);
}

  /* tabbed menu - referenced: https://www.w3schools.com/howto/howto_js_tabs.asp*/

  /* Style the tab */
.tab {
    overflow: hidden;
    width: 100%;
    float: right;
    background-color: aliceblue;
    justify-content: space-between;
    display: flex;

  }
  
  /* Style the buttons inside the tab */
  .tab button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding-left: 30px; 
    padding-right: 30px; 
    transition: 0.3s;
    font-size: var(--font-size);
    border-bottom: 2px solid var(--background-light-grey);
    border-right: 2px solid var(--background-light-grey);
    border-left: 2px solid var(--background-light-grey);
    background-color: var(--background-darkred);
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    color: var(--font-color);
    width: 33%;
  }
  
  /* Change background color of buttons on hover */
  .tab button:hover {
    background-color: #d63d37;
  }
  
  /* Create an active/current tablink class */
  .tab button.active {
    background-color: var(--background-red);
    border: none;
    padding: 14px 16px;
    border: 1px solid var(--background-red);
  }
  
  /* Style the tab content */
  .tabcontent {
    padding-left: 30px; 
    padding-right: 30px; 
    border: 1px solid var(--background-red);
    background-color: var(--background-red);
    border-top: none;
    justify-content: space-evenly;
    overflow: hidden;
  }

  .tabcontent .text-box{
    background-color: var(--background-red);
    color: var(--font-color);
    margin-top: 10px;
    margin-right: 5%;
    float: right;
    width: 40%;
  }

  .tabcontent .image{
    width: 50%;
    margin: 10px;
    margin-left: 0%;
    background-color: var(--background-red);
  }


  /* Footer */

  .footer {
    background-color: var(--background-grey);
    padding-top: 10px;
    margin-top: var(--font-size-p);
    box-shadow: var(--box-shadow);
    justify-content: space-evenly;
    width: 100%;
  }

  .footer .column {
    display: inline-block;
    width: 40%;
    margin-left: 5%;
    margin-right: 5%;


    text-align: center;
  }

  .checkbox {
    color: white;
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-size: var(--font-size-p);
  }

  .checkbox:hover {
    cursor: pointer;
  }

  .checkbox:active {
    color: var(--font-color);
  }



  @media screen and (max-width: 1800px) {  /* may fix issue -- https://www.w3schools.com/css/css_align.asp */
    /* main content */

    .tabcontent {
      display: grid;

    }

    .tabcontent .text-box{
      width: 98%;
      margin-right: 1%;
      margin-top: 2%;
    }

    .tabcontent .image {
      width: 98%;
      margin: 0px;
      float: none;
    }

  }

  @media screen and (max-width: 1500px) {
    /* nav bar */


    /* main content */

    .text-box {
      width: 98%;
      margin-bottom: 2%;
      margin-left: 2%;
      
    }

    .image {
      width: 98%;
      margin-left: 2%;
    }
    .container {
      display: block;
      margin-left: 0%;
      margin-right: 0%;
    }
  }