﻿@import url('https://fonts.googleapis.com/css2?family=Trispace:wght@300&display=swap');

/* setting a colour variable to be re-used */
:root {
    --primary-color: #6da67c;
    --second-color: #386945;
    --dark-color: #0f3018;
    --light-color: #c9c5c5;
    --success-color: #01c901;
    --error-color: #e60e0e;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Trispace', sans-serif;
    color: #333;
    line-height: 1.6;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333;
}

h1, h2 {
    font-weight: 300;
    line-height: 1.2;
    margin: 10px 0;
}

p {
    margin: 10px 0;
}

img {
    width: 100%;
}

code, pre {
    background: #333;
    color: #fff;
    padding: 10px;
}

/* Animations */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Tablets and smaller */
@media (max-width: 768px) {
    /*.vid*/
    .grid,
    .showcase .grid,
    .stats .grid,
    .graph .grid,
    .image .grid,
    .gallery-main .grid/*,
    .videos-main .grid .vid*/ {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .showcase {
        height: auto;
    }

    .showcase-text {
        text-align: center;
        margin-top: 40px;
    }

    .showcase-form {
        justify-self: center;
        margin: auto;
    }

    .image .grid > *:first-child {
        grid-column: 1;
        grid-row: 1;
    }

    .videos-head,
    .videos-main,
    .videos-sub-head,
    .gallery-head {
        text-align: center;
    }

        .videos-head img,
        .videos-sub-head img,
        .gallery-head img {
            justify-self: center;
        }

    .videos-main .grid > *:first-child,
    .videos-main .grid > *:nth-child(2) {
        grid-column: 1;
    }

    .videos-main .vid > *:first-child,
    .videos-main .vid > *:nth-child(2) {
        grid-column: 1;
    }
}

/* Mobile */
@media (max-width: 400px) {
    .navbar {
        height: 110px;
    }

        .navbar .flex {
            flex-direction: column;
        }

        .navbar .mobile {
            flex-direction: column;
        }

        .navbar ul {
            padding: 10px;
            background-color: rgba(0, 0, 0, 0.1);
        }
}
    