body {
    font-family: Arial, sans-serif;
    color: #d1ab2e;
    background-color: #003;
}

html,
body {
    margin: 0;
}

header,
section,
footer {
    text-align: center;
    padding: 10px;
    position: relative;
    z-index: 1;
    color: lightgray;
}

section {
    display: flex;
    justify-content: space-evenly;
    /*align-items: flex-start;*/
    flex-wrap: wrap;
    /* align items to top */
    gap: 0px;
    /* space between elements */
}


#responseContainer {
    border: 2px solid lightblue;
    color: white;
    opacity: 0.7;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 20px;
    display: none;
    min-width: 70%;
    text-align: left;
    margin: 30px;
    font-size: 16px;
    /* Initially hide response container */
}

#responseContainer strong, #responseContainer h2, #responseContainer h3, #responseContainer h4 {
    color: #d4af37;
}

.horoskop {
    flex: 1 1 100%;
    /* Sets the basis for each gatara to not exceed 48%, allowing two per row */
    max-width: 100%;
    /* Ensures it does not grow beyond this value */
    overflow: hidden;
    margin: 20px auto;
    /* space between image and text */
}

.horoskop img {
    width: 250px;
    height: auto;
    padding: 10px;
    border-radius: 30%;
    border: 1px solid #d1ab2e;
}

.horoskop img:hover {
    box-shadow: 0 0 15px 5px rgba(255, 255, 200, 0.8);
    /* Glowing effect */
}

.name {
    font-size: 20px;
    font-weight: bold;
    color: #d4af37;
    padding: 10px 0;
}

/* Dropdown section styling */
.dropdown-section {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.dropdown-section label  {
    display: block;
    color: #d4af37;
    margin: 10px 0 5px;
}

.dropdown-section select {
    width: 100%;
    height: 40px;
    border: 1px solid #d4af37;
    background-color: #1c1c1c;
    color: #d4af37;
    border-radius: 5px;
    padding: 5px;
    font-size: 16px;
    margin-bottom: 15px;
}

.dropdown-section .dropdown-item {
    margin: 10px auto;
    max-width: 400px;
    min-width: 200px;
    flex: 1 1 300px; /* Allow items to grow and shrink */
}

/* Responsive design for mobile devices */
@media only screen and (max-width: 767px) {
    .name {
        font-size: 25px;
        /* Povećanje fonta */
    }

    .horoskop {
        flex: 1 1 100%;
        /* Take full width on smaller screens */
        max-width: 100%;
    }

    .horoskop img {
        max-width: 100%;
        /* Allow image to expand full width of the container */
        margin: 0 auto;
        /* Center the image */
    }

    header {
        font-size: 14px;
        /* Povećanje fonta */
    }

    .description,
    footer p {
        font-size: 14px;
        /* Povećanje fonta */
    }

    section {
        flex-direction: column;
        align-items: center;
    }

    .dropdown-section {
        max-width: 90%;
    }

    .dropdown-section select {
        width: 90%;
        font-size: 18px;
        /* Veće slovo za bolju čitljivost na mobilnim uređajima */
    }

    .dropdown-section .dropdown-item {
        width: 100%; /* Full width on mobile */
        margin: 5px 0;
    }

    #responseContainer {
        font-size: 18px;
        /* Veće slovo za bolju čitljivost */
    }
}