body.modal-open {
    overflow: hidden;
}

.flexbox {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #ececec;
    margin: 5% auto;
    padding: 20px;
    width: 60%;
    border-radius: 8px;
    border: solid 0.2em #f24646;
}

.close {
    color: #000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding-top: 10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

img {
    margin: 0 15%;
    width: 70%;
}

.dantaipopup {
    margin-top: 5%;
}

.name {
    font-size: 1.25em;
    min-width: 40%;
    width: fit-content;
    margin-left: 0.2em;
    padding: 0.5em 1.2em;
    color: #000;
    background: #6a9de3;
    display: flex;
    justify-content: center;
    border-radius: 8px;
}

.bun {
    font-size: 1.25em;
    margin: -1em 1em 0 1em;
    padding: 1em 1em 0.5em 1em;
    font-weight: bold;
    border: solid 0.2em #6a9de3;
    text-align: left;
    border-radius: 8px;
}

.dantaipopup {
    text-align: center;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide img {
    width: 70%;
    height: auto;
    display: block;
}

button.prev,
button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    border: none;
    color: #000;
    font-size: 2rem;
    padding: 0.3em;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 10;
}

button.prev {
    left: 5px;
}

button.next {
    right: 5px;
}

.material-icons {
    font-size: 48px;
    pointer-events: none;
}

@media screen and (max-width :480px) {
    .modal-content {
        background-color: #ececec;
        margin: 5% auto;
        padding: 20px;
        width: 80%;
        border-radius: 8px;
        border: solid 0.1em #f24646;
    }

    img {
        width: 90%;
        height: auto;
        margin: 0 5%;
    }

    .name {
        font-size: 1em;
        min-width: 40%;
        width: fit-content;
        margin-left: 0.2em;
        padding: 0.5em 1.2em;
        color: #000;
        background: #6a9de3;
        display: flex;
        justify-content: center;
        border-radius: 8px;
    }

    .bun {
        font-size: 1em;
        margin: -1em 1em 0 1em;
        padding: 1em 1em 0.5em 1em;
        font-weight: bold;
        border: solid 0.2em #6a9de3;
        text-align: left;
        border-radius: 8px;
    }

    .slider {
        position: relative;
        width: 100%;
        max-width: 600px;
        margin: 0 auto 1rem;
        overflow: hidden;
    }

    .slide {
        position: absolute;
        width: 110%;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .slide.active {
        opacity: 1;
        position: relative;
    }

    .slide img {
        width: 80%;
        height: auto;
        display: block;
    }

    button.prev,
    button.next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0);
        border: none;
        color: #000;
        font-size: 2rem;
        /*padding: 0.3em;*/
        z-index: 10;
    }

    button.prev {
        left: -8%;
    }

    button.next {
        right: -8%;
    }

    .material-icons {
        font-size: 48px;
        pointer-events: none;
    }


}