* {
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
} 

body {
    background-color: rgba(168, 225, 178, 0.55);
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;;
}

h1, h2 {
    padding-bottom: 20px;
} 


.search-bar {
    width: 100%;
    max-width: 300px;
    background: inherit;
    display: flex;
    align-items: center;
}


footer {
    text-align: center;
    padding: 25px;
    background: #FFD499;
    color: #000;
    height: 65px;
} 

button {
    background: none; 
    border: none; 
    padding: 0; 
    cursor: pointer; 
}

#kodu {
    text-align: center;
    font-family: sans-serif;
    margin-top: 50px;
}

hr {
    width: 300px; 
    height: 1px; 
    background-color: #000; 
    border: none; 
    margin: 10px auto; 
}

/* Gallery */
.gallery {
    display: flex; 
    justify-content: space-around; 
    flex-wrap: wrap; 
}

.box {
    background-color: white; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    margin: 10px; 
    padding: 15px; 
    width: 500px; 
    height: 750px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    transition: all 0.3s ease;
    border: 1px solid black;
    background-color: rgba(171, 214, 91, 0.30);
}

.box:hover {
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-10px);
}

.box img {
    max-width: 100%; 
    border-radius: 10px; 
    object-fit: cover;
    height: auto;
    flex-grow: 1; 
    border: 1px solid #000;
}

.box h2 {
    margin: 10px 0 5px; 
    transition: none;
    color: #000;
    text-decoration: underline;
}


/* Gallery box 2 for puud */

.box-2 {
    background-color: white; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    margin: 10px; 
    padding: 15px; 
    width: 500px; 
    height: 500px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    transition: all 0.3s ease;
    border: 1px solid black;
    background-color: rgba(91, 214, 189, 0.31);
}

.box-2:hover {
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-10px);
}

.box-2 img {
    max-width: 90%; 
    border-radius: 10px; 
    object-fit: cover;
    height: auto;
    flex-grow: 1; 
    border: 2px solid white;
}

.box-2 h2 {
    margin: 10px 0 5px; 
    transition: none;
    color: #000;
    text-decoration: underline;
}

/* Gallery box 3 for metsad */

.box-3 {
    background-color: white; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    margin: 10px; 
    padding: 15px; 
    width: 500px; 
    height: 500px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    transition: all 0.3s ease;
    border: 1px solid black;
    background-color: rgba(99, 105, 222, 0.45);
}

.box-3:hover {
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-10px);
}

.box-3 img {
    max-width: 90%; 
    border-radius: 10px; 
    object-fit: cover;
    height: auto;
    flex-grow: 1; 
    border: 2px solid white;
}

.box-3 h2 {
    margin: 10px 0 5px; 
    transition: none;
    color: #000;
    text-decoration: underline;
}

/* 2nd part */
#two {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 50px;
    background-color: inherit;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.centered-cursive {
    font-family: 'Dancing Script', cursive;
    font-size: 2em;
    text-align: center;
    color: #333;
    margin-top: 90px;
}

.social-media {
    z-index: 0;
    position: absolute;
    left: 0;
    border-radius: 8px;
    padding-top: 15px;
    padding-left: 50px;
}

.social-media h3 {
    margin-right: 10px;
    font-size: 1.5em;
    margin: 0;
}

.social-icons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.social-icons a {
    margin-top: 30px;
    margin-right: 10px;
    color: #333;
    text-decoration: none;
    font-size: 1.5em;
    display: inline-flex;
}

/* Contact */

#connect {
    width: 300px;
    margin: 0 auto;
    position: relative;
    top: 10%;
    text-align: center;
    transform: translateY(-50%);
}

#con {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 220px;
    padding-left: 30px;
}

#con a {
    font-size: x-large;
    text-align: center;
    color: #fff;
    text-decoration: none;
}

#contact {
    background-color: inherit;
    padding: 40px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

#contact h2 {
    text-align: center;
    color: #000000;
}

#contact p {
    text-align: center;
    color: #000;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-info h3 {
    color: #333;
}

.contact-info p {
    margin: 5px 0;
}

/* Contact page part */
.con-container {
    max-width: 500px; 
    margin: 50px auto;
    padding: 20px; 
    background: white; 
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}

.con-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px; 
}

.con-container label {
    display: block; 
    margin: 10px 0 5px; 
    color: #555; 
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    font-size: 16px; 
    transition: border-color 0.3s;
    resize: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #5cb85c; 
    outline: none; 
}

