body {
    margin: 0;
    padding: 0;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.mapboxgl-ctrl-geocoder {
    position: absolute;
    top: 35px;
    left: 155px;
    z-index: 1;
    width: 300px;
    
}

#logo-name {
    position: absolute;
    width: 100px !important;
    height: 100px !important;
    top: 17px;
    left: 40px;
    margin-left: 0;
}

.place-name {
    font-weight: bold;
    font-size: 16px;
    margin-top: 5px;
}

.place-postal {
    margin-top: 5px;
}

.place-description {
    margin-top: 5px;
}

.place-languages {
    margin-top: 20px;
    font-weight: bold;
    list-style-type: none;
}

.desc-button {
    background-color: white;
    color: black;
    padding: 11px 52px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    font-family: 'Arial Unicode MS Regular';
    font-weight: bold;
    margin-top: 90px;
    margin-left: 30px;
    background-repeat: no-repeat;
    background-position: 5px center;
    background-size: 36px;
    padding-left: 45px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-left: none;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.desc-button:hover {
    background-color: #3e8e41; /* Change the background color on hover */
    border: 0.3;
    border-color: #3e8e41;
    color: white;
}

.lang-button {
    background-color: white; 
    border: 0.3; 
    color: black; 
    padding: 11px 60px;
    text-align: center; 
    text-decoration: none; 
    display: inline-block; 
    font-size: 15px; 
    font-family: 'Arial Unicode MS Regular';
    font-weight: Regular;
    margin-top: 0px; 
    margin-left: -6px;
    background-repeat: no-repeat;
    background-position: 5px center;
    background-size: 36px;
    padding-left: 45px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: none;
}

.lang-button:hover {
    background-color: #3e8e41;
    border: 0.3;
    border-color: #3e8e41;
    color: white;
}

.new-container {
    width: 415px;
    height: 555px;
    position: absolute;
    top: 100px;
    left: 40px;
    overflow: auto;
    background: white;
    opacity: 1;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 5px 15px 50px rgba(0, 0, 0, 0.25);
}

.new-container::-webkit-scrollbar {
    display: none;
}

.new-province-name {
    width: 381px;
    color: black;
    position: absolute;
    top: 201px;
    left: 32px;
    font-family: 'Arial Unicode MS Regular';
    font-weight: Bold;
    font-size: 23px;
}

.new-province-image {
    width: 415px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.new-province-region {
    color: black;
    position: absolute;
    top: 234px;
    left: 32px;
    font-family: 'Arial Unicode MS Regular';
    font-weight: Medium;
    font-size: 16px;
    opacity: 1;
    text-align: left;
}

.new-langList-button {
    background-color: white; 
    border: 0.3; 
    color: black; 
    padding: 12px 255px;
    text-align: center; 
    text-decoration: none; 
    display: inline-block; 
    font-size: 15px; 
    font-family: 'Arial Unicode MS Regular';
    font-weight: Regular;
    margin-top: -100px; 
    margin-left: -6px;
    background-repeat: no-repeat;
    background-position: 5px center;
    background-size: 36px;
    padding-left: 45px;
    border-top: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    border-left: none;
    border-right: none;
    width: 346px;
}

.new-langList-button:hover {
    background-color: #3e8e41; /* Change the background color on hover */
    border: 0.3;
    border-color: #3e8e41;
    color: white;
}

.lang-list {
    list-style-type: none;
    /* width: 255px; */
    position: absolute;
    top: 355px;
    /* left: 0px; */
    font-family: 'Arial Unicode MS Regular';
    font-size: 15px;
    /* opacity: 1; */
}

.lang-item{
    margin-bottom: 40px; /* Add some spacing between list items */
}

.new-desc-button {
    background-color: white;
    color: black;
    padding: 11px 56px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    font-family: 'Arial Unicode MS Regular';
    font-weight: Regular;
    margin-top: 90px;
    margin-left: 30px;
    background-repeat: no-repeat;
    background-position: 5px center;
    background-size: 36px;
    padding-left: 45px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-left: none;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.new-desc-button:hover {
    background-color: #3e8e41; /* Change the background color on hover */
    border: 0.3;
    border-color: #3e8e41;
    color: white;
}

.new-lang-button {
    background-color: white; 
    border: 0.3; 
    color: black; 
    padding: 11px 62px;
    text-align: center; 
    text-decoration: none; 
    display: inline-block; 
    font-size: 15px; 
    font-family: 'Arial Unicode MS Regular';
    font-weight: bold;
    margin-top: 0px; 
    margin-left: -6px;
    background-repeat: no-repeat;
    background-position: 5px center;
    background-size: 36px;
    padding-left: 45px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-right: none;
    pointer-events: none;
}

.new-lang-button:hover {
    background-color: #3e8e41;
    border: 0.3;
    border-color: #3e8e41;
    color: white;
}

.translation-style {
    font-style: italic;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-desc{
    margin-bottom: 40px; /* Add some spacing between list items */
    font-size: 14px;
    width: 345px;
    /* top: 50px; 
    width: 350px;
    position: absolute;
    top: 36px;
    left: 32px;
    font-family: 'Arial Unicode MS Regular';
    font-size: 14px;
    opacity: 1;
    text-align: justify;
    padding-bottom: 40px; /* Add some spacing between list items */
} 

.lang-header{
    color: black;
    position: absolute;
    left: 46%;
    transform: translateX(-46%);
    font-family: 'Arial Unicode MS Regular';
    font-weight: bold;
    font-size: 23px;
    opacity: 1;
    text-align: center;
}

.lang-table th {
    padding-top:65px;
    padding-bottom: 10px;
    padding-right: 20px;
    font-weight: bold;
    text-align: center;
    font-family: 'Arial Unicode MS Regular';
    font-size: 18px;
}

.lang-table tr {
    /* padding-inline-start: 200px; */
    background-color: #fff;
    font-family: 'Arial Unicode MS Regular';
    font-size: 12px;
    /* padding-left: 1000px; */
}

  
.lang-table td {
    padding: 4px 25px;
    padding-inline-start: 20px;
}

.phrase-style {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 165px;
}

/* Back button styles */
.back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #fff; /* set the background color to white */
    border: none;
    border-radius: 50%;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
    background-image: url("../icon/back.png");
    background-repeat: no-repeat;
    background-size: 26px;
    background-position: center;
    cursor: pointer;
    opacity: 0.5;
    transition: background-color 0.3s, opacity 0.3s;  
}

/* hide the background image */
.back-button:hover {
    background-color: #fff; /* change the background color to white on hover */
    opacity: 1;
}

.back-button img {
    max-width: 100%;
}

.sidebar-image img {
    width: 415px;
    height: 200px;
    object-fit: cover;
}

.sidebar-container {
    display: none;
}

.lang-container {
    display: none;
}

.board {
    width: 415px;
    height: 555px;
    position: absolute;
    top: 100px;
    left: 40px;
    overflow: hidden;
    background: white;
    opacity: 1;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 5px 15px 50px rgba(0, 0, 0, 0.25);
}

.province-name {
    width: 381px;
    color: black;
    position: absolute;
    top: 220px;
    left: 32px;
    font-family: 'Arial Unicode MS Regular';
    font-weight: Bold;
    font-size: 23px;
}
.region-name {
    color: black;
    position: absolute;
    top: 250px;
    left: 32px;
    font-family: 'Arial Unicode MS Regular';
    font-weight: Medium;
    font-size: 16px;
    opacity: 1;
    text-align: left;
}

.native-lang{
    width: 381px;
    color: black;
    position: absolute;
    top: 276px;
    left: 32px;
    font-family: 'Arial Unicode MS Regular';
    font-weight: Bold;
    font-size: 16px;

}

.lang-spoken {
    color: black;
    position: absolute;
    top: 312px;
    left: 32px;
    font-family: 'Arial Unicode MS Regular';
    font-weight: Medium;
    font-size: 15px;
    opacity: 1;
    text-align: left;
    margin-right: 30px;
}

.region-desciption {
    width: 350px;
    position: absolute;
    top: 363px;
    left: 32px;
    font-family: 'Arial Unicode MS Regular';
    font-size: 15px;
    opacity: 1;
    text-align: justify;
}

.close-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: #fff;
    background-image: url("../icon/close.png");
    border: none;
    border-radius: 50%;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0.5;
    transition: background-color 0.3s, opacity 0.3s; 
}

.close-icon::before, .close-icon::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 1px;
    background-color: #000;
}

.close-icon::before {
    transform: rotate(45deg);
}

.close-icon::after {
    transform: rotate(-45deg);
}

/* hide the background image */
.close-icon:hover {
    background-color: #fff; /* change the background color to white on hover */
    opacity: 1;
}

/* For screens smaller than 600px */
@media (max-width: 599px) {
    .new-container {
        width: 90%;
        height: auto;
        top: 110px;
        left: 5%;
    }

    .new-province-name {
        width: 80%;
        top: 30px;
        left: 10%;
        font-size: 20px;
    }

    .new-province-image {
        width: 100%;
        height: auto;
    }

    .new-province-region {
        top: 110px;
        left: 10%;
        font-size: 14px;
    }
}

/* For screens smaller than 600px */
@media (max-width: 600px) {
    .mapboxgl-ctrl-geocoder {
        top: 10px;
        left: 20px;
        width: calc(100% - 40px);
        /*margin: 0 auto;*/
        position: relative;
    }

    #logo-name {
        width: 60px !important;
        height: 60px !important;
        top: 20px;
        left: calc(50% - 30px);
        position: relative;
        z-index: 999;
    }

    .desc-button {
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
        display: block;
        padding: 11px 20px;
        font-size: 14px;
        background-position: 5px center;
        padding-left: 40px;
    }

    .lang-button {
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
        display: block;
        padding: 11px 20px;
        font-size: 14px;
        background-position: 5px center;
        padding-left: 40px;
    }

    .new-container {
        width: calc(100% - 40px);
        height: 400px;
        margin: 20px auto;
        position: relative;
    }

    .new-province-name {
        width: 80%;
        top: 120px;
        left: 10%;
        font-size: 20px;
    }

    .new-province-image {
        width: 100%;
        height: 150px;
    }

    .new-province-region {
        top: 175px;
        left: 10%;
        font-size: 14px;
    }
}
/* For screens between 600px and 1200px */
@media (min-width: 600px) and (max-width: 1200px) {
    .mapboxgl-ctrl-geocoder {
        top: 10px;
        left: 70px;
        width: 250px;
    }

    #logo-name {
        width: 90px !important;
        height: 90px !important;
        top: 15px;
        left: 30px;
        z-index: 1;
    }

    .desc-button {
        margin-top: 60px;
        margin-left: 30px;
        padding: 11px 45px;
        font-size: 14px;
        background-position: 5px center;
        padding-left: 40px;
    }

    .lang-button {
        padding: 11px 50px;
        font-size: 14px;
        margin-top: 50px;
        margin-left: -5px;
        background-position: 5px center;
        padding-left: 40px;
    }

    .new-container {
        width: 90%;
        height: auto;
        margin: 20px auto;
        position: relative;
    }

    .new-province-name {
        width: 100%;
        top: 15px;
        left: 0;
        font-size: 20px;
    }

    .new-province-image {
        width: 100%;
        height: 180px;
    }

    .new-province-region {
        top: 225px;
        left: 10%;
        font-size: 14px;
    }

    .new-province-description {
        top: 280px;
        left: 10%;
        font-size: 14px;
        text-align: justify;
    }
}
