/* Alapstílusok */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    text-align: left;
    max-width: 100%;
}


html {
    background-image: url("../Képek/autok/mclaren.jpg");
    background-attachment: fixed;
    background-size: cover;
    background-color: #272822;
    min-height: 100vh;
    transition: background-image 0.5s ease;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    padding: 0 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header stílusok */
.header {
    background-color: #e10600;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
}

.menu-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.menu-button {
    background-color: white;
    color: #333;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.menu-button:hover {
    background-color: #333;
    color: white;
}

/* Gombok stílusai */
#dark-mode-toggle,
#bg-change-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

#dark-mode-toggle:hover,
#bg-change-button:hover {
    background-color: #555;
}

/* Main tartalom */
main {
    background-color: rgba(221, 221, 221, 0.9);
    width: 90%;
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    flex-grow: 1;
}

/* Űrlap stílusok */
form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

fieldset {
    border: 2px solid #e10600;
    border-radius: 8px;
    padding: 20px;
}

legend {
    padding: 0 10px;
    font-weight: bold;
    color: #e10600;
    font-size: 1.2em;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e10600;
    border-radius: 6px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.radio-group {
    margin: 15px 0;
}

.radio-options {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

input[type="submit"],
input[type="reset"] {
    background-color: white;
    color: #333;
    border: 2px solid #e10600;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
    background-color: #e10600;
    color: white;
}

/* Footer stílus */
.footer {
    background-color: #e10600;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* Dark mode stílusok */
.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode main {
    background-color: rgba(30, 30, 30, 0.9);
    color: #e0e0e0;
}

.dark-mode .header,
.dark-mode .footer {
    background-color: #1a1a1a;
}

.dark-mode .menu-button {
    background-color: #333;
    color: #e0e0e0;
}

.dark-mode .menu-button:hover {
    background-color: #e10600;
}

.dark-mode input,
.dark-mode select,
.dark-mode textarea {
    background-color: #333;
    color: #e0e0e0;
    border-color: #555;
}

.dark-mode input[type="submit"],
.dark-mode input[type="reset"] {
    background-color: #333;
    color: #e0e0e0;
}

.dark-mode input[type="submit"]:hover,
.dark-mode input[type="reset"]:hover {
    background-color: #e10600;
    color: white;
}

/* Reszponzív stílusok */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .menu-section {
        justify-content: center;
    }

    main {
        width: 95%;
        padding: 20px 15px;
    }

    .radio-options {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {

    .content-table,
    .teams-table,
    .track-stats {
        display: block;
        overflow-x: auto;
        width: 100%;
    }

    .content-table th,
    .content-table td,
    .teams-table th,
    .teams-table td,
    .track-stats th,
    .track-stats td {
        font-size: 14px;
        padding: 10px;
    }

    .team-car,
    .flag {
        max-width: 100%;
        height: auto;
    }
}