/* Autor: Martin Ciljak */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#banner {
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
}

body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

main {
    /* padding: 20px; */
    text-align: center;
}

h1 {
    margin-top: 120px; /* Adjust to clear the fixed nav */
    font-size: 3em;
    /*color: #333; */
    color: white;
    border-left: 10px solid red;
    text-align: left;
    padding-left: 10px;
    margin: 0 auto;
}

#text h2 {
    width: 50%;
    margin: 0 auto;
    text-align: left;
    border-left: 10px solid red;
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}
#text p {
    width: 50%;
    margin: 0 auto;
    padding: 10px;
    text-align: left;
    border-left: 8px solid #555;
}
.contact-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 20px;
}

.contact-item {
    padding: 5px;
    padding-top: 10px;
    text-align: center;
    border-color: red;
    border-width: 3px;
    border-style: solid;
}

.contact-photo {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.contact-text {
    margin-top: 10px;
    font-size: 1em;
    color: #555;
}

.contact-text .name {
    color: black;
    text-decoration: underline 2px;
    font-weight: bold;
    border-left: 5px solid red;
    width: 50%;
    margin: 0 auto;
}
#map {
    padding: 5px;
    border: 3px solid red;
}

/* Nav and responsive adjustments */
#nav {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    transition: opacity 0.8s, top 0.6s;
    border-bottom: 2px solid #333;
}

#nav .logo {
    height: 60px;
}

#nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

#nav ul li {
    margin-left: 20px;
}

#current {
    font-weight: bolder;
}

#nav ul li a {
    color: red;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid red;
    transition: color 0.5s, background-color 0.5s;
}

#nav ul li a:hover {
    color: white;
    background-color: red;
}

/* Hide dropdown button by default */
#dropdown-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: red;
    cursor: pointer;
}

@media (max-width: 800px) {
    #nav .logo {
        height: 40px;
    }
    #banner h1 {
        font-size: 1em;
    }

    #nav ul {
        flex-direction: column;
        text-align: right;
    }
    #nav ul li {
        /* margin-left: 0; */
        margin-bottom: 10px;
        margin-top: 10px;
    }
}
