/* @import url(https://fonts.googleapis.com/earlyaccess/notosansjp.css); */

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    overflow-x:hidden;
}

.page-content{
    width:auto;
}

.mainVisual{
    margin:auto;
    width: 100%;
    padding:0px;
}

.centerImg{
    margin:auto;
    width: 90%;
}

.warning{
    padding:10px;
    font-size:10px;
    text-align: left;
}


.map-holder{
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
#app {
    max-width: 428px;  /* iPhone 14 Pro Max width */
    margin: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

#map {
    height: 60vh; /* increased from 60vh to 80vh */
    min-height: 300px; /* ensures the map has a reasonable size on small screens */
    width: 100%;
}

#controls {
    position: absolute;
    top: 25px;
    left: 5px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.custom-control {
    /* background-color: #fff; */
    /* border: 1px solid #ccc; */
    padding: 5px;
    cursor: pointer;
    text-align: center;
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.custom-control img {
    max-width: 100%;
    max-height: 100%;
}


#getCurrentLocation{
    position: absolute;
    bottom: 10px;
    right: 5px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.location-control {
    padding: 5px;
    cursor: pointer;
    text-align: center;
    width: 45px;
    height: auto;
    margin-bottom: 10px;
}

.location-control img {
    max-width: 100%;
    max-height: 100%;
}



/*Location modal*/
.location-detail {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: calc(100% - 65px);
    padding-top:20%;
    z-index: 100;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    margin: auto;
}

.location-detail-content {
    background-color: #fefefe;
    border: 0px solid #888;
    border-radius: 20px 20px 0px 0px;
    width: 100%;
    height: 100%;
    max-width: 400px;
    position: relative;
    left: 0;
    right: 0;
    margin: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    animation-name: slideIn;
    animation-duration: 0.5s;
    overflow-y: auto;
}

#location-detail-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    text-align: center;
    margin-bottom:40px;
    font-size:25px;
}

#location-detail-info {
    padding:10px;
}

.bold{
    font-weight: 600;
    font-size:20px;
    margin:5px;
}

.infotext{
    font-weight: 500;
    font-size:18px;
    margin:5px;
}

#caution-text{
    font-weight: 300;
    font-size:14px;
    margin:3px;
    letter-spacing : 0;
}


.location-detail-content img {
    width: 100%;
    max-height: 30vh;
    object-fit: cover;
}

.slideOut {
    animation-name: slideOut;
    animation-duration: 0.5s;
}



.location-detail-text{
    padding: 20px;
}

.location-detail-content h1 {
    font-size: 2rem;
    margin-top: 15px;
}

.location-detail-content p {
    margin-top: 15px;
}


.voistock-button {
    display: flex;
    align-items: center; /* Vertically aligns the text with the image */
    justify-content: center; /* Horizontally aligns the text and image */
    padding: 10px 20px; /* Space around the text and image inside the button */
    background-color: #e26a0d; /* Change this to your preferred button color */
    border: none;
    color: white; /* Text color */
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    transition-duration: 0.4s; /* Optional: Adds a transition effect when hovering over the button */
    cursor: pointer;
    border-radius: 40px; /* Rounded corners */
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
    width: 80%;
    margin-top:20px;
    margin-bottom:20px;
}

.voistock-button:disabled{
    background-color: gray;
}

.voistock-button img {
    height: 30px; /* Adjust as needed */
    width: auto; /* Adjust as needed */
    margin-right: 15px; /* Space between the image and the text */
}

.voistock-button:hover {
    background-color: #6b3309; /* Color of button when mouse hovers over it */
    color: white;
}

.close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: calc(50% - 190px);
    top: 75px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    height: 32px;
    width: 32px;
    cursor: pointer;
    z-index: 101;
}

.close::after {
    content: '×';
    color: #fff;
    font-size: 28px; /* Adjust as needed */
    line-height: 32px; /* Same as the height of the button */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    margin-bottom:5px;
    margin-left:1px;
}

.close:hover {
    color: #000;
    background: rgba(255, 255, 255, 0.5);
}




@keyframes slideIn {
    from {bottom: -300px; opacity: 0} 
    to {bottom: 0; opacity: 1}
}

@keyframes slideOut {
    from {bottom: 0; opacity: 1}
    to {bottom: -300px; opacity: 0}
}


/* Media queries for responsiveness */
@media (max-width: 768px) {
    .location-detail-content h1 {
        font-size: 1.5rem;
    }

    .location-detail-content p {
        font-size: 14px;
    }

    .close {
        font-size: 24px;
        right: 15px;
    }
}
