body {
    font-family: Arial, sans-serif;
    color: #e0e0e0;
    background-color: rgb(14, 7, 85);
}

html,
body {
    margin: 0;
}

header,
section,
footer {
    text-align: center;
    padding: 10px;
    position: relative;
    z-index: 1;
}

#counter {
    font-size: 150px;
    text-align: center;
    display: block;
    font-weight: bold;
    color: #d1ab2e;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

h1,
h2,
h3 {
    color: #d1ab2e;
    /* zlatna za naslove */
    margin: 20px 0;
}

h1 {
    font-size: 36px;
    font-weight: bold;
}

.hidden {
    display: none;
}

#day::-webkit-scrollbar,
#year::-webkit-scrollbar {
    width: 10px; /* Širina scrollbara */
}

#day::-webkit-scrollbar-track,
#year::-webkit-scrollbar-track {
    background: #f1f1f1; /* Boja pozadine trake */
    border-radius: 10px; /* Zaobljenost trake */
}

#day::-webkit-scrollbar-thumb,
#year::-webkit-scrollbar-thumb {
    background-color: #888; /* Boja "thumb"-a */
    border-radius: 10px; /* Zaobljenost "thumb"-a */
}

#day::-webkit-scrollbar-thumb:hover,
#year::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Boja "thumb"-a prilikom hover-a */
}

#day, #month, #year {
    box-sizing: border-box;
}

#responseContainer {
    border: 2px solid lightblue;
    color: white;
    opacity: 0.7;
    border-radius: 10px;
    padding: 10px;
    display: none;
    min-width: 50%;
    text-align: left;
    margin: 30px;
    font-size: 16px;
    /* Initially hide response container */
}

#responseContainer strong {
    color: #d4af37;
}

button {
    padding: 15px 30px;
    font-size: 20px;
    margin-top: 50px;
    background-color: transparent;
    color: rgb(231, 231, 236);
    border: 1px solid white;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 1s ease-in-out, box-shadow 0.5s ease-in-out; /* Dodajemo transition za box-shadow */
}

button:hover {
    color: #d4af37;
    transform: scale(1.3);
    box-shadow: 0 0 15px #d4af37, 0 0 30px #d4af37, 0 0 45px #d4af37; /* Efekat sjaja */
}

.dropdown-section {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    min-width: 30%;
    width: 70%;
    margin: 0 auto;
    border: 1px solid;
    border-radius: 15px;
}

.dropdown-section label,
.dropdown-section input {
    display: block;
    color: rgb(192, 192, 192);
}

.dropdown-section label {
    margin: 10px auto;
}

.dropdown-section .dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    width: 90%;
}

.dropdown-section .dropdown-item select,
.dropdown-section .dropdown-item input {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    padding: 5px 10px;
    margin-bottom: 15px;
    border: 1px solid rgb(64, 64, 64);
    background-color: rgb(192, 192, 192);
    color: black;
    border-radius: 5px;
    font-size: 16px;
    color-scheme: dark;
}

/* Podesi širinu i marginu za inpute unutar date-container */
.date-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.date-container select {
    flex: 1;
    margin: 0 5px;
    height: 40px;
    padding: 5px 10px;
    border: 1px solid rgb(64, 64, 64);
    background-color: rgb(192, 192, 192);
    color: black;
    border-radius: 5px;
    font-size: 16px;
}

/* Resetuj marginu za prvi i poslednji input unutar date-container */
.date-container select:first-child {
    margin-left: 0;
}

.date-container select:last-child {
    margin-right: 0;
}

.dropdown-item select option {
    width: calc(90% - 20px);
    margin: auto;

}

input[type="time"] {
    width: 100%;
    height: 40px;
    padding: 5px 10px;
    margin-bottom: 15px;
    border: 1px solid rgb(64, 64, 64);
    background-color: rgb(192, 192, 192);
    color: black;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

#responseBox {
    padding: 10px;
    margin-bottom: 20px;
    background-color: #1c1c1c;
}

.dropdown-section .dropdown-item select {
    position: relative;
    width: 100%;
    height: 40px;
    padding: 5px 10px;
    margin-bottom: 15px;
    border: 1px solid rgb(64, 64, 64);
    background-color: rgb(192, 192, 192);
    color: black;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.dropdown-section .dropdown-item select::-ms-expand {
    display: none;
}

.dropdown-section .dropdown-item select:focus {
    outline: none;
}

.dropdown-section .dropdown-item select:after {
    content: "▼";
    font-size: 16px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

footer p {
    font-size: 16px;
    line-height: 1.4;
    max-width: 800px;
    margin: 20px auto;
    color: #e0e0e0;
}

/* Select2 container styling */
.select2.select2-container.select2-container--default {
    background-color: rgb(192, 192, 192);
    border: 1px solid rgb(64, 64, 64);
    border-radius: 5px;
    height: 40px;
    padding: 0;
    line-height: 40px;
    color: black;
    width: 100% !important;
}

.select2-container .select2-selection--single, 
.select2-container--default .select2-selection--single {
    border: 0px none !important; /* important */
    height: 38px !important;
    padding: 0;
    line-height: 38px;
    color: black !important;
    font-size: 16px;
}

.select2-container.select2-container--default.select2-container--open {
    border: 0px none !important;
    background-color: transparent;
}

/* Adjusting font and color of the selected option */
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    font-size: 16px;
    height: 35px !important;
    line-height: 35px !important;
    background-color: rgb(192, 192, 192);
    border: 0 none !important;
    color: black !important;
}

.select2-dropdown {
    border: 1px solid rgb(64, 64, 64) !important;
    border-radius: 5px;
    box-shadow: none;
}

.select2-dropdown .select2-search, .select2-dropdown .select2-search input {
    background-color: rgb(192, 192, 192);
    font-size: 16px;
    color: black;
    line-height: 30px;
}

/* Remove default select2 arrow and add custom arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent rgb(64, 64, 64) transparent;
    border-width: 0 5px 5px 5px;
}

/* Dropdown styling */
.select2-container--default .select2-results > .select2-results__options {
    background-color: rgb(192, 192, 192);
    color: black;
}

/* Option hover and selected state */
.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgb(192, 192, 192);
    color: #1c1c1c;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    overflow: auto !important;
    text-align: left;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 0px !important;/*do not delete*/
    padding: 0px;/*do not delete*/
    color: rgb(192, 192, 192);
}

.select2-selection {
    background-color: rgb(192, 192, 192) !important;
    color: black !important;
}

.select2-container--default .select2-selection--single {
    display: flex;
}

.select2-search--dropdown .select2-search__field,
.select2-container--default .select2-search--dropdown .select2-search__field {
    font-size: 16px;
    height: 30px;
    border: 1px solid rgb(14, 7, 85) !important;
}


@media only screen and (max-width: 767px) {

    .dropdown-section .dropdown-item {
        justify-content: center;
    }

    #responseContainer {
        font-size: 16px;
        /* Veće slovo za bolju čitljivost */
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    p,
    footer p {
        font-size: 16px;
    }

    section {
        padding: 10px;
    }

    .dropdown-section {
        max-width: 90%;
        width: 85%;
    }

    .dropdown-section .dropdown-item select,
    .dropdown-section .dropdown-item input,
    .dropdown-section .dropdown-item .date-container,
    .select2-container {
        min-width: 80%;
        width: 100% !important;
        font-size: 16px;
    }

    .dropdown-section .dropdown-item .date-container input,
    .dropdown-section .dropdown-item .date-container select {
        min-width: 40px;
        width: 30%;
    }

    input[type="time"] {
        line-height: 30px;
    }

}