@font-face {
    font-family: ubuntu;
    src: url("./f1_izdelek/fonts/Ubuntu-Regular.ttf");
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: white;
    margin: 0;
    zoom: 80%;
}

* {
    box-sizing: inherit;
}

#search-section {
    padding: 100px 0;
    background: 
        linear-gradient(27deg, #151515 5px, transparent 5px) 0 5px,
        linear-gradient(207deg, #151515 5px, transparent 5px) 10px 0px,
        linear-gradient(27deg, #222 5px, transparent 5px) 0px 10px,
        linear-gradient(207deg, #222 5px, transparent 5px) 10px 5px,
        linear-gradient(90deg, #1b1b1b 10px, transparent 10px),
        linear-gradient(#1d1d1d 25%, #1a1a1a 25%, #1a1a1a 50%, transparent 50%, transparent 75%, #242424 75%, #242424);
    background-size: 20px 20px;
    background-color: #131313;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    height: 710px;
}

form {
    display: flex;
    width: 90%;
    max-width: 850px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    clip-path: polygon(2% 0%, 100% 0%, 98% 100%, 0% 100%);
    background: linear-gradient(90deg, #e10600, #1f1f1f);
}

form > * {
    background: white;
    margin: 0;
}

form:focus-within {
    border-color: #e10600;
}

select {
    width: 30%;
    padding: 12px 15px;
    border: none;
    background-color: #eee;
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    color: #1f1f1f;
    cursor: pointer;
    appearance: none;
    background-image: url('../images/arrow.svg');
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 12px auto;
}

input[type="text"] {
    flex-grow: 1;
    padding: 12px 20px;
    border: none;
    font-family: 'Ubuntu', sans-serif;
    font-size: 15px;
    outline: none;
}

button {
    width: 120px;
    background: linear-gradient(135deg, #e10600 0%, #b00500 100%);
    color: white;
    font-family: 'Ubuntu', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

button:hover {
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.6);
}

button:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    form {
        width: 95%;
        flex-direction: column;
    }
    
    select, input[type="text"], button {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    button {
        padding: 15px;
    }

    nav {
        gap: 15px;
    }
}

#expanding-sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 50px 0;
    gap: 20px;
}

.expand-box {
    width: 90%;
    max-width: 800px;
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: rgba(255,255,255,1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border-left: 7px solid #e10600;
}

h2 {
    cursor: pointer;
    margin: 0;
    text-align: center;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

h2:hover {
    color: #e10600;
    transform: scale(1.02);
}

.expand-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 30px;
}

.expand-content.active {
    max-height: none;
    padding: 20px 30px;
}

.expand-content h3 {
    color: #e10600;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 25px;
}

.expand-content ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.expand-content li {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid #ccc;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.expand-content li:hover {
    transform: scale(1.02);
    border-left-color: #e10600;
}

.expand-content li b {
    color: #333;
}

.expand-box::-webkit-scrollbar {
    width: 6px;
}

.expand-box::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.expand-box::-webkit-scrollbar-thumb {
    background: #e10600;
    border-radius: 10px;
}

.expand-box::-webkit-scrollbar-thumb:hover {
    background: #b00500;
}

@media (max-width: 768px) {
    .expand-box {
        width: 90%;
        padding: 5px;
        max-height: 400px;
    }

    h2 {
        font-size: 18px;
    }
}

hr{
    margin: 0;
    padding: 0;
    background-color: #111;
    height: 4px;
    overflow: hidden;
    position: relative;
}
hr::after{
    content: "";
    display: block;
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, transparent, #e10600, transparent);
    animation: sweep 3s infinite linear;
}

@keyframes sweep {
    0% { transform: translateX(-200%); }
    100% { transform: translateX(200%); }
}

.section-bg {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    padding: 0;
}

#expanding-sections {
    position: relative;
    z-index: 1;
}

.section-zgodovina {
    background-image: url("../images/zgodovinarska.png");
}

.section-vodstvo {
    background-image: url("../images/fiaV3.png");
    background-repeat: no-repeat;
}

.section-ekipe {
    background-image: url("../images/f1ekipe.webp");
    background-color: black;
    background-size: 65% 100%;
    background-repeat: no-repeat;
}

.section-vozniki {
    background-image: url("../images/vozniki.png");
}