* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f2f1;
    color: #333;
}

a:link {
    color: #333;
}

a:visited {
    color: #333;
}

header, footer {
    background-color: #d8bdcc;
    height: 77px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}
header .header-content {
    display: flex;
    align-items: center;
    height: 100%;
}

header .header-content a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

header .header-content img {
    margin-right: 10px;
    height: 50px; /* Ensure the height is consistent */
}

header .header-content span {
    font-size: 1.5em;
    color: #333;
    line-height: 50px; /* Align text vertically with the image */
}


main {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 1000px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.main-content {
    display: flex;
    position: relative;
    z-index: 2;
}

.side-image {
    width: 150px;
    background-color: #f5f2f1;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    position: relative;
}

.side-image.iframe-visible {
    height: 655px;
}

.side-image img {
    max-width: 100%;
    margin-bottom: 5px; /* Margin bottom between image and menu-buttons */
}

.menu-buttons {
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.menu-buttons .menu-item {
    margin-bottom: 5px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease; /* Smooth color transition */
    color: #333;
}

.menu-buttons .menu-item a:hover {
    color: #d8bdcc;
}

.menu-buttons .menu-item:hover {
    color: #d8bdcc;
    cursor: pointer;
}

.dots {
    display: flex;
    justify-content: center;
    width: 100%;
    position: absolute;
    bottom: 5px;
}

.dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin: 0 5px;
}

.content {
    padding-left: 20px;
    flex: 1;
}

#map {
    width: 100%;
    min-height: 660px;
}

#map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.main-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/cmn_background_under.png') no-repeat center center;
    background-size: cover;
    z-index: 0; /* Ensure it is behind all other content */
}

footer {
    justify-content: center;
    font-size: 0.9em;
    color: #fff;
    text-align: center;
}

#map {
    min-height: 430px;
    height: auto;
    margin-top: 20px;
}

#image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    margin-top: 20px;
}

#image .container {
    background: url('img/tesou_content.png') no-repeat center center;
    background-size: contain;
    width: 100%;
    max-width: 733px;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: left;
    background-color: #f5f2f1;
    margin: 0 auto;
}

#map iframe {
    min-height: 450px; /* iframe???????? */
    height: 100%;
}

#image .title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

#image .highlight {
    color: #d8bdcc;
    font-weight: bold;
}
.info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 10px 0 10px;
}

.info-group {
    background-color: #faf9f9;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

.info-group p {
    margin-bottom: 10px;
}

.info-group p:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .info {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 10px;
        margin: 10px;
    }

    header, footer {
        padding: 0 10px;
    }

    header .header-content span {
        font-size: 1.2em;
    }

    .container {
        padding: 10px;
    }

    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .side-image {
        width: 100%;
        height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
        padding-right: 10px;
        margin-bottom: 10px;
    }

    .menu-buttons {
        flex-direction: column;
        width: 100%;
    }

    .menu-buttons .menu-item {
        margin-bottom: 5px;
    }

    .dots {
        position: static;
        margin-top: 10px;
    }
    #map {
        width: 100%;
        height: auto;
    }
    .content {
        padding-left: 0;
        width: 100%;
    }
}
