body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background: palegreen;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #4CAF50;
    margin-bottom: 10px;
}
@media only screen and (max-width: 767px) {
    h1 {
        font-size: 24px;
        text-align: center;
    }
}
@media only screen and (min-width: 768px) {
    h1 {
        font-size: 36px;
        text-align: center;
        padding-bottom: 7px;
        border-bottom: 2px solid #000;
    }
}
nav {
    margin-top: 20px;
}

nav a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    margin-right: 20px;
    padding-bottom: 5px;
    line-height: 40px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease-in-out;
}

nav a:hover {
    border-color: #4CAF50;
}

#main-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(2px 4px 3px grey);
}

#input-container {
    margin-bottom: 30px;
}

#video-url {
    width: 80%;
    max-width: 400px;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    border: none;
    border-radius: 10px;
    padding: 13px 25px;
    margin: 10px auto;
    background-color: #0cb70e;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.snapsave-heading {
    color: #4CAF50;
    font-size: 36px;
    margin-bottom: 10px;
    text-align: center;
}   

.example-url {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}

.server-button {
    padding: 10px 20px;
    margin: 10px auto;
    background-color:#0cb70e;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.server-button:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    border-color: #0056b3;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
}

button:hover {
    background-color: #45A049;
}

button:active {
    transform: translateY(1px);
}

.thumbnails-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.thumbnail {
    margin: 10px;
}

.thumbnail img {
    width: 200px;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.download-buttons-container {
    text-align: center;
    margin-bottom: 10px;

}

.download-buttons-container button {
    margin: 0 5px;
}
.thumbnail-container {
    text-align: center;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.thumbnail-container.show {
        opacity: 1;
}

.thumbnail-image {
    width: 612px;
    display: block;
    height: 343px;
    margin: 0 auto;
    margin-bottom: 5px;
}

@media (min-width: 1200px) {
    .thumbnail-image {
        width: 800px;
        height: 448px;
    }
}

@media (max-width: 767px) {
    .thumbnail-image {
    width: 543px;
    height: 312px;
    }
}

@media (max-width: 619px) {
    .thumbnail-image {
    width: 490px;
    height: 275px;
    }
}

@media (max-width: 597px) {
    .thumbnail-image {
    width: 403px;
    height: 227px;
    }
}

@media (max-width: 540px) {
    .thumbnail-image {
    width: 516px;
    height: 226px;
    }
}

@media (max-width: 500px) {
    .thumbnail-image {
       width: 325px;
      height: 176px;
    }
}

@media (max-width: 410px) {
    .thumbnail-image {
      width: 276px;
      height: 150px;
    }
}

@media (max-width: 368px) {
    .thumbnail-image {
      width: 252px;
      height: 129px;
    }
}

@media (max-width: 300px) {
    .thumbnail-image {
      width: 190px;
      height: 105px;
   }
}
@media (max-width: 280px) {
    .thumbnail-image {
    width: 150px;
    height: 88px;
   }
}

.thumbnail-container button {
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

 @media (min-width: 1200px) {
    .thumbnail-container button {
      margin-top: 10px;
        padding: 15px 30px;
        font-size: 20px;
    }
}

@media (max-width: 500px) {
    .thumbnail-container button {
      margin-top: 10px;
        padding: 12px 30px;
        font-size: 13px;
    }
}

@media (max-width: 500px) {
    .thumbnail-container button {
      margin-top: 10px;
        padding: 10px 30px;
        font-size: 9px;
    }
}
img {
    width: 275px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}    

.image-container > img {
    width: auto;
    height: auto;
    max-width: 100%;
    text-align: center;
    filter: drop-shadow(2px 4px 6px black);
}

img:hover {
    transform: scale(1.0);
    box-shadow: 0 12px 12px rgba(0, 0, 0, 0.3);
}

.left-wrapper {
    text-align: left; 
    margin: 20px;
    font-family: Arial, sans-serif;
}
#how-to {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    max-width: 1280px;
}
#how-to h2, #how-to p {
    text-align: center;
}

.bold-text {
  font-weight: bold;
}
strong {
    font-weight: bold;
    font-size: 14px;
}
#features {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    width: auto;
    flex-wrap: wrap;
    border-radius: 8px;
}

#features .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
}

#features .image-container img {
    max-width: 70%;
    height: auto;
    border-radius: 10px;
}

#features .image-container p {
    margin-top: 10px;
}

.benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    background-color: #f0f0f0;
    padding: 20px;
    gap: 20px;
}

