:root {
    /* Default tema */
    --primary-color: #00B8FF;
    --primary-color2: #CFFF03;
    --secondary-color: #0056b3;
    --background-color: #020524;
    --background-color2: #020524;
    --background-color22: #020524;
    --text-color: #ffffff;
    --link-color: #0056b3;
    --hover-color: #003f7f;
    --text-stroke-color: #000000;
    --text-color1: #ffffff;
    --text-color2: #ffffff;
    --text-color11: #ffffff;
    --text-color22: #000000;
    --text-color-th: #d6c1c1;
}

/* Plava tema */
:root.blue-theme {
    --primary-color: #00B8FF;
    --primary-color2: #CFFF03;
    --secondary-color: #0056b3;
    --background-color: #020524;
    --background-color2: #020524;
    --background-color22: #020524;
    --text-color: #ffffff;
    --link-color: #0056b3;
    --hover-color: #003f7f;
    --text-stroke-color: #000000;
    --text-color1: #ffffff;
    --text-color2: #ffffff;
    --text-color11: #ffffff;
    --text-color22: #000000;
    --text-color-th: #d6c1c1;
}

/* Plava tema */
:root.white-theme {
    --primary-color: #00B8FF;
    --primary-color2: #CFFF03;
    --secondary-color: #0056b3;
    --background-color: #FAFAFA;
    --background-color2: #020524;
    --link-color: #0056b3;
    --hover-color: #003f7f;
    --text-stroke-color: #000000;
    --text-color: #000000;
    --text-color2: #ffffff;
    --text-color-th: #474242;
}

html body {
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@font-face {
    font-family: Dinot;
    src: url('/fonts/Dinot font.otf');
}

* {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    /* font-family: "Din Pro", sans-serif; */
    /* font-family: Dinot, sans-serif; */
}

.main {
    display: block;
    background-color: var(--background-color);
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    /* font-family: 'Arial', sans-serif; */
    color: var(--text-color);
}

.container {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    /* justify-content: center; */
    min-height: 100vh;
    overflow: hidden;
}

.header {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    padding: 0;
    margin-top: 50px;
    overflow: hidden;
    /* max-height: calc(100vh + 350px); */
    height: auto;
    /* aspect-ratio: 1/1; */
    z-index: 0;
}

.header-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    padding: 20px;
    position: absolute;
    top: 10px;
    left: 20px;
    width: auto;
    height: auto;
    z-index: 1000;
}

.header-logo {
    display: block;
}

.header-text {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    z-index: 1000;
    text-align: center;
    margin-top: 50px;
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-title h1, p {
    margin: 0 5px;
    color: var(--text-color);
}

.header-logo img {
    width: 50px;
    height: 50px;
}

.footer {
    display: block;
    position: relative;
    width: 100%;
    height: 50px;
    bottom: 0;
    text-align: center;
    background-color: var(--background-color);
    color: var(--text-color);
}

.footer p {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.about {
    padding: 30px;
    font-size: medium;
}

.about li, p {
    padding-bottom: 12px;
}

.aboutPage {
    min-height: 100vh;
    background-color: var(--background-color);
    padding-top: 100px;
}

.kontaktPage {
    min-height: 100vh;
    background-color: var(--background-color);
    padding-top: 100px;
}

.about li {
    list-style: decimal;
}

.about a {
    color: var(--text-color);
    text-decoration: none;
    height: auto;
}

.contact a {
    display: block;
    padding: 10px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    margin: 0;
    padding: 0;
    object-fit: contain;
}

.header-logo-container {
    display: block;
}

.header-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
    background-color: var(--background-color);
}

.btn-rezervisete-sada {
    margin: 20px auto;
    padding: 15px 30px;
    border-radius: 10px;
    background-color: var(--text-color);
    color: var(--text-color22);
    font-size: larger;
    font-weight: bolder;
}

.btn-rezervisete-sada:hover {
    cursor: pointer;
    background-color: var(--primary-color);
}

.header-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    justify-content: center;
    margin-top: 50px;
}

.header-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 100px;
    margin: 10px;
    padding: 10px;
    text-decoration: none;
    color: var(--text-color);
    gap: 10px;
}

.nav-menu {
    display: flex;
    position: absolute;
    top: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    margin-top: 30px;
}

.nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    gap: 20px;
    text-decoration: none;
    list-style: none;
    font-size: large;
}

.cars {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    width: 100%;
    height: 100%;
    cursor: pointer;
    max-width: 350px;
}

.cars form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.cars form input {
    text-align: center;
    max-width: 270px;
    min-width: 270px;
    height: 30px !important;
    max-height: 34px !important;
    align-items: center;
    font-size: 1em;
    padding: 1px 2px;
    border-radius: 10px;
}