.con-container button {
    display: block; 
    width: 100%;
    padding: 10px;
    background-color: #5cb85c; 
    color: white; 
    border: none;
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 16px; 
    margin-top: 15px; 
    transition: background-color 0.3s; 
}


.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

button {
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 0 auto;
}

button:hover {
    background-color: #45a049;
}

#input_ {
    background-color: inherit;
}

/* Loodukaitse */
.rounded-rectangle {
    background-color: white; 
    border-radius: 15px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    padding: 40px; 
    margin: 20px;
}

.rounded-rectangle p {
    font-size: 25px;
}

.rounded-rectangle a:hover {
    transition: .5s;
    color: #000;
}

#loodusk-img {
    display: block;
    width: 40%; 
    height: auto;
    border-radius: 15px;
    border: 1px solid #000;
    margin: 15px auto;
}

/* puud ja metsad */
.tree-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
    width: 800px; 
    margin: 10px;
    background-color: #f0f0f0;
}

.imgbx {
    position: relative;
}

.imgbx img {
    width: 100%;
    height: auto;
    border-bottom: 15px solid rgba(91, 214, 189); 
}

.imgbxs {
    position: relative;
}

.imgbxs img {
    width: 100%;
    height: auto;
    border-bottom: 15px solid rgba(99, 105, 222); 
}

.card h2 {
    font-size: 1.5em;
    margin: 15px;
    color: #333;
}

.card p {
    margin: 15px;
    line-height: 1.5;
}



/* Tree container 2 */


.card-container {
    display: flex;
    justify-content: space-around; 
    flex-wrap: wrap; 
    padding: 20px; 
}

.tree-container-2 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-2 {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
    width: 500px; 
    margin: 10px;
    background-color: #f0f0f0;
}

.card-2:hover {
    transform: scale(1.05);
}

.imgbx-2 {
    position: relative;
}

.imgbx-2 img {
    width: 500px;
    height: auto;
    border-bottom: 5px solid #4CAF50; 
}

@media (max-width: 650px) {
    .card-2 {
        margin-bottom: 20px; 
        padding: 0;
        width: 300px;
    }
}

.card-2 h2 {
    font-size: 1.5em;
    margin: 15px;
    color: #333;
}

.card-2 p {
    margin: 15px;
    line-height: 1.5;
}


/* Mobile styles */


/* Google Fonts Link */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

nav {
  background: rgba(35, 153, 57, 0.733);
  height: 80px;
  width: 100%;
}

label.logo {
  color: #000;
  text-decoration: underline;
  font-size: 25px;
  line-height: 80px;
  padding: 0 100px;
  font-weight: bold;
}

nav ul {
  float: right;
  margin-right: 20px;
  z-index: 1000;
}

nav ul li {
  display: inline-block;
  line-height: 80px;
  margin: 0 5px;
}

nav ul li a {
  color: #000;
  font-size: 17px;
  padding: 7px 13px;
  border-radius: 3px;
  text-transform: uppercase;
}

a.current,
a:hover {
  color: #fff;
  transition: .5s;
}

.checkbtn {
  font-size: 22px;
  color: #000;
  float: right;
  line-height: 80px;
  margin-right: 30px;
  cursor: pointer;
  display: none;
}

#check {
  display: none;
}

@media (max-width: 1040px) {
  label.logo {
    padding-left: 30px;
  }

  nav ul li a {
    color: #000;
    font-size: 16px;
  }
  .card-container {
    padding: 5px; /* Reduce padding on smaller screens */
  }

  .card-2 {
    max-width: 90%; /* Make cards wider on mobile */
  }
}

/* For screen */
@media (max-width: 952px) {
  .checkbtn {
    display: block;
  }

  label.logo {
    font-size: 15px;
  }

  ul {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: rgba(168, 225, 178);
    top: 80px;
    left: -100%;
    text-align: center;
    transition: all .5s;
  }

  nav ul li {
    display: block;
    margin: 50px 0;
    line-height: 30px;
  }

  nav ul li a {
    font-size: 20px;
    color: #000;
  }


  #check:checked~ul {
    left: 0;
  }
}

section {
  background: url("bg.jpg") no-repeat;
  background-size: cover;
  height: calc(100vh - 80px);
}


/* Video */

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

/* For mobile devices */
@media (max-width: 768px) {
    video {
        height: 400%; 
        width: 85%; 
        margin: 0 auto; 
    }
}