@font-face {
font-family: 'sketchlogs';
src: url(Sketchlogs.ttf);
}
@font-face {
    font-family: 'styles';
    src: url(styles.ttf);
    }
    
    


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

body {
font-family: Sketchlogs;
background: #2A7B9B;
color: #111;
line-height: 1.5;
padding: 1rem;
}

/* Window look */
.window {
border: 2px solid #000;
background: #fff;
padding: 1rem;
margin-bottom: 1rem;
box-shadow: 4px 4px 0 #000;
min-height: 180px; /* sets a minimum height */




}

/* Header */
.header {
font-family: styles;
background: #dbeafe;
margin-bottom: 1.5rem;
}

.header h1 {
margin-bottom: 1rem;
}



/* From Uiverse.io by Praashoo7 */ 
.buttons {
font-family: sketchlogs;
outline: none;
color: #000000;
padding: 1em 3em;
border: 2px dashed rgba(242, 153, 141, 1);
border-radius: 15px;
background-color: rgb(5, 149, 169);
box-shadow: 0 0 0 4px #EADDCA, 2px 2px 4px 2px rgba(0, 0, 0, 0.5);
transition: .1s ease-in-out, .4s color;

/* Add spacing */
margin: 0.5rem;
}

.avatar {
  display: block;
  margin: auto;
  width: 32%;
  height: 70px;
  border-radius: 50%;
  margin-bottom: .8rem;
  object-fit: cover;  /* make video fill the circle without distortion */

}

.drawing {
  display: block;
  margin: 0 auto;          /* horizontal centering */
  max-width: 100%;         /* ensure it doesn’t overflow */
  height: auto;            /* maintain aspect ratio */
}


  
  /* Layout */
  .main-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1rem;
  }
  

  .about {
    text-align: center;
  }
  /* Sidebar */
 .sidebar {
    background: #ffffff;
    /*text-align: center;*/
  }

  
  /* Content */
  .content .window {
    background: #eef6ff;
  }
  
  /* Progress bar */
  .progress-bar {
    width: 100%;
    height: 20px;
    background: #fff;
    border: 2px solid #000;
    margin-top: 0.5rem;
    gap: 10px;
  }
  
  .progress {
    height: 100%;
    background: #38bdf8;
    
    display: flex;              /* enable flexbox */
    align-items: center;        /* vertical center */
    justify-content: center;    /* horizontal center */
    font-weight: bold;         
  }
  /* Books */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.book {
  background: #fff;
  border: 2px solid #000;
  width: 70px;
  height: 97px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem; /* smaller text */
  overflow: hidden;
  border-radius: 7px;
}

.book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

  .window2 {
    border: 2px solid #000;
    background: #eef6ff;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 4px 4px 0 #000;
    min-height: 500px; /* sets a minimum height */
  }
  
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer {
    text-align: center;
    font-size: 0.8rem;
}



/* Prevent text overflow in windows */
.window {
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
}

/* Improve layout and spacing of progress bar and its text */
.progress-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.progress {
  background-color: #2A7B9B;
  color: #fff;
  padding: 4px;
  text-align: center;
  border-radius: 4px;
}

.progress p {
  margin: 0;
  font-size: 0.9rem;
}




/* Responsive Design */

/* Tablets and small laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 200px 1fr;
  }

  .avatar {
    width: 40%;
    height: auto;
  }

  .window, .window2 {
    padding: 0.8rem;
  }

  .book {
    width: 60px;
    height: 85px;
  }
}

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
  body {
    padding: 0.5rem;
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
    margin-top: 1rem;
  }

  .content {
    order: 1;
  }

  .avatar {
    width: 50%;
    height: auto;
  }

  .book-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }

  .window, .window2 {
    box-shadow: 2px 2px 0 #000;
  }

  .buttons {
    width: 100%;
    padding: 0.8em;
  }
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
  .avatar {
    width: 60%;
  }

  .buttons {
    font-size: 0.8rem;
    padding: 0.6em 1.2em;
  }

  .book {
    width: 55px;
    height: 75px;
  }

  .footer {
    font-size: 0.7rem;
  }

  .window, .window2 {
    padding: 0.5rem;
    box-shadow: 1px 1px 0 #000;
  }
}
/* Navigation Fix */
header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem; /* add space between buttons */
}

/* Stack buttons vertically on very small screens */
@media (max-width: 600px) {
  header nav {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav a,
  .buttons {
    width: 90%;
    text-align: center;
  }
}