.cars form option, select {
    text-align: center;
    max-width: 300px;
    min-width: 300px;
    height: 34px !important;
    max-height: 34px !important;
    align-items: center;
    font-size: 1em;
    padding: 1px 2px;
}

.cars form button {
    padding: 10px 30px;
    border-radius: 10px;
    height: auto;
}

.cars h3 {
    padding: 10px;
    margin: 10px;
    width: fit-content;
}

.cars h2 {
    width: 90%;
    text-align: center;
    text-wrap: wrap;
}

.cars h1 {
    font-size: 1.8em;
    font-weight: 900;
    text-align: center;
}

.cars h1 span {
    display: block;
}

.cars-details {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min-content;
    height: 0px;
    margin: 10px;
    padding: 10px;
    cursor: pointer;
    animation: fadeIn 0.5s ease-in-out forwards;
    color: var(--text-color);
}

.cars-details p {
    margin: auto;
}

.cars-details h3 {
    display: flex;
    justify-content: center;
    margin: auto;
    margin-top: 20px;
}

fadeIn {
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    0% {
        height: 0px;
    }

    100% {
        height: 100%;
    }
}

.car-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.cars table {
    display: block;
    justify-content: center;
    margin: auto;
    width: fit-content;
    height: auto;
    background-color: var(--background-color);
    padding: 30px;
    font-size: 1.2em;
}

.cars .textColorTable {
    color: var(--text-color-th);
}

.cars table tr {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.cars table th, td {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    min-width: 100px;
    margin: 0;
    padding: 10px 20px;
    border: gray 1px solid;
}

.topBorder td {
    border-top: 1px solid transparent;
}

.cars .bottomBorder td {
    border-bottom: 1px solid transparent;
}

.cars .leftBorder {
    border-left: 0px solid transparent;
}

.cars .rightBorder {
    border-right: 0px solid transparent;
}

.car-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: fit-content;
    padding: 20px;
    height: 100%;
    background-color: var(--background-color);
}

.car-card img {
    width: 50%;
    height: auto;
}

* {
    -webkit-tap-highlight-color: transparent;
    outline: 0;
}

.car-details {
    padding: 10px 42px;
    border: solid 1px var(--primary-color);
    border-radius: 10px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.car-details:hover {
    border-color: var(--secondary-color);
}

.language-switcher {
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: absolute;
    top: 20px;
    right: 120px;
    z-index: 1000;
    background-color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    text-align: right;
    margin: 10px;
    margin-top: 0px;
    margin-bottom: 0px;

}

.language-switcher a {
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 0px;
}

.language-switcher a:hover {
    color: var(--text-color2);
}

.main-header {
    display: flex;
    position: relative;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.main-header .header-button-text-wrapper h2 {
    margin-top: 20%;
}

.btn-menu-close {
    display: block;
    margin: auto;
    background-color: transparent;
    background-image: url(./icons/arrow_up_icon.png);
    background-size: 100% 100%;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.btn-menu-wrapper {
    display: flex;
    margin: auto;
    justify-content: right;
}

.close_anim {
    animation: shrink 0.6s ease forwards;
    display: none;
}

.close_anim::after {
    display: none;
}

.menuButtonWrapper {
    display: inline-block;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.menuButton {
    position: absolute;
    top: 18px;
    right: 18px;
    margin-right: 18px;
    width: 50px;
    height: 50px;
    font-size: 30px;
    font-weight: 100;
    color: var(--text-color2);
    background-color: transparent;
    border: 3px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    z-index: 1000;
}

.barWrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    margin: auto;
    height: 100%;
    align-items: center;
}

.bar {
    background-color: var(--primary-color);
    width: 36px;
    height: 6px;
    margin-top: 3px;
    margin-bottom: 3px;
    z-index: 100;
    /* border: 1px solid white; */
    border-radius: 4px;
}

.menuButton .fa {
    font-size: 38px;
    font-weight: 500;
    font-style: normal;
}

.menu {
    display: none;
    position: relative;
    z-index: 2000;
}

.menuButton {
    display: block;
}

.menu-info a {
    padding: 5px 0;
}

.top_nav_links {
    /* z-index: 21; */
    display: block;
    position: absolute;
    top: 0;
    width: 280px;
    height: auto;
    right: 18px;
    flex-direction: row;
    justify-content: center;
    background-color: var(--primary-color);
    /* animation: growFromTopToBottom 0.7s linear forwards; */
    /* animation-iteration-count: 1; */
    border-radius: 0 0 0 20px;
}

.top_nav_links ul {
    background-color: var(--primary-color);
}

.top_nav_links li,
a {
    text-decoration: none;
    list-style: none;
    color: var(--text-color2);
    display: flex;
    justify-content: left;
    margin-bottom: 5px;
}

.top_nav_links a:hover {
    opacity: 50%;
}

.top_nav_links i {
    width: 30px;
}

.nav-icon {
    width: 100%;
    height: auto;
}

.nav-icon img {
    width: 100%;
    object-fit: cover;
}

.korisnickiCentar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    text-align: center;
    gap: 50px;
}

.korisnickiCentar-card-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    gap: 50px;
    text-align: center;
}

.fab-floating {
    display: flex;
    flex-direction: column;
    align-items: end;
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    background-color: transparent;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--text-color);
    color: #fff;
    border: none;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.fab-btn:hover {
    background: #0056b3;
}

.fab-menu {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 10px;
    animation: fadeInUp 0.3s;
    background-color: var(--text-color);
    border-radius: 10px;
}

.fab-menu.show {
    display: flex;
}

.fab-menu a {
    /* margin: 8px 0; */
    background: #fff;
    color: #333;
    border-radius: 30px;
    margin: 5px 0;
    padding: 10px 18px 10px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    min-width: 140px;
    transition: background 0.2s;
}

.fab-menu a:hover {
    background: #f0f0f0;
}

.fab-menu i {
    margin-right: 10px;
    font-size: 1.3em;
}

.faq-container {
    display: flex;
    max-width: 1100px;
    margin: 40px auto;
    gap: 32px;
    margin-top: 150px;
}

.faq-sidebar {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.2s;
    outline: none;
}

.faq-sidebar-btn.active, .faq-sidebar-btn:hover {
    background: #0056b3;
}

.faq-svg {
    width: 38px;
    height: 38px;
    background: #fff;
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 80vw;
}

.faq-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
    overflow: hidden;
    transition: box-shadow 0.2s;
    margin: 10px 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 20px 28px;
    font-size: 1.15em;
    font-weight: 500;
    background: #f7f7f7;
    border: none;
    width: 100%;
    outline: none;
    text-align: left;
    /* min-width: 300px; */
}

