body {
  background: black;
  font-family: 'Formula1', sans-serif;
  padding: 4em;
  margin: 4em;
}

@font-face {
  font-family: 'Formula1', sans-serif;
  src: url('/fonts/Formula1-Display-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/*circle*/

#text {
  color: white;
  font-size: 50px;
  font-weight: 700;
  text-transform: uppercase;
}

.tire {
  position: relative;
  height: 120vh;
}

.circle {
  position: relative;
}

/*paragraph*/

h1{
    color: white;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 120px;
}

h2{
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 80px;
}

h3{
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 40px;
}

h4{
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 60px;
  line-height: 100px;
}

h5{
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 60px;
  line-height: 150px;
}

h6{
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 60px;
  line-height: 100px;
}

.text-right{
  animation: slide-right;
  animation-timeline: view(40% 0%);
}

.max{
  color: rgb(255, 49, 94);
}

.lewis{
  color: teal;
}

@keyframes slide-right{
  from{
    margin-left: -100%;
  }
  to{
    margin-left: 0;
  }
}

.text-left{
  animation: slide-left;
  animation-timeline: view(40% 0%);
}

@keyframes slide-left{
  from{
    margin-right: -100%;
  }
  to{
    margin-right: 0;
  }
}


@media screen and (min-width: 900px) {
  h2{
  font-size: 200px;
  }
  h5{
    font-size: 100px
  }

  h6{
    font-size: 150px;
    line-height: 220px;
  }
}


/*header*/

.logo-container {
	position: relative;
	
	::before {
		content:  "";
		position: absolute;
		width:    100%;
		height:   4px;
		background-color: #cf0000;
		transform-origin: center center;
		transform: scaleX( 0 );
		
		animation: line-animation 3s ease infinite alternate;
	}
	
	h1 {
		text-transform: uppercase;
		animation: clip-path-reveal-1 3s ease infinite alternate;
	}
}

@keyframes line-animation {
	0% { transform: scaleX( 0 ); }
	15% { transform: scaleX( 0 ); }
	20%, 25% { transform: scaleX( 1 ); top: calc( 100% - 2px ); }
	50% { transform: scaleX( 1 ); top: 0px; }
	70% { transform: scaleX( 0.2 ); top: 0px; }
	80%, 100% { transform: scaleX( 0.2 ); top: 0px; }
}

@keyframes clip-path-reveal-1 {
	0%, 25% { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%); }
	50% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
}

/*screen*/

@media screen and (min-width: 900px) {
  .section{
    margin-top: 10%;
  }
}


/*back to top button*/

#back-to-top-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 26px;
  width: 50px;
  height: 50px;
  background-color: black;
  color: white;
  cursor: pointer;
  outline: none;
  border: 3px solid white;
  border-radius: 50%;
  transition-duration: 0.2s;
  transition-timing-function: ease-in-out;
  transition-property: background-color, color;
}
#back-to-top-btn:hover, #back-to-top-btn:focus {
  background-color: white;
  color: black;  
}

@media(max-width: 992px) {
  .container { padding: 20px 100px; }
  #back-to-top-btn { font-size: 22px; width: 40px; height: 40px; bottom: 15px; right: 15px; }
}
@media(max-width:768px) {
  #back-to-top-btn { font-size: 18px; width: 32px; height: 32px; bottom: 6px; right: 6px; }
}

/*reading-progress bar*/

.reading-progress-bar-container {
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  width: 100%;
  background-color: black(19, 19, 66);
  z-index: 999;
}

.reading-progress-bar {
  height: 20px;
  background-color:red;
  animation-name: width;
  animation-timeline: scroll(y);
}

@keyframes width {
  from { width: 0; }
  to { width: 100%; }
}

/*autoShow*/
.autoShow{
  animation: autoShowAnimation  both;
  animation-timeline: view(60% 20%);
}

@keyframes autoShowAnimation{
  from{
    opacity: 0%;
    transform: translateY(200px) scale (0.5);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
}
}


/*sidepanel*/

.sidepanelleft, .sidepanelright {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 0;
  background-color: rgb(47, 46, 46, 0.9);
  color: white;
  overflow-x: hidden;
  overflow-y: auto;
  transition: 0.5s;
  z-index: 1;
}
.sidepanelleft {
  left: 0;
}
.sidepanelright {
  right: 0;
}
.closebtnleft, .closebtnright {
  position: absolute;
  top: 30px;
  font-size: 50px;
  text-decoration: none;
  color: white;
}
.closebtnleft {
  left: 10px;
}
.closebtnright {
  right: 10px;
}

