.card-section{
    margin-top: 30px;
    font-family: "Nanum Pen Script", cursive;
}
.cards{
    max-width: 1300px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    text-align: center;
    padding: 30px;
}
.card-div{
    border: solid 1px;
    width: 300px;
    min-height: 250px;
    border-radius: 30px;
    padding: 10px;
    font-size: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, all 0.3s;
}
.card-div:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.card-div:hover{
    background-color: black;
    color: rgb(217, 217, 217);
}
.card-div:active{
    transform: scale(1);
}
.topic{
    font-family: "Jersey 10", sans-serif;
    font-size: 25px;
}
.view-button{
    background-color: rgb(217, 217, 217);
    border: solid 1px;
    border-radius: 5px;
    height: 25px;
    width: 50px;
    transition: all 0.3s;
}
.view-button:hover{
    background-color: rgb(217, 217, 217);
    box-shadow: 1px 1px 4px 2px rgb(217, 217, 217);
}

/*rgb(217, 217, 217)*/

@media (max-width: 1000px){
    .card-div{
        border: solid;
        width: 300px;
        min-height: 300px;
        border-radius: 30px;
        padding: 10px;
        font-size: 20px;
    }
    .topic{
        font-size: 20px;
    }
    .card-div>p{
        font-size: 16px;
    }
    .info{
        font-size: 16px;
    }
    .card-div{
        min-height: 120px;
    }
}

/*POP UP CARD*/

.modal-bg{
    background-color: rgb(48, 48, 48);
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(2px);
    display: none;
    z-index: 999;
}

.modal-bg.open{
    display: block;
}

.modal{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Nanum Pen Script", cursive;
    font-size: 20px;
    width: min(90%, 777px);
    background-color: #d5d5d5;
    position: fixed;
    top: 50%;
    left: 50%;
    box-shadow: 0 0 10px rgb(92, 92, 92);
    border-radius: 12px;
    gap: 20px;
    padding: 20px;

    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    visibility: hidden;
    max-height: 80vh;
    transition: all 0.4s ease;
    z-index: 1000;
}

body.modal-open .cards{
    pointer-events: none;
}

.modal.open{
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.close-btn{
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    font-weight: 600;
    filter: drop-shadow(0 0 2px rgba(124, 124, 124, 0.468));
    cursor: pointer;
    transition: transform 0.2s, text-shadow 0.2s;
}

.close-btn:hover{
    transform: scale(1.04);
    text-shadow: 2px 2px rgb(128, 128, 128);
}

.info{
    display: flex;
    flex-direction: column;
    margin-top: -10px;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-right: 10px;
}

.info::-webkit-scrollbar{
    width: 6px;
}

.info::-webkit-scrollbar-thumb{
    background: rgba(0,0,0,0.6);
    border-radius: 20px;
}

.info::-webkit-scrollbar-thumb:hover{
    background: rgba(0,0,0,0.9);
}

.info>p{
    padding-left: 15px;
    margin-bottom: 8px;
    margin-top: 0;
}

.modal>.info>h4 {
    font-family: "Jersey 10", sans-serif;
    font-size: 25px;
    margin-bottom: 10px;
    margin-top: 0;
}

.modal>h2{
    font-family: "Jersey 10", sans-serif;
}

