@font-face {
    font-family: 'FormulaOneRegular';
    font-family:'FormulaOneBold';
    src: url(Formula1-Bold.otf);
    src: url(Formula1-Regular.otf);
  }
  /* Header */
  .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background-color: #fff; /* background color for header */
      padding: 10px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* add a box shadow for a 3D effect */
    }
    
    .logo img {
      height: 50px; /* height of logo image */
      width: 50px; 
    }
  /* Navigation Bar Styles */
  nav {
      background-color: #333;
      color: #fff;
      padding: 10px;
      font-family: "FormulaOneBold", sans-serif;
    }
    
    nav ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }
    
    nav li {
      display: inline-block;
      margin-right: 20px;
    }
    
    nav a {
      color: #fff;
      text-decoration: none;
      font-size: 18px;
      padding: 10px;
      transition: background-color 0.3s ease;
    }
    
    nav a:hover {
      background-color: #444;
    }  
  
    /*Box 1 (Next Race)*/
    .upcoming-race {
      display: flex;
      align-items: center;
      font-family: "FormulaOneBold";
      background-color: #000000;
      padding: 20px;
      border: 2px solid #302f2f;
      color: #fff;
    }
    
    .upcoming-race img {
      width: 200px;
      margin-right: 20px;
    }
    
    .race-info {
      display: flex;
      flex-direction: column;
    }
    
    .race-info h2 {
      margin: 0;
    }
    
    .schedule-link {
      margin-top: 10px;
      color: #ff0000;
      text-decoration: none;
      border-bottom: 2px solid #ff0000;
      padding-bottom: 2px;
    }

    /*Box 2 (Past Events)*/
    .schedule-boxes {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 50px 0;
        font-family: "FormulaOneBold";
      }
      
      .schedule-box {
        width: calc(33.33% - 20px);
        background-color: #fff;
        border: 1px solid #ccc;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
      }
      
      .schedule-box-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        font-size: 14px;
      }
      
      .schedule-box-title-redbox {
        background-color: red;
        color: #fff;
        padding: 10px;
        border-radius: 5px;
      }
      
      .schedule-box-title h2 {
        margin: 0;
        font-size: 1.5rem;
        font-size: 16px;
      }
      
      .schedule-box-image {
        width: 20%;
      }
      
      .schedule-box-image img {
        width: 100%;
        height: auto;
      }
      
      .schedule-box-info {
        display: flex;
        flex-direction: column;
      }
      
      .schedule-box-info p {
        margin: 0;
        font-size: 1.2rem;
        font-weight: bold;
      }
      
      .schedule-box-podium {
        margin-top: 20px;
        width: 100%;
        display: flex;
        justify-content: space-between;
      }
      
      .schedule-box-podium img {
        width: auto;
        height: auto;
      }
      
      .schedule-box-podium-text {
        width: 65%;
        display: flex;
        justify-content: space-between;
      }
      
      .schedule-box-podium-text h3 {
        margin: 0;
        font-size: 1.2rem;
      }
      
      .schedule-box-podium-text p {
        margin: 0;
        font-size: 1rem;
      }
      
      
     /*Box 3 (Upcoming)*/

     .boxes {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      margin: 50px 0;
      font-family: 'FormulaOneBold';
    }
    
    .box {
      width: calc(33.33% - 20px);
      background-color: #fff;
      border: 1px solid #ccc;
      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
      padding: 20px;
      margin-bottom: 40px;
    }
    
    .box-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }
    
    .box-title-redbox {
      background-color: red;
      color: #fff;
      padding: 10px;
      border-radius: 5px;
    }
    
    .box-title h2 {
      margin: 0;
      font-size: 1.5rem;
    }
    
    .box-image {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    .box-image img {
      max-width: 100%;
      height: auto;
    }
    
    .box-circuit {
      display: flex;
      justify-content: center;
      align-items: flex-end;
    }
    
    .box-circuit img {
      max-width: 100%;
      height: auto;
    }

    /*Box 4 (Silverstone)*/
    .big-box {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      margin-top: 50px;
      background-color: #fff;
      border: 1px solid red;
      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    }
    
    .big-box-header {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      padding: 20px;
      border-bottom: 1px solid red;
    }
    
    .big-box-flag-image {
      width: 50px;
      height: 30px;
      margin-right: 10px;
    }
    
    .big-box-header-text {
      display: flex;
      flex-direction: column;
    }
    
    .big-box-header-text h2 {
      margin: 0;
      font-size: 2rem;
      font-weight: bold;
    }
    
    .big-box-header-text p {
      margin: 0;
      font-size: 1.5rem;
    }
    
    .big-box-content {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      padding: 20px;
    }
    
    .big-box-track-image {
      width: 50%;
      margin-right: 20px;
    }
    
    .big-box-info-table {
      width: 50%;
      font-size: 1.5rem;
    }
    
    .big-box-info-table tr:nth-child(even) {
      background-color: #f2f2f2;
    }
    
    .big-box-info-table td {
      padding: 10px;
      text-align: left;
    }
    
    
    
      