* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    }

    body {
        position: relative;
        background-image: linear-gradient( 94.3deg,  rgba(26,33,64,1) 10.9%, rgba(81,84,115,1) 87.1% );
    }

    input {
        border: none;
        outline: none;
    }
    
    #events {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    margin-top: 95px;
    }
    

    .event-cnt {
    display: flex;
    flex-direction: column;
    margin: 15px;
    width: 400px;
    height: 550px;
    text-align: center;
    border-radius: 15px;
    padding: 8px;
    background-color: rgba(139, 141, 155, 0.836);
    }
    .event-cnt input[type = 'button'] {
        cursor: pointer;
        border: none;
        text-decoration: none;
        border-radius: 5px;
        padding: 5px 10px;
        margin: 3px 0px;
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        letter-spacing: 3px;
        font-weight: 600;
        color: #524f4e;
        background: white;
        transition: .3s;
    }
    .event-cnt--event-change-btn:hover {
        background-color: #2EE59D !important;
        color: white !important;
    }

    .event-cnt--event-delete-btn:hover {
        background-color: #e52e2e !important;
        color: white !important;
    }

    .event-cnt--event-add-btn:hover {
        background-color: #2EE59D !important;
        color: white !important;
    }

    .event-cnt--event-cancel-btn:hover {
        background-color: #e52e2e !important;
        color: white !important;
    }



    .imgContainer{
    width: 100%;
    height: 250px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    margin-bottom: 5px;
    }
    .eventImg {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    }
    button {
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 0 0 15px 15px;
    border: 1px solid black;
    }
    input {
    padding: 5px;
    margin-bottom: 3px;
    border-radius: 5px;
    }
    
    textarea {
    height: 180px;
    border-radius: 10px;
    }
    
    a{
        color:white;
    }

    .header {
        position: fixed;
        top: 0;
        background-color: #fff;
        width: 100%;
        display: flex;
        justify-content: space-evenly;
    }

    /* header buttons */
    .header-button {
        border: none;
        text-decoration: none;
        display: inline-block;
        height: 45px;
        line-height: 45px;
        border-radius: 15px;
        padding: 0 10px;
        margin: 10px 20px;
        font-family: 'Montserrat', sans-serif;
        font-size: 14px;
        text-transform: uppercase;
        text-align: center;
        letter-spacing: 3px;
        font-weight: 600;
        color: #524f4e;
        background: white;
        box-shadow: 0 8px 15px rgba(0, 0, 0, .1);
        transition: .3s;
      }
      .header-button:hover {
        background: #2EE59D;
        box-shadow: 0 15px 20px rgba(46, 229, 157, .4);
        color: white;
        transform: translateY(-7px);
      }

    .event-cnt.active {
        position: absolute;
        transform: scale(1.5);
        top: 20%;
        left: 35%;
        z-index: 1000;
    }

    .event-cnt--eventId{
        display: none;
    }

    .event-cnt--eventId.active {
        display: block;
    }

    /* modal */
    .modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.6);
        z-index: 1000;
        padding: 25px;
    }
    .modal_validation .modal_content {
        background-color: #fefefe;
        margin: 15% auto;
        padding: 20px;
        width: 600px;
        height: 150px;
        z-index: 99999;
        font-size: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .modal_validation .modal_content .close_modal_window {
        color: rgb(63, 61, 61);
        display: block;
        padding: 10px 0;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        width: 70px;
        margin: 15px auto 0;
        transition: .3s;
        border: none;
    }

    .modal_validation .modal_content .close_modal_window:hover {
        background-color: #2EE59D;
    }

    /* addForm  */
    .event-cnt--wrapper {
        position: absolute;
        visibility: hidden;
        opacity: 0;
        left: 0%;
        top: 0px;
        width: 100%;
        height: 100vh;
        background-color: rgba(41, 38, 38, 0.4);
        transition: 0.2s;
    }
    .event-cnt--wrapper > .event-cnt {
        margin: -850px auto;
        display: flex;
        left: 0%;
        top: 0px;
        height: 590px;
        background-color: grey;
        opacity: 1;
        transition: 0.4s;
    }
    .event-cnt--wrapper.active {
        position: absolute;
        visibility: visible;
        opacity: 1;
        left: 0%;
        top: 0px;
        transform: scale(1.2);
        width: 100%;
        height: 100vh;
        background-color: rgba(41, 38, 38, 0.4);
    }
    .event-cnt--wrapper.active > .event-cnt {
        margin: 120px auto;
        display: flex;
        left: 0%;
        top: 0px;
        height: 570px;
        background-color: grey;
    }
    
    /* delete */
    .modal_delete .modal_content {
        background-color: #fefefe;
        margin: 15% auto;
        padding: 20px;
        width: 620px;
        height: 250px;
        z-index: 99999;
        font-size: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .modal_delete input {
        margin: 15px;
        padding: 15px;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        border-radius: 5px;
        transition: .3s;
        border: none;
    }

    .confirm-delete:hover {
        background-color: #e52e2e;
        color: white;
    }

    .cancel:hover {
        background-color: #2EE59D;
        color: white;
    }



    /* modal ok */
    .modal_ok .modal_content {
        background-color: #fefefe;
        margin: 15% auto;
        padding: 20px;
        width: 620px;
        height: 200px;
        z-index: 99999;
        font-size: 25px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .modal_ok .modal_content .close_modal_window {
        color: #aaa;
        position: absolute;
        right: 10px;
        top: 10px;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }
    .modal_ok input {
        margin: 15px;
        padding: 15px;
        font-size: 20px;
        font-weight: bold;
        cursor: pointer;
        border-radius: 5px;
        border: none;
        transition: .3s;
    }

    .modal_ok input:hover {
        background-color: #2EE59D;
        color: white;
    }


    .loading.active{
        display: block;
        position: fixed;
        top: -100px;
        height: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100% + 100px);
        text-align: center;
        padding-top: 150px;
        background-color: rgba(0,0,0,0.6);
        color: white;
    }

    .loading.active .loading-item {
        position: absolute;
        display: inline-block;
        width: 50px;
        top: 200px;
        right: calc(50% - 25px);
        height: 50px;
        border: 3px solid rgba(255,255,255,.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s ease-in-out infinite;
        -webkit-animation: spin 1s ease-in-out infinite;
        z-index: 10000;
      }
      
      @keyframes spin {
        to { -webkit-transform: rotate(360deg); }
      }
      @-webkit-keyframes spin {
        to { -webkit-transform: rotate(360deg); }
      }