/* Modal - 1 */
.modal-1 { /* Modal */
    display: none;
    position: fixed;
    z-index: 100;
    padding-top: 3rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.7);
    color: #000000;
    font-size: 1rem;
}


.modal-1.block {
    display: block;
}


.modal-1-content { /* Modal Content */
    background-color: #fefefe;
    margin: auto;
    border: 1px solid #888;
    min-width: 10rem;
    max-width: 90%;
}


.modal-1-header { /* Modal Header */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    padding: 0.7rem 2rem;
    background-color: #C6A753;
}


.modal-1-headerText {
    display: inline-block;
    font-size: 150%;
    text-align: center;
    font-weight: bold;
}



.modal-1-section {
    font-size: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}




.modal-1-close {
    position: absolute;
    display: flex;
    align-items: center;
    color: #494949;
    font-size: 2rem;
    font-weight: bold;
    height: 100%;
    width: auto;
    top: 0;
    right: 0;
    padding: 0 1rem;
    cursor: pointer;
}

.modal-1-close:hover {
    color: red;
}


.modal-1-body {
    display: block;
    padding: 1rem 3rem;
    overflow-y: scroll;
    min-height: 70vh;
    max-height: calc(100vh - 11.8rem);
    width: calc(100% - 6rem);
}

    .modal-1-body.center {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }



.modal-1-body.full-height {
    height: calc(100vh - 10rem);
}


.modal-1-text {
    text-align: center;
    padding: 1rem 2rem;
}



@media (max-width: 700px) {
    .modal-1 {
        padding-top: 1rem;
    }

    .modal-1-content {
        max-width: 98%;
    }

    .modal-1-body {
        padding: 1rem 1rem;
        width: calc(100% - 2rem);
    }
    .modal-1-body.full-height {
        height: calc(100vh - 7rem);
    }
}



.modal-part-1 {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}



.modal-btnBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}



.modal-inputBox {
    padding: 1rem 2rem;
    font-size: 1.3rem;
    text-align: center;
}


.modal-input,
.modal-input-scroll {
    font-size: 1.3rem;
    border: 1px solid #c9c9c9;
    border-radius: 0.4rem;
    padding: 0.2rem 0.4rem;
    margin-top: 0.3rem;
    outline: none;
}
    .modal-input:focus {
        border: 1px solid #616161;
    }
    .modal-input.readonly {
        background-color: #f1f1f1;
    }
    .modal-input.readonly:focus {
        border: 1px solid #c9c9c9;
    }

    .modal-input.fs08 {
        font-size: 0.8rem;
    }

    .modal-input.w25 {
        width: 25rem;
    }
    .modal-input.w20 {
        width: 20rem;
    }
    .modal-input.w5 {
        width: 5rem;
    }
    .modal-input.w60 {
        width: 60rem;
    }
    .modal-input.center {
        text-align: center;
    }
    .modal-input.f100,
    .modal-input-scroll.f100 {
        font-size: 1rem;
    }
    .modal-input.c4 {
        width: 4ch;
    }
    .modal-input.c6 {
        width: 6ch;
    }
    .modal-input.c10 {
        width: 10ch;
    }
    .modal-input.c12 {
        width: 12ch;
    }
    .modal-input.c35 {
        width: 35ch;
    }
    .modal-input.b-red {
        box-shadow: 0 0 3px var(--red);
    }
    .modal-input.b-green {
        box-shadow: 0 0 3px var(--darkgreen);
    }

.modal-sug {
    position: relative;
    display: inline-block;
}
.modal-input.in-dropdown:focus + .modal-sug-list{
    display: block;
}
.modal-sug-list {
    display: none;
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 6.9rem;
    overflow-y: auto;
}
    .modal-sug-list:hover {
        display: block;
    }
    
.modal-sug-list div {
    padding: 0.3rem;
    cursor: pointer;
    background-color: #fff; 
    border-bottom: 1px solid #d4d4d4;
}

    .modal-sug-list div:hover {
        background-color: #e9e9e9;
    }


.modal-errorText,
#modal-teamComm-errorText {
    color: red;
    font-size: 1.1rem;
    text-align: center;
}



.modal-textarea {
    min-width: 70%;
    min-height: 7.5rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    font-size: 1.3rem;
    border: 1px solid #c9c9c9;
    border-radius: 0.5rem;
    outline: none;
}
.modal-textarea.flex-size {
    min-height: fit-content;
    max-width: 100%;
}

    .modal-textarea:focus {
        border: 1px solid #616161;
    }



@media (max-width: 1150px) {
    .modal-input.w60 {
        width: calc(100% - 0.8rem - 2px);
    }
    .modal-inputBox {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 500px) {
    .modal-input.w25 {
        width: calc(100% - 0.8rem - 2px);
    }

    .modal-inputBox {
        width: calc(100% - 1rem);
    }
}

@media (max-width: 450px) {
    .modal-input.w20 {
        width: calc(100% - 0.8rem - 2px);
    }
}

@media (max-width: 350px) {
    .modal-input {
        width: calc(100% - 0.8rem - 2px);
    }
}