  html {
    height: 100%;
    width: 100%;
  }

  :root {
    --svg: #fff;
    --one: #F2E2BA;
    --two: #938a93;
    --three: #81B082;
    --four: #BB8391;
    --text1:#486D49;
  }

  @font-face { font-family: 'catfiles'; src: url('https://files.catbox.moe/6sxg9g.ttf') format('TrueType'); }

@font-face { font-family: 'despi'; src: url('https://files.catbox.moe/ar9xjp.ttf') format('TrueType'); }

@font-face { font-family: 'buycat'; src: 
  url('https://files.catbox.moe/91iy8w.ttf') format('TrueType'); }

::selection {
    background: transparent;
    color: var(--four);
}

  body {
    margin: 0;
  }

  #top-bar {
    display: flex;
    background-color: var(--one);
    height: 2.50rem;
    width: 100%;
    margin: 0px;
    padding: 20px;
    align-items: center;
    border-bottom: 2px solid var(--two);
  }

  #top-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'catfiles';
    color:var(--text1);
    font-size: 1.5rem;
  }

  #nav-control {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 35px;
    width: 35px;
  }

  #nav-control:hover {
    background-color: rgb(147,138,147, 0.7);
    border-radius: 50%;
  }

  #logo img {
    height: 50px;
    width: 50px;
    margin: 10px;
    position: relative;
  }

  .logo-static {
    display: block; 
  }

  .logo-animated {
    display: none; 
  }

  #logo:hover .logo-static {
    display: none; 
  }

  #logo:hover .logo-animated {
    display: block; 
  }

  #top-middle {
    width: 70%;
  }

  #top-right {
    display: flex;
    justify-content: space-between;
  }

  #add-member {
    position: absolute;
    top: 23px;
    left: 85%;
    height: 35px;
    width: 35px;
    color: var(--two);
  }

  #add-member:hover {
    animation: 5s spin;
  }

  @keyframes spin {
    0% {
      transform: rotate(0);
    }
    100% {
      transform: rotate(90deg);
    }
  }

  #pfp {
    background-color: var(--two);
    border-radius: 50%;
    border: 3px solid var(--three);
    height: 50px;
    width: 50px;
    cursor: pointer;
    background-size: cover; 
    background-position: center; 
  }

  #pfp:hover {
    border-color: var(--four);
  }

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

  .modal-content {
    background-color: var(--one); 
    padding: 20px; 
    border-radius: 10px;
    width: 300px; 
    max-width: 90%; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex; 
    flex-direction: column; 
    position: relative; 
  }

  .close-btn {
    position: absolute; 
    top: 10px; 
    right: 15px; 
    font-size: 20px; 
    cursor: pointer; 
  }

  input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid var(--two);
    border-radius: 5px;
  }

  .profile-card {
    background-color: var(--one);
    width: 300px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .save-button {
    background-color: var(--three);
    color: var(--text1);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
  }

  .save-button:hover {
    background-color: var(--three);
  }
#nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  width: 30px;
  height: calc(100vh - 3.5rem);
  padding: 20px 15px; 
  background-color: var(--one);
  border-right: 2px solid var(--two);
  border-top: 2px solid var(--two);
  transition: width 0.9s; 
  z-index: 2; 
  position: fixed; 
  top: 5.0rem;
  left: 0; 
  font-family: 'catfiles';
  color: var(--text1);
}

#nav:hover {
  width: 130px; 
}

#nav p {
  display: none; 
  margin-left: 10px;
}

#nav:hover p {
  display: inline; 
}

  #home-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 30px;
  }
  #home-wrap p {
    margin-left: 15px;
  }
    #home {
      height: 30px;
      width: 30px;
     }
  #villagers-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 30px;
  }

  #villagers-wrap p {
    margin-left: 15px;
  }
    #villagers {
      height: 30px;
      width: 30px;
    }
 #main {
   height: calc(100vh - 3.5rem);
   position: fixed; 
   top: 6.0rem;
   left: 6.0rem; 
 }

#class-container {
  display: flex; 
  flex-wrap: wrap; 
  justify-content: flex-start;
  gap: 30px; 
}

.class-card {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px; 
  border: 2px solid var(--two);
  border-left: none;
  border-right: none;
  border-radius: 0px;
  padding: 10px;
  width: 270px;
  height: 60px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin: 10px 0; 
  color: white;
}

.avatar {
  width: 90px;
  height: 90px; 
  border-radius: 50%;
  background-color: gray; 
  border: 4px solid #f55;
  margin-right: 15px; 
}

.info {
  flex-grow: 1; 
}

h3 {
  margin: 0; 
  font-weight: bold; 
  font-size: 20px; 
  font-family: 'buycat';
}

.species {
  margin: 5px 10px 0; 
  color: #fff; 
  font-size: 14px; 
  font-family: 'despi';
}
.card-wrapper {
  display: flex; 
  flex-wrap: wrap; 
  border: 2px solid var(--two);
  border-radius: 10px;
  padding: 10px 0;
  margin: 10px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: 0.5s;
}

.class-card::before {
  content: '';
  display: block;
  height: 2px;
  background-color: #ccc;
  margin: 10px 0;
}

.card-wrapper:hover {
  transform: scale(1.12);
  cursor: pointer;
}

.avatar {
  border-radius: 50%;
  background-color: gray; 
  background-size: cover; 
  background-position: center; 
  margin-right: 15px; 
}

.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

