*{
  padding:0;
  margin: 0;
}
body {
    font-family:sans-serif;
    background-color: #02071a;
    color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width:97vw;
    padding: 10px;
}

.top .bi-brightness-high, .top a {
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    color:white;
    display: block;
    padding: 5px 14px;
    background: linear-gradient(to bottom ,violet,#02071a);
    border-radius: 14px; 
}
.Main {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.main-top {
    background: linear-gradient(to right ,#9a37f8,violet);
    width: 270px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    padding: 8px 13px;
    box-sizing: border-box;
}

.main-top h3 {
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.paper-nav {
    display:flex;
    align-items: center;
    justify-content: space-between;
    background-color: #383636;
    list-style: none;
    padding: 4px 10px; 
    width: 255px;
    box-sizing: border-box;
    border-radius: 14px;
}

.paper-nav li {
    padding: 5px 16px;
    border-radius: 14px;
}

.paper-nav li:hover {
  background-color: #818181 ;
}

.note-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  padding: 25px 15px;
  width: 255px;
  min-height: 150px;
  box-sizing: border-box;
  border-radius: 14px;
  background-color: #383636;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


 .note-link {
    padding: 12px 20px;
    border-radius: 14px;
    background-color: black;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 215px;
    box-sizing: border-box;
    margin: 10px;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
 }

 .note-link span {
  text-align: center;
  padding-right: 30px;
  padding-left: 10px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

 .note-link i {
  position: absolute;
  right: 15px;
  font-size: 16px;
  opacity: 0.8;
  padding: 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

 .note-link:hover {
    background-color: #4b624b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
 }
.drop_content_one,
.drop_content {
    overflow: hidden;
    height: 0;
    transition: height 0.3s ease-out;
}

.content-section {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.content-section.active {
    display: block;
    opacity: 1;
}

.nav-item {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-item.active {
    background-color: black;
}

.pyq-link {
    padding: 0;
    border-radius: 14px;
    background-color: black;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 215px;
    box-sizing: border-box;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pyq-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.pyq-preview:hover {
    opacity: 0.8;
}

.pyq-info {
    width: 100%;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pyq-info span {
    font-size: 14px;
}

.pyq-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
}

.close-btn:hover {
    color: #818181;
}