.modal *{
    box-sizing: border-box;
}
.modal {
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transform: scale(1.1);
        transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
    }
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 1rem 1.5rem;
    width: 60vw;
    height:auto;
    border-radius: 0.5rem;
}
.close-button {
    float: right;
    width: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    /* background-color: lightgray; */
    position: absolute;
    top: -2rem;
    right: 0;
    color: #fff;
    font-size: 1.5rem;
}
.close-button:hover {
    background-color: darkgray;
}
.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}

.popup_wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    max-height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 10px;
}

.left_textarea{
    padding: 5px;
}

@media (max-width:980px){
    .popup_wrap {
        
        flex-direction: column;
        padding: 15px;
    }

    .modal-content {
       
        width: 99vw;
        height: auto;
        
    }
    .leftarea{
        margin-bottom: 10px;
       
    }
}

.popup_form_wrap{
    padding: 5px;
}
.popup_form_wrap textarea{
    max-height:200px;
}

.popup_form_wrap input{
    max-height:35px;
    margin: 0px 0 5px 0;
    

}

@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape) {
    .modal-content {
      transform: rotate(-90deg);
      transform-origin: left top;
      width: 100vh;
      overflow-x: hidden;
      position: absolute;
      top: 100%;
      left: 0;
    }
  } 