* {
  box-sizing: border-box;
}

@font-face {
  font-family: Formula1_bold;
  src: url('Formula1-Bold.otf');
}
@font-face {
  font-family: Formula1_Regular;
  src: url('Formula1-Regular.otf');
}
@font-face {
  font-family: Formula1_wide;
  src: url('Formula1-Wide.otf');
}


/* Style the body */
body {
  font-family: Formula1_bold, Courier New, Helvetica, Courier sans-serif, Formula1_Regular, Formula1_wide;
  margin: 0;
  
  /* background-color: #212121 */
}

html {
  scroll-behavior: smooth;
  height: 100%;
}
/* general links */
 /* unvisited link */
 a:link {
  text-decoration: none;
  color: white;
}

/* visited link */
a:visited {
  text-decoration: none;
}

/* mouse over link */
a:hover {
  text-decoration: underline;
}

/* selected link */
a:active {
  text-decoration: none;
} 

/* Collapsable */
.collapsible {
  background-color: #777;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  font-family: Formula1_Regular;
  margin-top: 1px;
  margin-bottom: 1px;
}

.collapsible-child {
  background-color: #272727;
  color: white;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  font-family: Formula1_Regular;
  text-indent: 20px;
}

.content {
  padding: 0 0px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.content-child {
  padding-left: 20px;
  display: none;
}

.active {
  background-color: #555;
}

.active:after {
  content: "\2212";
}

.active+.content {
  max-height: unset;
}

.active-child {
  color: red;
}

.active-child:after {
  content: "\2212";
}

.collapsible:after {
  content: '\002B';
  color: white;
  font-weight: bold;
  float: right;
  margin-left: 15px;
}

.collapsible-child:after {
  content: '\002B';
  color: white;
  font-weight: bold;
  float: right;
  margin-left: 50px;
}

/* Header/logo Title */
.header {
  padding: 80px;
  text-align: center;
  background: #212121;
  color: white;
  
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/F1.svg/1024px-F1.svg.png');
  background-repeat: no-repeat;
  background-size: 300px 100px;
  background-position-y: center; 
  background-position-x: 30px;

}

/* Increase the font size of the heading */
.header h1 {
  font-size: 50px;
}

/* Style the top navigation bar */
.navbar {
  overflow: hidden;
  background-color: #333;
}

/* Style the navigation bar links */
.navbar a {
  font-family: Formula1_Regular;
  float: left;
  display: block;
  color: white;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
}

/* Right-aligned link */
.navbar a.right {
  float: right;
}

/* Change color on hover */
.navbar a:hover {
  background-color: #ddd;
  color: black;
}

/* navigation bar / overview bar on the side */
.nav_side{
  background: #272727;
  position: sticky;
  text-align: left;
  /* top:0.5; */
  top:0;
  flex: 1;
  border-radius: 20px;
  padding: 15px;
}

.nav_side a.first-entry {
  /*background: lightgray; /* Add your desired background color for the first entry */
  font-size: 15px;
}

.nav_side a:not(.first-entry) {
  margin-left: 20px; /* Add the desired indentation for the rest of the list items */
}

.nav_side_list {
  display: flex;
  justify-content: space-between;
}

.nav_side_data{
  text-align: right;
}
/* not worki worki */

/* Column container */
.row-index {  
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap; /* IE10 */
  flex-wrap: wrap;
  overflow: auto;
  background-color: #212121
  
}

.row {  
  display: -ms-flexbox; /* IE10 */
  display: flex;
  -ms-flex-wrap: nowrap; /* Prevent wrapping by default */
  flex-wrap: nowrap;
  overflow: auto;
  background-color: #212121;
}

/* Create two unequal columns that sits next to each other */
/* Sidebar/left column */
.side {
  -ms-flex: 20%; /* IE10 */
  flex: 20%;
  text-align: center;
  background-color: #555;
  padding: 20px;
  color: white;
  position: sticky;
}

.side.image{
  background-color: #212121;
}

.chart {
  text-align: center;
}

/* Main column */
.main {   
  -ms-flex: 80%; /* IE10 */
  flex: 80%;
  /* background-color: #212121; */
  /* background-color: rgba(33, 33, 33, 0.5); */
  padding: 20px;
  color: white
 
}

/* Fake image, just for this example */
.fakeimg {
  
  width: 40%;
  padding: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.fakeimg2 {
  background-color: #aaa;
  width: 100%;
  padding: 20px;
}

.round{
  border-radius: 20px
}

/* Add a card effect for articles */
.card {
  background-color: rgb(201, 201, 201);
  padding: 20px;
  margin-top: 20px;
}

/* Footer */
.footer {
  font-family: 'Courier New', Courier, monospace;
  padding: 10px;
  text-align: center;
  background: #333;
  font-size: 10px;
  position: relative;
  bottom: 0;
  width: 100%

}

/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 500px) {
  .row {   
    flex-wrap: wrap; /* Allow wrapping on small screens */
    flex-direction: column;
  }
  
  /* Reset flex properties for stacked layout */
  .side, .main {
    -ms-flex: 100%;
    flex: 100%;
  }
}

/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
@media screen and (max-width: 400px) {
  .navbar a {
    float: none;
    width: 100%;
  }
}

.hidden {
  display: none;
}


.box {
  background-color: rgba(0, 0, 0, 0.541);
  padding: 10px;
  padding-left: 50px;
  padding-right: 50px;
  color: white;
  display: inline-block;
  border-radius: 20px;
}
/* ------------------------------------------------- Dropdown Button ---------------------------------------------------------*/

.dropdown {
  float: left;
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 16px;  
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: Formula1_Regular;
  margin: 0;
}

.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: #ddd;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
} 

