@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&family=Rubik&display=swap');
body {
    font-family: Roboto;
    background-color: black;
}

h1 {
    color: ghostwhite;
    text-align: center;
    font-size: 575%;
}

h2 {
    color: ghostwhite;
    font-size: 200%;
}

h2 a {
    color: ghostwhite;
    text-decoration: none;
}

h3 {
    color: yellow;
    font-size: 150%;
}

p {
    color: black;
}

a {
    color: black;
}

/*beggining of styling for the navigation pane*/
.navigation {
    background-color: #EE0000;
    font-size: larger;
    margin: 0 0 10px 0;
    border-radius: 15px;
}

nav ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

nav ul li {
    display: inline-block;
    position: relative;
}

nav ul li a {
    display: block;
    padding: 20px 25px;
    color: ghostwhite;
    text-decoration: none;
    text-align: center;
}

nav ul li ul.dropdown li {
    display: block;
}

nav ul li ul.dropdown {
    width: 100%;
    background-color: #EE0000;
    position: absolute;
    z-index: 999;
    display: none;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

nav ul li a:hover {
    background-color: lightslategray;
    border-radius: 15px;
}

nav ul li:hover ul.dropdown {
    display: block;
}/*end of styling for navigation pane*/

footer {/*beggining of styling for footer*/
    text-align: center;
    color: ghostwhite;
    padding-top: 20px;
}

footer a {
    color: ghostwhite;
    text-decoration: none;
}

footer p {
    color: ghostwhite;
}/*end of styling for footer*/

header {/*beggining of styling for the header of each page*/
    display: flex;
}

header h1 {
    text-align: center;
    width: 75%;
}

header img {
    width: 25%;
    padding: 15px;
}/*end of styling of the header of each page*/

.main {/*beggining of styling for the main section for pages with 2 boxes*/
    display: flex;
    text-align: center;
}

.box1 {
    width: 65%;
    padding: 0 5px 0 5px;
    background-color: #EE0000;
    margin-right: 15px;
    border-radius: 15px;
}

.box2 {
    width: 45%;
    padding: 0 5px 0 5px;
    background-color: #EE0000;
    border-radius: 15px;
}

#formulaOne img {
    width: 55%;
    border-radius: 15px;
}

#normal img {
    width: 35%;
    border-radius: 15px;
}

#penalties img {
    width: 55%;
}

#specs img {
    width: 65%;
    border-radius: 15px;
}

.box2 img {
    width: 95%;
    border-radius: 15px;
}/*end of styling for main section with 2 boxes*/

.info{/*beggining of styling for main section with 3 pages*/
    width: 33%;
    padding: 0 5px 0 5px;
    background-color: #EE0000;
    margin-right: 15px;
    border-radius: 15px;
}

.background {
    width: 33%;
    padding: 0 5px 0 5px;
    background-color: #EE0000;
    border-radius: 15px;
    margin-right: 15px;
}

.stats {
    width: 33%;
    padding: 0 5px 0 5px;
    background-color: #EE0000;
    border-radius: 15px;
}

.info img {
    width: 95%;
    border-radius: 15px;
}

.background img {
    width: 95%;
    border-radius: 15px;
}

.stats img {
    width: 95%;
    border-radius: 15px;
}/*end of styling for main section with 3 pages*/

.lists {/*beggining of styling for the lists*/
    list-style-type: none;
}

.first {
    color: ghostwhite;
    font-weight: bolder;
}

#parts {
    text-align: left;
    line-height: 25px;
    padding-right: 10px;
}

#bio {
    text-align: left;
    line-height: 50px;
}

#numbers {
    text-align: left;
    line-height: 35px;
}/*end of styling for the lists*/

/*end of styling for the main section of home page*/

@media screen and (max-width: 1000px) {
    header {display:block;
        text-align: center;}
    header h1 {width: 100%;}
}

@media screen and (max-width: 900px) {
    .main {display: block;   
        text-align: center;}
    .box1 {width: 100%;}
    .box2 {width: 100%;}
}

@media screen and (max-width: 900px) {
    .main {display: block;
        text-align: center;}
    .info {width: 100%;}
    .background {width: 100%;}
    .stats {width: 100%;}
}
