@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Nunito:ital,wght@0,300;0,400;0,700;1,300&display=swap');

* {
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Nunito';
    font-weight: 300;
    color: #000000;
    background-color: #628f8e;
}

p {
    line-height: 1.45em; 
}

h1, h2, h3 {
    font-family: 'Libre Baskerville';
    font-weight: 400;
    color: #3f566d;
}

h4, h5 {
    font-family: Nunito;
    font-weight: 400;
    color: #3f566d;
}

h1 { font-size: 50px; text-align: center; }
h2 { font-size: 40px; }
h3 { font-size: 30px; }
h4 { font-size: 25px; }
h5 { font-size: 20px; }

a:link { color: #3f566d; font-weight: bold; text-decoration: none; }
a:visited { color: #628f8e; }
a:hover { color: #628f8e; }

#wrapper {
    background-color: #fff;
    display: grid;
    grid-template-columns: 30% 1fr;
    grid-template-rows: auto;
    max-width: 1024px;
    margin: 30px auto;
}

header {
    margin: auto;
    grid-row: 1 / 2;
    grid-column: 1 / 3;
    
}

nav {
    grid-row: 2 / 3;
    grid-column: 1 / 3;
    text-align: center;
    margin:40px auto;
}

main {
    grid-row: 3 / 4;
    grid-column: 1 / 3;
    padding: 0 40px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

#leftimgp {
    display: block;
}
#leftimgp img {
    float: left;
    padding-right: 30px;
    padding-bottom: 30px;
}

footer {
    grid-row: 4 / 5;
    grid-column: 1 / 3;
    margin-top: 50px;
    text-align: center;
    background-image: url(images/leaf.jpg);
    background: -webkit-linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), url("images/leaf.jpg");
    background-size: cover;
    padding: 60px 0px;
    color: #3f566d;
    font-weight: 800;
    font-family: 'libre baskerville';
}

li {
    list-style-type: none;
    display: inline-block;
    background-color: #FFE7E2;
    padding: 5px 10px;
    margin-left: 10px; margin-bottom: 10px;
    font-size: 17px; 
    border-radius: 5px;
}

#contactform {
    width: 100%;
}

#contactform tr {
    line-height: 40px;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
}
input, textarea, select {
  width : 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.formbutton {
    width: 25%;
    padding: 10px 15px;
    font: inherit;
    background-color: #3f566d;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
}

.formbutton:hover {
    transform: rotate(5deg);
}
.formbutton:first-of-type{
    margin-right: 40px;
}

.tilt {
        transform: rotate(-25deg);
}

#facts {
    width: 100%;
      border-collapse: collapse;
}
#facts td {
    border: 2px #3f566d solid;
    padding: 8px;
}

#facts td:first-child {
    font-family: 'libre baskerville';
    font-size: 20px;
    color: #3f566d;
    font-weight: bold;
}

label {
    color: #3f566d;
    font-weight: bold;
    font-family: 'libre baskerville';
}

#grid_gallery {
    display: grid;
    grid-template-columns: repeat(2, 50%);
    grid-template-rows: auto;
    grid-gap: 15px; gap: 15px;
    justify-content: space-around;
}

#grid_gallery img {
    margin: 0 auto;
    width: 200px;
}

video {
    width: 100%;
}

@media (min-width: 1024px) {
    #wrapper {
        width: 1000px;
        margin: 20px auto;
        background-color: #fff;
        padding: 0;
    }
    
    header {
        padding: 30px 30px 60px 30px;
    }
    
    nav {
        grid-column: 1 / 2;
        text-align: left;
        margin: 0 0 0 40px;
    }
    
    main {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
        margin: 0 40px 0 0;
        min-height: 400px;
    }
    
    h1 {
        text-align: left;
    }
    
    li {
        display: block;
        background-color: #fff;
        padding: 0px;
        margin: 0px;
        line-height: 2;
        font-size: 20px; 
    }
    
    #grid_gallery {
        display: grid;
        justify-content: center;
    }
    
    .image_category {
        margin-bottom: 15px;     
    }
}
