﻿/* General Styles */
body {
    background-color: #1a1a1d;
    color: #f5f5f5;
    font-family: Bebas-Neue,sans-serif;
}

.login-area {
    display: flex;
    justify-content: center;
    align-items:center;
    flex-direction:column;
}

.discord {
    color:white !important;
    background-color: #7289da !important;
    border: none;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 30px;
}

    .discord:hover {
        background-color: rgb(102, 122, 193) !important;
        color:black !important;
    }

.configurator-signed-out {
    display: flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    margin-top: 50px;
}
.configurator-signed-out p {
    font-family: Arial;
}

.button {
    background-color: lawngreen;
    color: black;
    border-radius: 20px;
}

    .button:hover {
        background-color: forestgreen;
        color: black;
    }

.profile {
    display: flex;
    align-content: space-between;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

    .profile img {
        margin-right: 20px;
        border-radius: 50%;
    }

.profile-left {
    flex-wrap: wrap;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}



/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.tabs {
    justify-content: center;
    display: flex;
    gap: 10px;
    background-color: transparent; 
    border: none; 
    padding: 0; 
    margin: 0; 
}

.tab {
    padding: 10px 20px;
    font-size: 1rem;
    color: black;
    background-color: lawngreen;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .tab.active {
        background-color: darkgreen;
        color: white;
    }

    .tab:hover {
        background-color: forestgreen;
        color: white;
    }

/* Tab area */
.tabs-panel-section {
    position: relative;
    padding-top: 10px;
    color: white;
    margin-top: 3vw;
}

.tabs-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #333;
}

.grid-container {
    position: relative;
    z-index: 1;
}

.tabs {
    justify-content: space-evenly;
    background-color: transparent;
    border-color: transparent;
    display: flex;
}

.tabs-title {
    cursor: pointer;
    flex: 1 0 auto;
    text-align: center; /* Center the text within the tabs */
    display: flex;
    transition: none !important;
    justify-content: space-evenly;
}

    .tabs-title a {
        padding: 20px;
        color: silver !important;
        font-size: max(2vw, 13px);
        background-color: transparent;
        border-bottom: outset;
        border-bottom-color: silver;
        text-align: center; /* Center the text */
        min-width: 100%;
    }

        .tabs-title a:hover {
            background-color: transparent;
            color: silver;
            border-bottom-color: limegreen;
        }

        .tabs-title a:after {
            background-color: transparent;
            color: silver;
        }

/* Active tab style */
.active a {
    border-bottom-color: lawngreen; /* Red border for active tab */
    background-color: transparent;
    color: white;
}

.tabs-content {
    background: transparent;
    padding: 20px;
    border-color: transparent;
}

.tabs-panel {
    display: none;
}

    .tabs-panel.active {
        display: block;
        opacity: 1;
    }

    .tabs-panel p {
        color: silver;
    }


    /* Tab Content */
    .tabs-panel .button {
        color: white;
        border-radius: 25px;
        min-width: 160px; /* Slightly wider for better usability */
        background-color: green;
        padding: 12px 20px; /* Added padding for better clickability */
        transition: background-color 0.3s ease-in-out; /* Smooth transition effect */
        letter-spacing: 1px;
    }

        .tabs-panel .button:hover {
            background-color: darkolivegreen;
            color: white;
        }

.tabs-panel {
    text-align: center;
}

.button-bar a {
    border-bottom: none;
    margin: 0;
}

.card-footer {
    background: #333;
    border: none;
}

.card-header {
    background: #444;
}

.card-header-top {
    background: #444;
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 5px;
}
.card-header p {
    margin-bottom: 0px;
    font-family:Arial;
}

.card {
    border: 3px #666 solid;
    border-radius: 15px;
    color: silver;
}

.setup-card {
    background: #444;
}

#setupName input, #setupName input:has([focus]) {
    background: #555;
    color: silver;
    border: none;
}






































/* Container and Content */
.container-bottom {
    max-width: 900px;
    margin: 0 auto;
}

.content {
    display: none; /* Hide all containers by default */
    background: #444;
    border: 3px solid #666;
    border-radius: 15px;
    padding: 20px;
}

    .content.active-container {
        display: block; /* Show only the active container */
    }

