/*** modal.css ***/
#criticker_modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 20; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    pointer-events: all;
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    /* transition: background-color 100ms ease-in; */
}

/* Modal Content/Box */
.modal_dialog {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    width: auto;
    max-width: 600px;
    margin: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 10px;
}

.modal_titlebar {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border-bottom: 1px var(--main-black-shades-85) solid;
}
.modal_title {
    font-weight: 600;
}

.modal_box {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 600px;
    color: var(--main-black);
    background-clip: padding-box;
    padding: 24px;
    text-align: left;
    gap: 16px;
    font-size: 16px;
    overflow-y: auto;
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.modal_loading {
    display: flex;
    justify-content: center;
    margin: 48px 0;
}

.modal_footer {
    background-color: var(--main-black-shades-97);
    padding: 8px;
    border-top: 1px var(--main-black-shades-85) solid;
    font-size: 14px;
    border-radius: 0 0 10px 10px;
}

.modal_content {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 16px;
    padding: 16px 12px 16px 0;
    font-size: 16px;
    overflow-y: auto;
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

/* The Close Button */
.modal_close {
    cursor: pointer;
    display: flex;
}

.modal_header {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 12px 16px 0;
    gap: 16px;
    border-top-left-radius: calc(0.3rem - 1px);
    border-top-right-radius: calc(0.3rem - 1px);
}
.modal_headerlabel {
    font-size: 22px;
    font-weight: 500;
    color: var(--main-black);
}
#modal_header_rating {
    align-items: flex-start;
    justify-content: flex-start;
}
#modal_headerlabel_rating_name {
    font-size: 24px;
    font-weight: 700;
    text-align: left;
}
#modal_headerlabel_rating_year {
    font-size: 13px;
    font-weight: 400;
    color: var(--main-black-shades-70);
}
#modal_header_trailer {
    display: flex;
    align-items: center;
}
#modal_info_reporttrailer_input {
    padding: 24px 0;
}
.modal_header_info {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}
#modal_header_info_rating {
    gap: 12px;
}
.modal_header_namewrap {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center; 
}
.modal_summary {
    text-align: left;
}
.modal_signin {
    display: flex;
    justify-content: center;
}
.modal_info.comingsoon {
    margin: 2em 0;
    font-size: 24px;
    font-style: italic;
}
#modal_input_email {
    font-size: 17px;
    margin-top: 1em;
    border: 1px solid var(--main-black-shades-85);
    border-radius: 6px;
    padding: 0.8em;
    width: 100%;
}
.modal_input::placeholder {
    color: var(--main-black-shades-70);
}
.modal_subinfo {
    font-size: 12px;
    margin-top: 1em;
}

.modal_divider {
   width: 100%;
   text-align: center;
   border-bottom: 1px solid var(--main-black-shades-85);
   line-height: 0em;
   margin: 20px 0;
   color: var(--main-black-shades-70);
}

.modal_divider span {
    background: var(--main-white);
    padding: 0 10px;
}

.modal_footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: stretch;
    gap: 16px;
    padding: 16px;
    color: var(--main-black-shades-85);
    font-size: 16px;
}
.modal_footer p {
    margin: 0;
    padding: 0;
}
#modal_footer_signup_p1 {
    font-weight: bold;
}
#modal_footer_share {
    flex-direction: row;
}
#modal_footer_rating {
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
}
#modal_footer_rating button {
    width: 200px;
}
#modal_footer_share {
    flex-direction: row;
    padding: 16px;
}

.modal_header_row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
#modal_header_bottomrow {
    font-size: 16px;
}
.modal_search {
    display: flex;
    flex-direction: row;
}
.modal_search input {
    font-size: 16px;
    border: 1px solid var(--main-black-shades-85);
    border-radius: 6px;
    padding: .5em;
    width: 180px;
}
#modal_search_input {
    border-radius: 6px 0 0 6px;
    border-right: none;
}
#modal_search_go {
    width: 50px;
    border-radius: 0 6px 6px 0;
}
.modal_error {
    color: var(--ratings-red);
}

.modal_box .rating_card {
    padding: 0;
    border: none;
}

/*** Streaming ***/
.modal_streaming_wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.modal_streaming_options {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}
.modal_streaming_options button.streaming {
    width: calc((100% - 8px) / 2);
}

@media screen and (max-width: 575px) {
    #criticker_modal {
        flex-direction: column;
        justify-content: center;
    }
    .modal_dialog {
        width: 100%;
        height: auto;
        max-width: none;
        max-height: 100vh;
        margin: 50px 0 0 0;
        position: static;
        top: unset;
        left: unset;
        transform: none;
    }
    .modal_box {
        border-radius: 0;
        width: 100%;
        height: 100%;
        padding: 16px;
        overflow-y: scroll;
    }
    .modal_content {
        padding: 0;
        overflow-y: unset;
        justify-content: center;
    }
    #modal_dialog_trailer {
        width: 100%;
        max-width: none;
    }
    #modal_box_trailer {
        border-radius: 0;
        width: 100%;
        height: 100%;
        margin-top: 0;
    }
    #modal_content_trailer {
        justify-content: center;
    }
    #modal_newcollection_type {
        flex-wrap: wrap;
    }
    #modal_newcollection_colltype_collaborative {
        border-radius: 0;
        border-bottom: none;
    }
    #modal_newcollection_colltype_private {
        border-radius: 0;
        border-top: none;
    }
    #modal_content_share {
        justify-content: space-evenly;
        align-content: center;
    }
    .modal_streaming_options button.streaming {
        width: 100%;
    }
}