.column {
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

@media only screen and (min-width: 768px) {
    .column {
        flex-basis: 45%;
    }
}
.image-container {
    box-sizing: border-box;
}
@media only screen and (max-width: 767px) {
    .image-container {
        width: 80%;
    }
}
@media only screen and (min-width: 768px) {
    .image-container {
        width: 33.33%;
    }
}
@media (min-width: 769px) {
.image-container + .image-container {
    margin-left: 20px;
    }
}
@media (max-width: 768px) {
    .image-container + .image-container {
        margin-left: 0;
    }
}
@media (max-width: 768px) {
    .image-container + .image-container {
        margin-left: 0;
    }
}

#loading-container {
    display: none;
    margin-bottom: 20px;
}

.loader {
    border: 4px solid rgba(0, 0, 0, 0.3);
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-text {
    font-size: 20px;
    color: #4CAF50;
    margin-top: 10px;
}

#error-container {
    display: none;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#error-heading {
    font-size: 24px;
    color: #FF5722;
    margin-bottom: 20px;
}

#error-message {
    font-size: 18px;
    color: #555;
    line-height: 1.5;
}

#error-container:empty {
    display: none;
}
@media (max-width: 600px) {
    img {
        max-width: 100%;
        height: 200px;
    }

    #video-url {
        width: 95%;
    }
}

/* New Styles for Sections */


/* About Section */
#about {
    padding: 30px 0;
    background-color: #f7f7f7;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

#about h2 {
    color: #4CAF50;
    margin-bottom: 20px;
}

@media only screen and (max-width: 767px) {
    #about h2 {
        font-size: 21px;
    }
}

@media only screen and (min-width: 768px) {
    #about h2 {
        font-size: 28px;
    }
}

/* Contact Section */
#contact {
    padding: 30px 0;
    background-color: #fff;
}

form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

form label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
}

form textarea {
    resize: vertical;
}

form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease-in-out;
}

form button:hover {
    background-color: #45A049;
}

form button:active {
    transform: translateY(1px);
}





#loading-progress {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #f7f7f7;
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    width: 0;
}

.faq {
  list-style: none;
  padding: 0;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.faq dt {
  color: #0e70d8;
  font-weight: bold;
  margin-top: 20px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  padding: 15px;
}

.faq dd {
  margin-bottom: 20px;
  padding: 10px;
}

.forum {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px;
    border: 1px solid #5c5b5b;
    border-radius: 10px;
    box-shadow: 9px 12px 15px rgba(0, 0, 0, 0.1);
}
.forum label {
     display: block;
     margin-bottom: 5px;
}
.forum input,
.forum textarea {
     display: block;
     width: 100%;
     padding: 8px;
     margin-bottom: 10px;
     border: 1px solid #ccc;
     border-radius: 4px;
}
.forum textarea {
  resize: vertical;
}
.forum button {
   background-color: #007bff;
   color: #fff;
   border: none;
   padding: 10px;
   cursor: pointer;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.forum button:hover {
  background-color: #0056b3;
}

#thankYouBox {
  display: none;
  margin-top: 20px;
  padding: 10px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  text-align: center;
  color: #333;
}

#thankYouBox p {
  margin: 0;
  padding: 5px 0;
}

#thankYouBox .thank-you-title {
  font-size: 20px;
  font-weight: bold;
}

#thankYouBox .thank-you-message {
  font-size: 16px;
}

/* Footer Styles */
  footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 0 0 10px 10px;
    margin-top: 20px;
  }
  .footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}

.footer-menu,
.footer-contact {
    flex: 1;
}

.footer-menu h3,
.footer-contact h3 {
    color: #4CAF50;
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 5px;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease-in-out;
    line-height: 24px;

}

.footer-menu a:hover {
    color: #4CAF50;
}

.footer-contact p {
    font-size: 16px;
    margin: 5px 0;
}

.footer-bottom {
    background-color: palegreen;
    padding: 10px 0;
}

.footer-bottom p {
    font-size: 14px;
    color: #0e0e0f;
    margin: 0;
    text-align: center;
    font-weight: 700;

}
@media (max-width: 768px) {
  footer {
    padding: 20px;
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
  }

  .footer-menu {
    margin-bottom: 20px;
  }

  .footer-menu h3 {
    font-size: 18px;
  }

  .footer-menu ul {
    text-align: center;
  }

  .footer-menu li {
    display: inline-block;
    margin: 0 10px;
  }

  .footer-menu a {
    font-size: 14px;
  }
}
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}

.download-btn, .edit-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    flex: 1; /* Makes buttons equal width */
}

.download-btn {
    background-color: #ff0000; /* Red */
    color: white;
}

.edit-btn {
    background-color: #007bff; /* Blue */
    color: white;
}

.download-btn:hover, .edit-btn:hover {
    opacity: 0.9;
}