* {
  border: 0;
  line-height: 1;
  margin: 0;
  padding: 0;
}

h1.logo a {
  text-decoration: none;
}

html {
  color: #292929;
  background: #fff;
  font-size: 62.5%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 300;
  padding-top: 20px;
}

main {
  display: block;
  min-height: 600px;
  padding: 0 10px 100px 10px;
}

a {
  color: #666;
  font-weight: 600;
}

h1 {
  font-size: 3.2rem;
  margin-bottom: 15px;
  margin-top: 30px;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  margin-top: 30px;
  line-height: 1.45;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  margin-top: 30px;
  line-height: 1.45;
}

p {
  line-height: 1.45;
  margin: 15px 0;
}

ul, li {
  line-height: 1.45;
  padding: 10px;
}

.form {
  background-color: #f9f9f9;
  background: -webkit-gradient(linear, left top, right top, from(#e6e6e6), to(#f9f9f9));
  background: -o-linear-gradient(left, #e6e6e6, #f9f9f9);
  background: linear-gradient(left, #e6e6e6, #f9f9f9);
  border: 1px solid #e9e9e9;
  border-radius: 10px;
  line-height: 1.45;
  margin: 10px 0;
  padding: 10px 20px;
  width: auto;
}

.form:after {
  clear: both;
  content: "";
  display: block;
  height: 0;
}

.form fieldset {
  border: none;
  margin: 10px 0;
  width: 100%;
}

.form input {
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 2.2rem;
  padding: 5px;
}

.form input[type=text] {
  margin: 5px 3px;
  font-size: 1.8rem;
}

.form input[type=submit] {
  background: #369;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 10px;
  text-transform: uppercase;
}

footer {
  font-size: 1.2rem;
  padding: 10px 0 30px 0;
}

footer div {
  float: left;
}

footer nav {
  float: right;
}

footer ul {
  display: block;
  line-height: 1;
  padding: 0;
}

footer li {
  display: inline;
  line-height: 1;
  margin-left: 5px;
  padding: 0;
}

footer a {
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

.logo {
  color: #000;
  display: block;
  font-size: 2.6rem;
  font-weight: 600;
  text-decoration: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin-bottom: 15px;
  margin-top: 30px;
}

.form .results input[type=text] {
  background: #f9f9f9;
  padding-bottom: 7px;
}

.intro {
  font-size: 1.4rem;
}

.tips {
  border: 1px solid #ccc;
  display: none;
  font-size: 1.2rem;
  padding: 5px 10px;
  text-align: center;
}

.hide {
  visibility: hidden;
}

.remove {
  display: none;
}

@media (min-width: 728px) {
  main {
    margin: 0 auto;
    max-width: 728px;
  }
  .intro {
    color: #666;
    font-size: 1.8rem;
  }
  .form .values {
    float: left;
    width: 60%;
  }
  .form .results {
    float: right;
    width: 40%;
    text-align: right;
  }
  .tips {
    display: block;
  }
  .remove {
    display: inline;
  }
}
body {
  text-align: center;
}

main {
  text-align: left;
}

.sidead {
  display: none;
  min-height: 5px;
  padding-bottom: 10px;
  position: absolute;
  width: 336px;
}

.sidead_left {
  left: calc((100% - 728px) / 2 - 336px - 30px);
  text-align: right;
}

.sidead_right {
  right: calc((100% - 728px) / 2 - 336px - 30px);
  text-align: left;
}

@media (min-width: 1500px) {
  .sidead {
    display: inline-block;
  }
}

 .thumbnail-container {
      position: relative;
    }

    .thumbnail-img {
      width: 100%;
      height: auto;
      border: 1px solid #ddd;
      border-radius: 4px;
      padding: 5px;
    }

    .download-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      opacity: 0;
      transition: opacity 0.3s;
    }

    .thumbnail-container:hover .download-btn {
      opacity: 1;
    }

    .thumbnail-title {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(255, 255, 255, 0.8);
      padding: 5px;
      border-radius: 4px;
    }

/* Custom styles for the card view */
.card-container {
  max-width: auto;
  margin: auto;
  padding: 20px;
  background-color: #ced4da; /* Light white background */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.form-group {
  text-align: center;
}

/* Style for the YouTube Video URL input */
.form-control {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  box-sizing: border-box;
}

/* Style for the Download Thumbnails button */
.btn-primary {
  background-color: #3498db; /* Blue color, you can customize this */
  color: #ffffff; /* White text */
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

/* Style for the Thumbnail Container */
#thumbnailContainer {
  margin-top: 20px;
}

/* Style for the Thumbnails and Download buttons inside the container */
.thumbnail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.thumbnail-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.download-button {
  margin-top: 10px;
  background-color: #2ecc71; /* Green color, you can customize this */
  color: #ffffff; /* White text */
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

