.modules {
    margin-top: 80px;
    margin-bottom: 45px;
}

.module__description {
    display: none;
}

.modules__description {
    margin: 20px auto;
}

.modules__title {
    margin: 50px auto;
}

.modules__description {
    font-size: 15px !important;
    text-align: center;
    font-weight: 400;
}

.modules__title--h4 {
    font-size: 16px !important;
    text-align: center;
    font-weight: 700;
    color: #505050
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.grid-module {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    border-radius: 8px;
    margin: 5px 0;
    cursor: pointer !important;
    height: 100%;
}

.module--small {
    width: 370px;
    height: 50px;
}

.module--mid-2 {
    width: 370px;
    height: 110px;
}

.module--mid-3 {
    width: 370px;
    height: 170px;
}

.module--large-4 {
    width: 370px;
    height: 230px;
}

.module--large-5 {
    width: 370px;
    height: 290px;
}

.module--long-2 {
    width: 750px;
    height: 50px;
}

.module--long-3 {
    width: 1130px;
    height: 50px;
}

.module--blue {
    background-color: #549DD8;
}

.module--red {
    background-color: #D8574B;
}

.module--orange {
    background-color: #D89D54;
}

.module--yellow {
    background-color: #FBD041;
}

/* Modal window styles */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.module-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.module-modal__content {
    align-items: center;
    justify-content: center;
    height: auto;
    max-height: 80%;
    width: 70%;
    max-width: 900px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05), 
                0px 5px 15px rgba(0, 0, 0, 0.1), 
                0px 10px 20px rgba(0, 0, 0, 0.4);
}

.module-modal__title {
    font-family: Ubuntu;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 26px;
    font-weight: 500;
    color: #4E4E4E;
    padding-left: 60px;
    padding-right: 15px;
    border-bottom: 1px solid rgba(234, 234, 234, 0.8);
    box-shadow: 
        0px 4px 4px rgba(0, 0, 0, 0.05); 
}

.module-modal__description {
    font-size: 15px;
    line-height: 24.5px;
    font-weight: 400;
    flex-grow: 1;
    margin-bottom: 20px;
    padding: 40px 60px 15px;
    max-height: 60vh;
    overflow-y: auto;
}

.module-modal__description img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.module-modal__close {
    cursor: pointer;
    font-size: 34px;
    font-weight: 50;
}

.module-modal__close:hover {
    cursor: pointer;
}
/* End modal module styles */

@media only screen and (min-width: 1149px) {
    .modules {
        max-width: 1131px !important;
    }
}

@media only screen and (max-width: 1148px) {
    .container {
        max-width: 960px !important;
    }

    .modules {
        padding-left: 30px;
        padding-right: 30px;
    }

    .module--large-4,
    .module--large-5 {
        height: 80px;
    }
}

@media only screen and (max-width: 768px) {
    .module-modal__content {
        width: 90%;
        max-width: 100%;
        height: auto;
    }

    .module-modal__title { 
        font-size: 24px;
        padding-left: 20px;
        padding-right: 10px;
        height: 70px;
    }

    .module-modal__description {
        max-height: 50vh;
        padding: 20px;
    }

    .modules__title {
        font-size: 20px;
    }

    .modules__description {
        font-size: 13px;
    }
}

@media only screen and (max-width: 576px) {
    .mobile-banner {
        padding: 0 !important;
    }

    .modules {
        margin-top: 0;
    }
}
