@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap');

:root {
    --orange: #ef6604;
    --dark-grey: #333;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Lato', sans-serif;
    color: #333;
    background-color: #fff;
    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%;
}

/* Navbar */
.navbar {
    background-color: #333;
    color: #fff;
    height: 70px;
}

.navbar ul {
    display: flex;
}

.navbar a {
    color: #fff;
    padding: 10px;
    margin: 0 5px;
}

.navbar a:hover {
    border-bottom: 2px var(--orange) solid;
}

.stats a:hover {
    border-bottom: 2px var(--orange) solid;
}

.navbar .flex {
    justify-content: space-between;
}

/* Showcase */
.showcase {
    height: 1250px;
    position: relative;
}

.showcase .container {
    overflow: hidden;
}

.showcase-text {
    animation: slideInFromLeft 1s;
}

.showcase h1 {
    font-size: 40px;
    border-bottom: 2px var(--orange) solid;
}

.showcase h2 {
    border-bottom: 2px var(--orange) solid;
}

.showcase p {
    margin: 20px 0;
}

.showcase .grid {
    overflow: visible;
}

.showcase-image {
    animation: slideInFromRight 1s;
}

/* Stats */
.stats {
    height: auto;
    animation: slideInFromBottom 1s;
}

.stats a i {
	padding-left: 5px;
}

.stats .grid h3 {
    font-size: 25px;
}

.stats .grid p {
    font-size: 15px;
    font-weight: bold;
}

.stats-heading {
    max-width: 500px;
    margin: auto;
}

.stats > i {
	padding-left: 5px;
}

/* Modal */
.modal {
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease-out;
}

.modal.open {
    opacity: 1;
    pointer-events: all;
}

.modal p {
    color: white;
    text-align: center;
    font-size: 2rem;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, -5%);
}

.full-image {
    width: 1417px;
    height: 362px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.25s ease-out;
}

.full-image.open {
    transform: translate(-50%, -50%) scale(1);
}

.icon {
    pointer-events: none;
    transform: scale(0.5);
    opacity: 0%;
    transition: all 0.25s ease-out;
}

.pulse {
    pointer-events: none;
    color: var(--orange);
    animation: pulse 1s infinite;
}

.icon.open {
    opacity: 100%;
    transform: scale(1);
}

.footer {
    background-color: #333;
    color: white;
}

/*Misc*/
@media(max-width: 768px) {
    .grid,
    .showcase .grid,
    .stats .grid {
        grid-template-columns: 1fr;
    }

    .showcase {
        height: auto;
    }

    .showcase-text {
        text-align: center;
    }

    .stats {
        height: auto;
    }

    .modal p {
        font-size: 1rem;
    }
}

/*Mobile*/
@media(max-width: 500px) {
    .logo {
        font-size: 20px;
    }

    .navbar {
        height: 50px;
    }

    .navbar .flex {
        flex-direction: column;
        overflow: visible;
    } 
}

@media(max-width: 360px) {
    .logo {
        font-size: 18px;
    }

    .navbar a {
        display: none;
    }

    .showcase h1 {
        font-size: 30px;
    }
     
}