/* Tyres Section */
.tyres {
    display: flex;
    gap: 30px;
}

.tyres-section {
    flex: 1;
}

    .tyres-section h2 {
        font-size: 1.4rem;
        color: #f5f5f5;
        margin-bottom: 10px;
    }

/* Control Styles */
.control {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .control label {
        flex: 2;
        font-size: 1rem;
        color: silver;
    }

.slider {
    flex: 4;
    margin: 0 15px;
    appearance: none;
    height: 6px;
    background: #555;
    border-radius: 3px;
    outline: none;
    transition: background 0.3s ease;
}

    .slider::-webkit-slider-thumb {
        appearance: none;
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background: lawngreen;
        cursor: pointer;
    }

    .slider:hover {
        background: #666;
    }

.value {
    flex: 1;
    width: 60px;
    text-align: center;
    font-size: 14.2px;
    background: #555;
    border: none;
    border-radius: 4px;
    color: silver;
    padding: 4px;
    box-shadow: inset 0 0 5px #000;
    font-family: Arial;
    overflow:hidden;
}
    .value:focus {
        background: #555;
        border: none;
    }

.category {
    margin-bottom: 20px;
    background: green;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 0 10px black;
}

.slider-container {
    margin: 10px 0;
}

label {
    display: block;
    margin: 5px 0;
}

.switch-group {
    margin: 15px 0;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 25px;
    transition: 0.4s;
}

    .slider-toggle:before {
        position: absolute;
        content: "";
        height: 19px;
        width: 19px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        border-radius: 50%;
        transition: 0.4s;
    }

.switch input:checked + .slider-toggle {
    background-color: green;
}

    .switch input:checked + .slider-toggle:before {
        transform: translateX(25px);
    }

.guide-container {
    position: absolute;
    left: 10px; /* Slightly inward from the left */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Perfect vertical centering */
    width: 25%; /* Width for guide container */
    padding: 20px;
    background-color: #444;
    color: white;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 1000;
}

    .guide-container h3 {
        margin-bottom: 10px;
    }

    .guide-container p {
        font-size: 14px;
        line-height: 1.5;
    }

    .guide-container #close-guide {
        position: absolute;
        top: 10px;
        right: 10px;
        background: red;
        color: white;
        border: none;
        border-radius: 50%;
        width: 25px;
        height: 25px;
        cursor: pointer;
        font-size: 14px;
        line-height: 25px;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

.hidden {
    display: none;
}

#open-guide {
    position: fixed;
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #444;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 10px 20px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    rotate: 90deg;
}

.guide-content h2, .guide-content h3 {
    color: limegreen;
    margin-bottom: 5px;
}

.guide-content h2 {
    font-size: 18px;
}

.guide-content h3 {
    font-size: 16px;
    margin-top: 10px;
}

.guide-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.guide-content li {
    font-size: 14px;
    line-height: 1.5;
}

.guide-content p {
    margin-top: 5px;
    font-size: 14px;
}

.drag-over {
    background-color: rgba(0, 123, 255, 0.2); /* Light blue overlay */
    transition: background-color 0.2s ease;
}

#filterForm {
    min-width: 100%;
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

    #filterForm label {
        color: #777;
    }

    #filterForm select {
        color: grey;
        background-color: #444;
        border: solid 1px #333;
        font-family: Arial;
        min-width: 33%;
    }

        #filterForm select option {
            background-color: #222;
            color: #666;
        }

.filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

    .filter-row div {
        min-width: 14%;
    }

#trackName, #carName, #carClass {
    appearance: none; /* remove default arrow (optional for custom) */
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="black" height="10" viewBox="0 0 10 10" width="10" xmlns="http://www.w3.org/2000/svg"><polygon points="0,0 10,0 5,5"/></svg>') no-repeat right 0.5rem center;
    background-size: 0.6rem;
}

#nameSearch {
    background-color: #444;
    border: transparent;
    color: dimgrey;
}
#submitSearch:hover {
    background-color: #333 !important;
}

#resetButton {
    color:lightgrey;
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
}

#resetButton:hover {
    color: #333;
}

.sub-footer > a {
    color: grey;
    text-align:center;
    margin-top: 10px;
}

.sub-footer > a:hover {
    color: white;
}