/* For compare page */
form .dropdown select {
  background-color: #333; /* or any other background color */
  color: white; /* Ensure this color contrasts with the background */
}

form .dropdown option {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-family: Formula1_Regular;
}

form .dropdown-content option:hover {
  background-color: #ddd;
}

/*---------------------------------OVERLAY---------------------------------------------------------------------------*/
#overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}

#overlaytext{
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 50px;
  color: white;
  transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
}

.overlaybutton {
  /*float: right;*/
  background-color: #212121; /* Grau */
  border: none;
  color: white;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 10px;
}

/* Change color on hover */
.overlaybutton:hover {
  background-color: #ddd;
  color: black;
}

/* ------------------------------------------------- Liste ---------------------------------------------------------*/
/*the container must be positioned relative:*/
.custom-select {
  position: relative;
  font-family: Formula1_Regular;
  width: 100%;
}

#compare-form {
  display: flex;
  justify-content: space-between; /* Optional: Add spacing between columns */
}

.compare-column {
    width: 32%; /* Leave a small gap */
}

/* Updated selector to target the custom-select inside compare-column */
.compare-column .custom-select.compare_page {
  position: relative;
  font-family: Formula1_Regular;
  width: 100%; /* Take full width of parent column */
}


.custom-select select {
  display: none; /*hide original SELECT element:*/
}

.select-selected {
  background-color: #333;
}

/*style the arrow inside the select element:*/
.select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}

/*style the items (options), including the selected item:*/
.select-items div,.select-selected {
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
  user-select: none;
}

/*style items (options):*/
.select-items {
  position: absolute;
  background-color: #333;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/*hide the items when the select box is closed:*/
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}
/* ---------------------------------------------------------------------------------------------------------------------------*/

/* Login Form Styles */
.login-container {
    background-color: #272727;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    text-align: left;
}

.login-container h2 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.login-container .form-group {
    margin-bottom: 20px;
}

.login-container label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    background-color: #3a3a3a;
    color: white;
    font-size: 1em;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    outline: none;
    border-color: red;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.login-container .good-button {
    width: 100%;
    padding: 12px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-container .good-button:hover {
    background-color: #cc0000;
}

.login-container .error-message {
    color: #ff6666;
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
}

.nav_side.season-nav {
  background: #272727;
  border-radius: 20px;
  padding: 15px;
  margin-top: 20px;
}

.nav_side.season-nav h3 {
  color: white;
  text-align: center;
  margin-bottom: 15px;
  text-decoration: underline;
}

.nav_side.season-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav_side.season-nav li {
  margin-bottom: 5px;
}

.nav_side.season-nav a {
  display: block;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav_side.season-nav a:hover {
  background-color: #3a3a3a;
  transform: translateX(5px);
}

.nav_side.season-nav a.first-entry {
  font-weight: bold;
  color: red; /* Highlight for overview */
}
