* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding: 10px 30px 30px 30px;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: black;
}

.header {
  font-family: "Archivo Black", sans-serif;
}

.hr-line {
  margin: 20px 0;
  color: black;
}

.search-container {
  position: relative;
  margin: 10px 0;
}

#searchInput {
  width: 100%;
  padding: 10px 20px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.3s;
  font-family: "Nunito", sans-serif;
}

#searchInput:focus {
  border-color: #bdbdbd;
  /*box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);*/
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #aaa;
  display: none;
}

.clear-btn:hover {
  color: #666;
}

.notes-container {
  display: grid;
  gap: 16px;
}

.note {
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  opacity: 1;
  height: auto;
}

.note.hidden {
  opacity: 0;
  height: 0;
  padding: 0 20px;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.head {
  display: flex;
  align-items: center;
  font-family: "Nunito", sans-serif;
}

.image {
  width: 50px;
  margin-right: 20px;
}

.icon {
  font-size: 1.5rem;
  background-color: #eee;
  border-radius: 50px;
  padding: 7px 10px;
}

.note-title {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: #222;
}

.note-title a {
  cursor: pointer;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #888;
  font-size: 1.2em;
  display: none;
  font-family: "Nunito", sans-serif;
}


/* Video */
.head-image {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.content {
  padding: 5px 18px 25px 18px;
  font-family: "Nunito", sans-serif;
}

.channel {
  font-size: 13px;
  color: #666;
  margin: 0;
  display: flex;
  align-items: center;
}

.channel::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff9ec9;
  margin-right: 8px;
  background-image: url('https://yt3.ggpht.com/a/default-user=s48');
  background-size: cover;
}

.meta {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

footer {
  text-align: center;
  justify-content: center;
  margin-top: 30px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #a0a0a0;
  font-family: "Nunito", sans-serif;
}

@media screen and (min-width: 500px) {
    h1 {
        font-size: 3rem;
    }

    body {
        padding: 30px 60px;
    }
    
    .notes-container{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }

}

@media screen and (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    body {
        padding: 40px 150px;
    }
    
    .notes-container{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
    }
  }