@font-face {
  font-family:'FormulaOneBold';
  src: url(Formula1-Bold.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';
}

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 Styles */
.box {
  background-color: #454545;
  border: 1px solid #ccc;
  padding: 20px;
  margin: 20px;
  text-align: center;
  font-family: 'FormulaOneBold';
}

.box h2 {
  margin-top: 0;
}

.box p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.box a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f00;
  color: #fff;
  text-decoration: none;
  margin-top: 10px;
}

.box a:hover {
  background-color: #a32424;
}


.box button:hover {
  background-color: #444;
}
.box {
  background-color: #353434;
  border: 1px solid #ccc;
  padding: 20px;
  margin: 20px;
  text-align: center;
  color: white
  
}

.box h2 {
  margin-top: 0;
  color: white
}

.box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.box li {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.about-image {
  max-width: 50%;
  margin-top: 20px;
}

/*boxes*/

.championships {
  display: flex;
  font-family: 'FormulaOneBold';
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #454545;
  color: white

}

.championship {
  width: 45%;
  background-color: #454545;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
}

.championship h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.championship table {
  width: 100%;
  border-collapse: collapse;
  background-color: #e7e5e5;
}

.championship th,
.championship td {
  padding: 10px;
  text-align: left;
}

.championship th {
  font-weight: bold;
}


.championship td.team {
  display: flex;
  align-items: center;
}

.championship td.team img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
}

/*3rd Box*/
.button-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  background-color: #454545;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 10px;
  background-color: #f00;
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  border-radius: 5px;
  transition: background-color 0.3s ease-in-out;
}

.button:hover {
  background-color: #a32424;
}
