@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background-color: #029bcb;
}
.navbar .logo {
    margin-top: 6px;
}
.navbar .logo img {border-radius:11px;}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

h1,h2 {
    margin-bottom: 15px;
}

.navbar {
    background-color: #3474e6;
    color: #fff;
    height: 80px;
}
.navbar #menu-btn {display: none;}
.navbar ul {
    list-style-type: none;
    display: flex;
}
.navbar ul li {margin-left:40px;}
.navbar ul a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.navbar ul a:hover {
    color: lightblue;
}
.hamburger {
    display: none;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}
@media only screen and (max-width: 768px) {
    .nav {
        position: fixed;
        left: -100%;
        top: 5rem;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        border-radius: 10px;
        text-align: center;
        transition: 0.3s;
        box-shadow:
                0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav.active {
        left: 0;
    }
    .nav.active a {
        color: #787878;
    }
    .nav li {
        margin: 0.5rem 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        border: 1px solid #fff;
        padding: 5px;
        border-radius: 2px;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }


}
.header {
    padding-top: 10px;
    background-color: rgb(142,208,94);
    background-repeat: repeat-x;
    background-position: bottom center;
    background-image: url('images/grass-border-200.png'), linear-gradient(111deg, rgba(142,208,94,1) 4%, rgba(85,152,38,1) 40%, rgba(96,189,26,1) 100%) ;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    color: #fff;
    min-height: 385px;
}
.header .container p {
    padding: 10px;
    background-color: rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-right: 20px;
}
.header h1 {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
}
.header img {
    max-width: 100%;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(5px 5px 5px #222);
}
.header .container {
    display: flex;
    align-items: center;
}
.header img {
    max-width: 400px;
}
.boxes .container{
    display: flex;
    justify-content: space-between;
}
.box {
    flex: 1;
    background: #60bd1a;
    color: #fff;
    border-radius: 10px;
    margin: 20px 10px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.6);
    padding: 15px 20px;
}
.box i {margin-right:10px;}

section.boxes {padding:40px 0;}
section.contact {background-color: #fff;}
.contact .container{
    display: flex;
    justify-content: space-between;
}
.contact .box { flex: 1;background-color: #fff; color:#787878; border: none; box-shadow: none;}
.contact h2 {font-size:1.1em;}
.contact a {padding:10px; background-color: #3474e6; color:#fff; text-align: center; display: block; font-weight:bold; text-decoration: none;}
.contact a:hover {color:lightblue;}
.contact th, .contact td {
    padding: 0 5px;
}
footer .container {text-align: center; color:#fff; margin: 20px; font-size: small;}

@media (max-width: 768px) {
    .header .container{
        flex-direction: column;
        padding-top:20px;
    }
    .boxes .container {
        display: block;
    }
    .contact .container {
        display: block;
    }
    .contact .container a {margin: auto 30% }
    .contact .container p {margin: 0 auto; width:90% }
    .boxes h2 {text-align: center;}
    .copy h1 {text-align: left;}
    .copy p {text-align: left;}
    .copy {margin-bottom: 30px; text-align: center;}
    .copy button {float:none !important;}

    /* Dont use animation on mobile */
    button.btn::before, button.btn::after {
        top: 0 !important;
        height: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
        -webkit-animation: none !important;
        animation: none !important;
    }
    button.btn::after {
        left: 0rem !important;
    }
    button.btn::before {
        top: 0.5rem !important;
        left: 0.35rem !important;
    }
}



#flex-container {
    display: flex;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px
}

.item {
    background-color: #0a4b78;
    color:#fff;
    margin: 0 1.665%;
    flex-basis: 30%;
}
@-webkit-keyframes topAnimation {
    from {
        transform: translate(0rem, 0);
    }
    to {
        transform: translate(0rem, 3.5rem);
    }
}

@keyframes topAnimation {
    from {
        transform: translate(0rem, 0);
    }
    to {
        transform: translate(0rem, 3.5rem);
    }
}
@-webkit-keyframes bottomAnimation {
    from {
        transform: translate(-11.5rem, 0);
    }
    to {
        transform: translate(0rem, 0);
    }
}
@keyframes bottomAnimation {
    from {
        transform: translate(-11.5rem, 0);
    }
    to {
        transform: translate(0rem, 0);
    }
}
button.btn {
    cursor:pointer;
    float: right;
    z-index: 1;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    border: 0;
    position: relative;
    letter-spacing: 0.1em;
    margin: 30px 50px 0 auto;
    padding: 1rem 2.5rem;
    background: transparent;
    outline: none;
    font-size: 22px;
    color: #fff;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.15s;
}
button.btn::after, button.btn::before {
    border: 0;
    content: "";
    position: absolute;
    height: 40%;
    width: 7%;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: -2;
    border-radius: 20% 70%;
}
button.btn::before {
    border: 0;
    background-color: #c92918;
    top: -0.75rem;
    left: 0.5rem;
    -webkit-animation: topAnimation 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.25s infinite alternate;
    animation: topAnimation 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.25s infinite alternate;
}
button.btn::after {
    background-color: #e74c3c;
    top: 3rem;
    left: 13rem;
    -webkit-animation: bottomAnimation 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s infinite alternate;
    animation: bottomAnimation 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s infinite alternate;
}
button.btn:hover {
    color: #fff;
    letter-spacing: 0.15em;
}
button.btn:hover::before, button.btn:hover::after {
    top: 0;
    height: 100%;
    width: 100%;
    border-radius: 0;
    -webkit-animation: none;
    animation: none;
}
button.btn:hover::after {
    left: 0rem;
}
button.btn:hover::before {
    top: 0.5rem;
    left: 0.35rem;
}