.button {
  padding: 10px;
}
.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: teal;
  color: white;
  padding: 10px 15px;
  border: none;
}
.openbtn:hover {
  background-color:#2d2626;
}
.openbtn-right {
  position: flex;
  background-color:rgb(255, 49, 94, 0.9); 
}

.panel-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
}

/*sidepanel header*/

h10{
  margin-top: -20%;
  font-size: 20px;
  color: white;
  text-align: right;
  text-transform: uppercase;
  font-weight: bold;
}

h11{
  font-size: 20px;
  color: grey;
  text-align: right;
  text-transform: uppercase;
}

.main-2{
  margin-top: 4em;
  padding: 2em;
  line-height: 80px;
  display: flex;
  flex-direction: column;
}


/*hamilton 1*/

.text-1{
  color: white;
  font-size: 12px;
  text-transform: uppercase;
}


.text-2{
  color: teal;
  font-size: 12px;
  line-height: 25px;
  font-weight: bold;
}

.text-3{
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  text-align: right;
  line-height: 25px;
}


.text-4{
  color: teal;
  font-size: 12px;
  text-align: right;
  line-height: 25px;
  font-weight: bold;
}

.text-5{
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  text-align: left;
  line-height: 25px;
}


.text-6{
  color: teal;
  font-size: 12px;
  text-align: left;
  line-height: 25px;
  font-weight: bold;
}

.text-11{
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  text-align: right;
}


.text-12{
  color: teal;
  font-size: 12px;
  line-height: 25px;
  font-weight: bold;
  text-align: right;
}

.text-13{
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  text-align: left;
  line-height: 25px;
}


.text-14{
  color: teal;
  font-size: 12px;
  text-align: left;
  line-height: 25px;
  font-weight: bold;
}

.text-15{
  color: teal;
  font-size: 12px;
  text-align: left;
  line-height: 25px;
  font-weight: bold;
}

/*verstappen 1*/

.text-7{
  color: white;
  font-size: 12px;
  text-transform: uppercase;
}


.text-8{
  color: rgb(255, 49, 94);
  font-size: 12px;
  line-height: 25px;
  font-weight: bold;
}

.text-9{
  color: rgb(255, 49, 94);
  font-size: 12px;
  font-weight: bold;
  text-align: left;
  line-height: 25px;
  margin-top: 20%;
}


.text-10{
  margin-top: 20%;
  color: rgb(255, 49, 94);
  font-size: 12px;
  text-align: left;
  line-height: 25px;
  font-weight: bold;
}

.text-17{
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  text-align: left;
}


.text-18{
  color: rgb(255, 49, 94);
  font-size: 12px;
  line-height: 25px;
  font-weight: bold;
  text-align: left;
}

.text-19{
  color: rgb(255, 49, 94);
  font-size: 12px;
  font-weight: bold;
  text-align: left;
  line-height: 25px;
}


.text-20{
  color: rgb(255, 49, 94);
  font-size: 12px;
  text-align: left;
  line-height: 25px;
  font-weight: bold;

}

.text-21{
  color: white;
  font-size: 12px;
  text-align: right;
  text-transform: uppercase;
}


.text-22{
  color: rgb(255, 49, 94);
  font-size: 12px;
  line-height: 25px;
  font-weight: bold;
  text-align: right;
}

.text-23{
  color: white;
  font-size: 12px;
  text-transform: uppercase;
  text-align: left;
  line-height: 25px;
}


.text-24{
  color: rgb(255, 49, 94);
  font-size: 12px;
  text-align: left;
  line-height: 25px;
  font-weight: bold;
}

.text-25{
  color: white;
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
  line-height: 25px;
}


.text-26{
  color: rgb(255, 49, 94);
  font-size: 12px;
  text-align: left;
  line-height: 25px;
  font-weight: bold;
}

.text-27{
  color: white;
  font-size: 12px;
  text-align: left;
  line-height: 25px;
  text-transform: uppercase;
}


.text-28{
  color: rgb(255, 49, 94);
  font-size: 12px;
  text-align: left;
  line-height: 25px;
  font-weight: bold;
}