html{
  background-color:black;
}

body {
  font-family: "Kumbh Sans", sans-serif;
  color:white;
}

#header {
  display:flex;
  align-items:center;
  border-bottom: 2px solid #99cdff;
  padding:10px;
}

#header h1 {
  display:inline-block;
}

#header a {
  margin-left:auto;
  display:inline-block;
  color:white;
  text-decoration:none;
  font-size:20px;
}

.contentdiv {
  text-align:center;
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
}

input {
  margin:10px;
}

button {
  background-color: transparent;
  color: white;
  border: 2px solid #99cdff;
  padding: 7px 10px;
  font-family: "Kumbh Sans", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
}

button:hover {
  background-color: #99cdff;
  color: black;
}

button:active {
  transform: scale(0.98);
}

#footer {
  text-align:center;
  padding-top:40px;
  padding-bottom:70px;
  border-top: 2px solid #99cdff;
}

#footer p {
  text-align:center;
}

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

.name {
  margin-top: 0;
  font-size: 20px;
  color: #ffffff;
}

.preview {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.5;
}

.tag {
  display: inline-block;
  /*background: #444;*/
  color: #ffffff;
  padding: 4px 10px;
  border: 2px solid #99cdff;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 10px;
  font-family: monospace;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#notesgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.file-card {
    background: #1a1a1a;
    border: 2px solid #99cdff;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.2s;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(153, 205, 255, 0.3);
}

.file-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Reusing your button style */
.file-card button {
    background-color: transparent;
    color: #99cdff;
    border: 1px solid #99cdff;
    padding: 5px 15px;
    cursor: pointer;
    width: 100%;
}

.file-card button:hover {
    background-color: #99cdff;
    color: black;
}