body {
    font-family: Arial, sans-serif;
    color: #d1ab2e;
    background-color: rgb(14, 7, 85);
}

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;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

section h2 {
    text-align: left;
}

.gatara {
    flex: 1 1 30%;
    max-width: 30%;
    overflow: hidden;
    margin: 20px auto 0px auto;
}

.gatara img {
    width: 250px;
    height: auto;
    padding: 5px;
    border-radius: 20%;
    border: 3px solid #d1ab2e;
}

.gatara 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;
    /* gold color */
}

.name a:-webkit-any-link {
    color: #d4af37;
    text-decoration: none;
}

.description {
    margin-top: 5px;
    font-size: 16px;
    color: lightgrey;
    /* coffee color */
    padding: 0 30px;
    /* padding for longer text */
    text-align: justify;
    /* justify text for better readability */
}

.accordion {
    cursor: pointer;
    transition: background-color 0.4s ease;
    display: flex;
    /*align-items: center;*/
    align-items: baseline;
    justify-content: center;
    z-index: 1; /* Ensure it is clickable */
    pointer-events: auto; /* Ensure it can be clicked */
}

.accordion:hover {
    background-color: transparent;
}

.accordion .arrow {
    margin: 0 5px 0 10px;
    transition: transform 0.4s ease;
    flex-shrink: 0; /* Prevent shrinking of the arrow */
}

.panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.active .arrow {
    transform: rotate(90deg);
}

.read-more-btn {
    background-color: transparent;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
}

.read-more-btn:hover {
    background-color: transparent;
}

/* Responsive design for mobile devices */
@media only screen and (max-width: 767px) {
    .name {
        font-size: 14px;
        /* Povećanje fonta */
    }

    .gatara {
        flex: 1 1 45%;
        /* Take full width on smaller screens */
        max-width: 45%;
    }

    .gatara img {
        max-width: 90%;
        margin: 0 auto;
    }

    header {
        font-size: 14px;
        /* Povećanje fonta */
    }

    .description,
    footer p {
        font-size: 14px;
        /* Povećanje fonta */
    }

    .description {
        padding: 0px;
    }

    .accordion {
        justify-content: flex-start;
        align-items: baseline;
        z-index: 1;
        pointer-events: auto;
        padding: 0 0 0 5%;
    }

    .accordion .arrow {
        margin: 0 10px 0 0;
        width: auto;
    }
}