:root {
    --main-color: rgb(54, 4, 7);
    --main-color-opaque: rgba(54, 4, 7, 0.8);
    --contrast-to-main-color: rgb(255, 255, 255);
    --accent-color: rgb(255, 187, 98);
    --second-color: rgb(0, 92, 18);
    --main-font-family: 'Open Sans';
    --second-font-family: 'Caveat';
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font-family), sans-serif;
    position: relative;
    padding-bottom: 3rem;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    overflow: hidden;
    position: fixed;
    top: 0;
    align-items: center;
    justify-content: flex-start;
    z-index: 2;
    background-color: var(--main-color-opaque);
    width: 100%;
    min-height: 2.4rem;
    flex-wrap: wrap;
}

.navbar a {
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 2px;
    padding: 0.5rem;
    color: var(--contrast-to-main-color);
}

.navbar a:visited {
    color: var(--contrast-to-main-color);
}

.navbar a:hover {
    color: var(--accent-color)
}

.home {
    height: 100vh;
    background-image: url("images/background2.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

.home h1 {
    font-size: 3rem;
    text-align: center;
    padding: 3rem 0;
    font-family: var(--second-font-family), cursive;
}

h2 {
    padding-bottom: 1rem;
}

.home-container {
    background-color: rgba(255, 255, 255, 0.5);
    max-width: 70%;
    margin: 0 auto;
    text-align: center;
    border-radius: 10px;
    padding: 1rem;
    -webkit-animation-name: fadeInLeft;
    animation-name: fadeInLeft;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes fadeInLeft {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        -webkit-transform: translate3d(-100%, 0, 0);
        transform: translate3d(-100%, 0, 0);
    }

    100% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}

.price-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.price-card {
    flex: 1 500px;
    background-color: var(--main-color);
    margin: 1rem;
    padding: 1rem;
    color: var(--contrast-to-main-color);
    text-align: center;
}

.price-card:hover {
    -webkit-animation-name: pulse;
    animation-name: pulse;
    -webkit-animation-duration: 1s;
    animation-duration: 2s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }

    50% {
        -webkit-transform: scale3d(1.05, 1.05, 1.05);
        transform: scale3d(1.05, 1.05, 1.05);
    }

    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

@keyframes pulse {
    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }

    50% {
        -webkit-transform: scale3d(1.05, 1.05, 1.05);
        transform: scale3d(1.05, 1.05, 1.05);
    }

    100% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

section {
    padding: 2rem;
    text-align: center;
    max-width: 100%;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

.gallery-container img {
    flex: 1 250px;
    width: 30%;
    margin: 1rem;
    display: block;
}

.gallery-container img:hover {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
    transition: all 0.5s ease-in-out;
}

.attractions {
    list-style-type: none;
    font-size: 1.2rem;
}

.attractions li {
    margin: 0.8rem;
}

.attractions li:hover {
    color: var(--second-color);
    font-weight: bold;
}

.tree-icon {
    color: var(--second-color);
}

a.tree-icons:hover {
    background-color: var(--accent-color);
}

footer {
    position: absolute;
    bottom: 0;
    min-width: 100%;
    background-color: var(--main-color);
    height: 2.5rem;
    color: var(--contrast-to-main-color);
    text-align: center;
    padding: 0.5rem 0;
}

footer a,
a:visited {
    text-decoration: none;
    color: var(--accent-color);
}

.contact-form label {
    display: block;
    float: none;
}

.contact-form input,
textarea {
    padding: 0.5rem;
    margin: 0.5rem;
    border: 2px solid var(--main-color);
    border-radius: 10px;
    font-family: var(--main-font-family);
    box-shadow: 8px 8px 10px 0px var(--main-color-opaque);
    width: 25rem;
}

.contact-form textarea {
    height: 10rem;
}

input[type=submit] {
    width: 10rem;
    display: block;
    margin: 0 auto;
}

input[type=submit]:hover {
    color: var(--contrast-to-main-color);
    background-color: var(--main-color)
}

/* media queries  */
@media all and (max-width: 650px) {
    .navbar {
        justify-content: center;
    }

    .home h1 {
        padding-top: 5rem;
    }

    .contact-form input,
    textarea {
        width: 80%;
    }
}

@media all and (max-width: 400px) {
    nav a {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .home h1 {
        padding-top: 6rem;
    }

    .home h2 {
        font-size: 1.2rem;
    }
}

@media all and (max-width: 351px) {
    .home-container {
        max-width: 90%;
    }

    .home h1 {
        padding-top: 7.5rem;
        font-size: 2rem;
    }
}