@font-face {
    font-family: 'IMFellEnglish';
    src: url('fonts/IMFellEnglish-Regular.ttf') format('truetype');
}

:root{
    --light-green:#8BC34A;
    --dark-green:#7CB342;
}

/*Preloader*/
.noscroll {
    overflow: hidden !important;
}

.preloaderwrap {
    position: absolute;
    z-index: 100;
    background: white;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text {
    color: #2E7D32;
    display: inline-block;
    margin-left: 25px;
    font-size: 30px;
}

.bounceball {
    position: relative;
    display: inline-block;
    height: 37px;
    width: 30px;
}

.bounceball:before {
    position: absolute;
    content: '';
    display: block;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #2E7D32;
    transform-origin: 50%;
    animation: bounce 500ms alternate infinite ease;
}

.imgBorder {
    border-radius: 20px;
}

@keyframes bounce {
    0% {
        top: 30px;
        height: 5px;
        border-radius: 60px 60px 20px 20px;
        transform: scaleX(2);
    }

    35% {
        height: 30px;
        border-radius: 50%;
        transform: scaleX(1);
    }

    100% {
        top: 0;
    }
}

/* Media Query for Mobile Devices (iPhone 11/12) */
@media only screen and (max-width: 414px) {

    /* CSS styles for mobile devices */
    .video_text .title {
        font-size: 36px;
    }

    .video_text .raised {
        font-size: 28px;
    }

    .video_text .button {
        width: 50%;
        margin-top: 20px;
        font-size: 36px;
    }


    .first-donation .donation-grid {
        display: grid;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }

    .first-title {
        grid-area: 1 / 1 / 2 / 2;
    }

    .first-image1 {
        grid-area: 2 / 1 / 3 / 2;
    }

    .first-image2 {
        grid-area: 4 / 1 / 5 / 2;
    }

    .first-text {
        grid-area: 3 / 1 / 4 / 2;
    }
}

.donation-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}

/* Media Query for Tablets (iPads) */
@media only screen and (min-width: 415px) and (max-width: 1024px) {
    body {
        font-size: 24px;
    }

    /* CSS styles for tablets */
    .video_text .title {
        font-size: 36px;
    }

    .video_text .raised {
        font-size: 28px;
    }

    .video_text .button {
        width: 50%;
        margin-top: 20px;
        font-size: 36px;
    }


    .first-donation .donation-grid {
        display: grid;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }

    .first-title {
        grid-area: 1 / 1 / 2 / 2;
    }

    .first-image1 {
        grid-area: 2 / 1 / 3 / 2;
    }

    .first-image2 {
        grid-area: 4 / 1 / 5 / 2;
    }

    .first-text {
        grid-area: 3 / 1 / 4 / 2;
    }
}

/* Media Query for Normal Computers */
@media only screen and (min-width: 1025px) {

    /* CSS styles for tablets */
    body {
        font-size: 24px;
    }

    .video_text .title {
        font-size: 72px;
    }

    .video_text .raised {
        font-size: 48px;
    }

    .video_text .button {
        width: 50%;
        margin-top: 20px;
        font-size: 36px;
    }

    .donation-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .grid-item:first-child {
        grid-column: 1 / span 2;
    }


    .first-donation .donation-grid {
        display: grid;
        grid-column-gap: 20px;
        grid-row-gap: 20px;
    }

    .first-title {
        grid-area: 1 / 1 / 2 / 3;
    }

    .first-image1 {
        grid-area: 2 / 1 / 3 / 2;
    }

    .first-image2 {
        grid-area: 3 / 1 / 4 / 2;
    }

    .first-text {
        grid-area: 2 / 2 / 4 / 3;
    }
}

html, body {
    margin: 0;
    font-family: 'IMFellEnglish', sans-serif !important;
    color: #fff;
}

p {
    margin: 0;
}

img {
    max-width: 100%;
}

.main {
    overflow: hidden;
}

.video {
    width: 100%;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: var(--light-green);
    position: relative;
}

.main_video {
    /*filter: grayscale(100%);*/
    width: 100%;
}

.video_text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
}

.material-button {
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.green-cta {
    border: 3px solid #1B5E20;
    background-color: #1B5E20;
    color: #fff;
    padding: 10px 0;
}

.green-cta:hover {
    border: 3px solid #388E3C;
    background-color: #388E3C;
}

.section {
    padding: 1px 5% calc(5% + 37px) 5%
}

.separator {
    position: relative;
    width: 100%;
    height: 37px;
    top: -36px;
}

.separator.reverse {
    transform: rotateY(180deg);
}

.separator::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: transparent;
    clip-path: polygon(100% 0, 0 0, 0 100%);
}

.separator::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-color: var(--light-green);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.separator.lightgreen::after{
    background-color: var(--light-green);
}

.separator.darkgreen:after{
    background-color: var(--dark-green);
}

.separator.bluegrey::after {
    background-color: #546E7A;
}

.separator.brown::after {
    background-color: #6D4C41;
}

.separator.pink::after {
    background-color: #ffe6f2;
}

.separator.green::after {
    background-color: #1B5E20;
}

.first-donation {
    margin-top: -37px;
    position: relative;
    background-color: var(--light-green);
}

.second-donation {
    margin-top: -37px;
    position: relative;
    background-color: var(--dark-green);;
}

.separator.second {
    top: -36px;
}

.third-donation {
    margin-top: -37px;
    position: relative;
    background-color: var(--light-green);
}

.separator.third {
    top: -36px;
}

.fourth-donation {
    margin-top: -37px;
    position: relative;
    background-color: #ffe6f2;
    color: #ff58aa;
}

.separator.fourth {
    top: -36px;
}

.fifth-donation {
    margin-top: -37px;
    position: relative;
    background-color: var(--light-green);;
}

.separator.fifth {
    top: -36px;
}

.grid-item-left {
    transform: translateX(-200%);
    transition: transform 1s ease-in-out;
}

.grid-item-right {
    transform: translateX(200%);
    transition: transform 1s ease-in-out;
}

.grid-item-bottom {
    transform: translateY(200%);
    transition: transform 1s ease-in-out;
}

.grid-item--onscreen {
    transform: translate(0);
}