.category {
    text-align: center;
    margin: 0px;
    padding: 0px;
}

.category-title {
    font-size: 70px;
    margin: 0px;
    padding: 0px;
}

.popup{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1/1;
    width: 24%;
}

@media screen and (max-width: 600px) {
    .popup{
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin: auto;
        width: 70%;
    }  
}

@media screen and (min-width: 600px) and (max-width: 1200px) {
    .popup{
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin: auto;
        width: 45%;
    }  
}

.popup-box{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3%;
    margin: 2%;
    aspect-ratio: 1/1;
    width: 100%;
    background-color: #000;
    border-radius: 5%;
}

.popup-content{
    display: flex;
    justify-content: center;
    position: relative;
    background-color: #000000;
    margin: auto;
    padding: 1%;
    border: 1px solid #888;
    width: 80%;
    max-width: 1300px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

@media screen and (max-width: 600px) {
    .popup-content {
        flex-direction: column;
        justify-content: center;
        width: 70%;
        padding-top: 1%;
        padding-bottom: 10%;
    }
}

@media screen and (min-width: 600px) and (max-width: 1200px){
    .popup-content {
        justify-content: center;
        flex-wrap: wrap;
        padding: 5px;
        margin: auto;
        width: 90%;
    }
}

.popup-place {
    color: #fff;
    text-align: center;
}

.popup-title {
    color: #fff;
    text-align: center;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: min(4vw, 30px);
    margin: 0px;
    word-break: keep-all;
}

.popup-title-mini {
    text-align: center;
    font-size: 15px;
    padding: 0px;
    color: #fff;
}

.popup-name {
    color: #fff;
    text-align: center;
    padding: 3%;
    margin: 0px;
    font-size: min(4vw, 30px);
}

.popup-text {
    color: #fff;
    font-size: min(2vw, 30px);
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: keep-all;
    max-width: 100%;
    margin: 5%;
}

@media screen and (min-width: 600px) {
    .popup-text {
        font-size: min(3vw, 20px);
        padding: 0px;
        max-width: 100%;
        word-break: normal;
    }
}


.popup-info {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 50%;
}

@media screen and (max-width: 600px) {
    .popup-info {
        width: 100%;
    }
}

@media screen and (min-width: 600px) and (max-width: 1200px){
    .popup-info {
        padding: 10px;
        margin: 0px;
    }
}


.popup-photo {
    padding-left: 1%;
    padding-right: 1%;
    padding-top: 1%;
    padding-bottom: 1%;
    max-width: 80%;
    aspect-ratio: 1/1;
    object-fit: contain;
    margin: auto;
}

.popup-inline-box {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column; 
    align-items: center;
    justify-content: space-between;
    align-content: space-around;
    inset: 0;
}

.popup-inline-box .popup-title{
    display: flex;
    font-size: mix(20vw, 50px);
    margin: 5%;
    padding: 0%;
}

.popup-info-hr {
    display: flex;
    justify-content: center;
}

.popup-link-box {
    color: white;
    padding: 5px;
    margin: 5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    aspect-ratio: 2/1;
}

.popup-link {
    width: 100%;
    margin: 0px;
    padding: 0px;
}

.popup-link-box a{
    font-size: min(5vw, 40px);
    margin: auto;
    padding: 0px;
}

@media screen and (max-width: 600px) {
    .popup-link-box {
        color: white;
        padding: auto;
        margin: auto;
        text-align: center;
        text-decoration: none;
        display: inline-block;
    }

    .popup-link {
        color: white;
        font-size: 1vw;
    }
}

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

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
  
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-1%; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-1%; opacity:0}
    to {top:0; opacity:1}
}

.popup-timeshedule {
    display: flex;
    justify-content: center;
    width: 100%;
}

.popup-timeshedule-box {
    display: flex;
    justify-content: center;
    margin: auto;
}

.popup-timeschedule-photo {
    width: 100%;
}

