html{
    background-image: url(../media/f1background.jpg);
    background-color: black;
    background-size: cover;
    background-attachment: fixed;
    font-size: 100%;
}

body {
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    border: 2px solid black;
    max-width: 1000px;
    box-shadow: 5px 5px 10px black;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.mainf1title {
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 200%;
    flex-grow: 1;
    text-align: center;
}
.music-button {
    margin-top: 5px;
    padding: 10px 20px;
    font-size: 0.9rem;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.fialogotop, .f1logo {
    height: 50px;
    width: auto;
}

h2 {
    font-size: 125%;
}

.solid-line {
    border: none;
    border-top: 2px solid black;
    width: 100%;
    margin: 10px auto;
}

.f1navbar {
    background-color: gainsboro;
    padding: 10px 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
a {
    text-decoration: underline;
}
.navbarlist {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.highlights {
    font-weight: bold;
}


.tooltip {
    position: relative;
    cursor: pointer;
    color: red;
    font-weight: bold;
    
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 120%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.9em;
    z-index: 10;
}


.dirty-air{
    flex: 1;
    text-align: justify;
}
.pre-2022{
    font-size: 1;
    line-height: 1.5;
}
.dirty-air-image {
    max-width: 40%;
    height: auto;
    flex-shrink: 0;
    border-radius: 5px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.dirty-air-image:hover {
    transform: scale(3.5); 
    z-index: 10; 
}

.bigandugly {
    flex: 1;
    text-align: justify;
}

.problems-2022{
    font-size: 1;
    line-height: 1.5;
    justify-content: space-between;
    gap: 20px;
}

.bigandugly-image {
    max-width: 20%;
    height: auto;
    flex-shrink: 0;
    border-radius: 5px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    transform: rotate(-90deg);
}

.bigandugly-image:hover {
    transform: scale(1.5); 
    z-index: 10; 
}

details {
    margin-bottom: 20px;
}

summary {
    font-size: 1.125rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #ddd;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background-color: white;

}

th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: left;
}

.bold{
    font-weight: bold;
}

.motor-header, .chassis-header{
    font-weight: bold;
    font-size: 125%;
    text-align: center;
}

.rulechanges-minititle{
    font-weight: bold;
}


.highlight {
    font-weight: bold;
}

.tooltip {
    position: relative;
    cursor: pointer;
    color: red;
    font-weight: bold;
    
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 120%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.9em;
    z-index: 10;
}


.navbarlist {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.navbaritem {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: underline;
}

.navbaritem:visited {
    color: gray;
}

.sources-section {
    margin-top: 30px;
    padding: 15px;
    background-color: #f1f1f1;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sources-section h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.sources-list {
    list-style-type: none;
    padding: 0;
}

.sources-list li {
    margin: 5px 0;
}

.sources-list a {
    text-decoration: none;
    color: #0073e6;
    font-weight: bold;
}

.sources-list a:hover {
    text-decoration: underline;
    color: #005bb5;
}

a {
    text-decoration: underline !important;
}

.nav-menu a, 
.link-list a {
    text-decoration: underline;
}


a:visited {
    color: #5a5a5a; 
}

a:link {
    color: #0073e6; 
}


.rulechanges-minititle{
    font-weight: bold;
}

.gallery-section {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
}

.gallery-section h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.gallery-item {
    width: 30%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #ddd;
}

.gallery-item p {
    font-size: 1em;
    padding: 10px;
    background-color: #f9f9f9;
    margin: 0;
}

body.accessibility-mode .f1,
body.accessibility-mode .f1text,
body.accessibility-mode .f1-titlestyle {
    background-color: black !important;
    color: white !important;
}

body.accessibility-mode .f1::before {
    background-color: yellow !important;
}

body.accessibility-mode .f1-titlestyle {
    color: yellow !important;
    font-size: 1.75em !important;
    font-weight: bold !important;
}

body.accessibility-mode .f1text {
    font-size: 1.5em !important;
}

body.accessibility-mode .f1logo,
body.accessibility-mode .f1genericimage {
    border: 2px solid white !important;
    filter: brightness(120%) contrast(150%);
}

body.accessibility-mode .menu-linkf1 {
    color: black !important;
    background-color: yellow !important;
    border: 2px solid yellow !important;
    font-size: 1.25em !important;
}

body.accessibility-mode .menu-linkf1:hover {
    background-color: white !important;
    color: black !important;
}

body.accessibility-mode .f1navbar,
body.accessibility-mode .dirty-air,
body.accessibility-mode .problems-2022,
body.accessibility-mode .gallery-item,
body.accessibility-mode .gallery-item p,
body.accessibility-mode table,
body.accessibility-mode th,
body.accessibility-mode td,
body.accessibility-mode summary,
body.accessibility-mode .history,
body.accessibility-mode .rulechanges,
body.accessibility-mode .problems,
body.accessibility-mode .sources-section,
body.accessibility-mode .tooltip::after {
    background-color: black !important;
    color: yellow !important;
    border: 2px solid white !important;
    font-size: 145%;
}


@media print {

    .f1navbar, .top-header, .navbarlist, .sources {
        display: none;
    }


    video {
        display: none;
    }


    img {
        max-width: 70%;
        height: auto;
    }


    body {
        font-size: 12pt; 
        line-height: 1.5; 
        color: black; 
        background-color: white; 
        margin: 0; 
        padding: 0;
    }


    table {
        border-collapse: collapse;
        width: 100%;
    }

    th, td {
        padding: 5px;
        text-align: left;
        border: 1px solid #000;
    }
}

