.popup-overlay{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    height: 100%;
}
.popup-close{
    display: flex;
    height: 34px;
    margin: 10px 40px;
    border: 1px solid #1A89F9;
    border-radius: 17px;
    cursor:pointer;
    padding: 0 24px;
    width: 344px;
    width: max-content;
    flex-shrink: 0;
}
.popup-close p{
    color: #1A89F9;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 0 0;
}
.popup-close p.arrow{
    width: 1em;
    margin-right: 19px;
}
.popup-close p svg{
    font-size: 18px;
    margin-bottom: -3px;
}
.popup-wrap{
    background:#fff;
    width:100%;
    height:100%;
    background-color: #fff;
    border-radius: 40px;
    /* align-self: center; */
}
.popup-wrap iframe{
    border:none;
    width:100%;
    height:100%;
    border-radius: 40px;
    transform-origin: 0 0;
}
.popup-wrap.test iframe{
    border-radius: 0;
}
.popup-header{
    /* display: flex; */
    display: none;
    align-items: flex-end;
    justify-content: space-between;
    margin: 20px 40px;
    width: calc(100vw - 81px);
    max-width: 1286px;
}
.popup-header div:first-child{
    width: 70%;
    color: #312A2A;
}
.popup-header p:first-child{
    font-weight: 700;
    font-size: 28px;
    line-height: 36px;
}
.popup-header p:last-child{
    font-weight: 500;
    font-size: 24px;
    line-height: 36px;
}
.popup-header .toTest p{
    font-weight: 400;
    font-size: 18px;
    line-height: 20px;
    color: #3176DB;
}
.popup-header .toTest:hover{
    cursor: pointer;
}
.popup-control{
    /* display: flex; */
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: calc(100vw - 81px);
    max-width: 1286px;
    margin: 24px 40px;
}
.popup-control div{
    display: flex;
    width: 33%;
    justify-content: center;
}
.popup-control div p{
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: #1A89F9;
    margin: 0;
}
.popup-control div .wide{
    display: inline;
}
.popup-control div .narrow{
    display: none;
}
.popup-control div p:hover{
    cursor: pointer;
}
.popup-control div.allVideo p{
    text-align: center;
    font-weight: 400;
    font-size: 18px;
    line-height: 20px;
    border: 2px solid #3176DB;
    border-radius: 8px;
    width: 148px;
    height: 48px;
    padding: 10px 0;
    transition: 0.1s;
}
.popup-control div.allVideo p:hover{
    box-shadow: 0px 4px 18px 1px #9ECAFF;
    color: #fff;
    background-color: #3176DB;
}
.popup-control .prewModule p:first-child{margin-right: 10px;}
.popup-control .nextModule p:last-child{margin-left: 10px;}
.popup-control .prewModule{
    justify-content: flex-start;
}
.popup-control .nextModule{
    justify-content: flex-end;
}


.popupAd{
    font-family: 'Circe';
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    width: 126px;
    height: 25px;
    background: #F6F8FB;
    box-shadow: 0px 0px 5px rgba(173, 175, 179, 0.7);
    border-radius: 8px;
    padding-top: 4px;
    text-align: center;
}

.union{
    white-space: nowrap;
}

@media (max-width: 900px){
    .popup-header{
        flex-direction: column;
        font-size: 20px;
        margin: 16px;
        width: calc(100vw - 33px);
    }
    .popup-header div:first-child{
        width: auto;
        align-self: baseline;
    }
    .popup-header .toTest{
        align-self: center;
    }
    .popup-wrap{
        border-radius: 20px;
    }
    .popup-control{
        margin: 20px 16px;
        width: calc(100vw - 33px);
    }
    .popup-close{
        margin: 10px 16px;
    }
    .popup-control div .narrow{
        display: inline;
    }
    .popup-control div .wide{
        display: none;
    }
}
@media (max-width: 600px){
    .popup-control .prewModule{
        order: 1;
        flex-grow: 1;
        width: 50%;
    }
    .popup-control .nextModule{
        order: 2;
        flex-grow: 1;
        width: 50%;
    }
    .popup-control .allVideo{
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 32px;
    }
}
@media (max-width: 1024px) and (orientation: landscape){
    .popup-overlay{
        flex-direction: row;
    }
    .popup-close{
        margin: 16px 10px;
        writing-mode: tb;
        height: auto;
        padding: 5px;
        align-items: center;
    }
    .popup-close p.arrow{
        margin: 0;
        padding: 0 0 3px 0;
        margin-right: -1px;
        width: auto;
    }
    .popup-close p.text-none{
        display: none;
    }
}