.faq-arrow {
    transition: transform 0.2s;
}

.faq-card.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    padding: 0 28px;
    color: var(--text-color22);
    font-size: 1em;
    transition: max-height 0.3s, padding 0.3s;
    /* min-width: 300px; */
}

.faq-answer p {
    margin: 0;
    padding: 18px 0;
    line-height: 1.6;
    color: var(--text-color22);
}

.faq-card.open .faq-answer {
    max-height: 300px;
    padding: 18px 28px 24px 28px;
    overflow: auto;
}

.faq-card.open .faq-question {
    font-weight: bold;
}

@media (max-width: 800px) {
    .faq-container {
        margin-top: 100px;
        flex-direction: column;
    }

    .faq-sidebar {
        flex-direction: column;
        gap: 8px;
        min-width: 0;
    }

    .faq-sidebar-btn {
        font-size: 1em;
        padding: 10px 8px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shrink {
    from {
        height: 85px;
        visibility: visible;
        transform: translateY(0);
        color: var(--text-color2);
        background-color: transparent;
    }

    to {
        height: 0px;
        visibility: hidden;
        transform: translateY(0);
        color: transparent;
    }
}

@keyframes growFromTopToBottom {
    from {
        /* top: -600px; */
        transform: translateY(-800px);
    }

    to {
        /* top: 0; */
        transform: translateY(0);
        color: var(--text-color2);
    }
}

@keyframes growFromBottomToTop {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-800px);
        color: var(--text-color2);
    }
}

@media only screen and (max-width: 1100px) {
    .nav-menu {
        display: none;
    }
}

@media only screen and (max-width: 600px) {

    .header-icons {
        flex-direction: row;
    }

    .header-icon-container {
        width: 100px;
        height: 100px;
        font-size: small;
        padding: 5px;
    }

    .korisnickiCentar-card-wrapper {
        flex-direction: column;
    }

    .nav-menu {
        display: none;
    }

    .header-text {
        display: block;
    }

    .menuButton {
        display: block;
        right: 3px;
    }

    .header-logo-container {
        display: block;
    }

    .header-container {
        padding: 5px;
        top: 15px;
        left: 5px;
        font-size: 0.5rem;
    }

    .header {
        display: block;
        width: 100%;
        height: 100%;
    }

    .top_nav_links {
        right: 0px;
    }

    .cars {
        width: 100%;
    }

    .cars h1 {
        margin: auto 10px;
    }

    .car-card {
        flex-direction: column;
        padding: 10px;
    }

    .car-card table {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 10px;
        margin: auto;
        overflow: auto;
    }

    .car-card table td {
        font-size: 10px;
        padding: 5px;
        min-width: auto;
        width: 35px;
    }

    .cars .car-card img {
        width: 90%;
        padding: 10px;
    }

    .language-switcher {
        top: 20px;
        right: 80px;
        padding: 8px 12px;
        margin: 0px;
    }

    html, body {
        overflow-x: hidden;
    }

}