@font-face {
    font-family: 'styles';
    src: url(styles.ttf);
}
@font-face {
    font-family: 'sketchlogs';
    src: url(Sketchlogs.ttf);
}
  
  body {
    font-family: Sketchlogs;
    background: #2A7B9B;
    color: #111;
    line-height: 1.5;
    padding: 1rem;
  }
  
  /* 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;
}


.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 */
}

/*Side Bar*/
.avatar {
  display: block;
  margin: auto;
  width: 32%;
  height: 70px;
  border-radius: 50%;
  margin-bottom: .8rem;
  object-fit: cover;  

}

.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 {
    background: #ffffff;
    /*text-align: center;*/
  }



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

  .container{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .imgwrapper{
    display: flex;
    flex-grow: 1;
    flex-basis: 0;
  }
  
  .img{
    align-self: center;
    width: 100%;
    min-width: 200px;
  }
  
  .main{
    display: flex;
    flex-direction: column;
    flex-grow: 3;
    flex-basis: 0;
    justify-content: space-between;
    gap: 1rem;
  }
  
  .box{
    display: flex;
    gap: 1rem;
  }
  
  .boximg{
    align-self: center;
    width: 200px;
  }
  
  .content{
    flex-grow: 6;
    flex-basis: 0;
    min-width: 220px;
    height: 220px;
    border: 2px solid #135e7e;
    padding: 1rem;
    overflow: scroll;
    overflow-x: hidden;
    text-align: justify;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .headers{
    font-family: Sketchlogs;
    font-size: 20px;
    text-align: right;
    font-weight: normal;
    border-bottom: 2px dotted #ffffff;
  }
  

  a:hover{
    font-style: italic;
  }
  
  a:active{
    font-style: italic;
    font-weight: bold;
  }
  
  ::-webkit-scrollbar{
    width: 6px; 
  }
  
  ::-webkit-scrollbar-track{
    background-color: transparent;
  }
  
  ::-webkit-scrollbar-thumb{
    background-color: #38bdf8;
  }
  
  #credit{
    font-size: 12px;
    position: fixed;
    bottom: 0px;
    right: 0;
  }
  
  @media(max-width:730px){
    .box img{
      display: none;
    }
  }
  
  @media(max-width:515px){
    .container{
      flex-direction: column;
    }
    .img{
      width: 40%;
      min-width: 40%;
      margin: 0 auto;
    }
  }

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





/* 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 {
    padding: 0.8rem;
  }

  .content {
    height: auto;
    max-height: 300px;
  }

  .boximg {
    width: 150px;
  }
}

/* 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;
    display: none;
  }

  .content {
    order: 1;
    height: auto;
  }

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

  .container {
    flex-direction: column;
  }

  .window {
    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;
  }

  .boximg {
    width: 100px;
  }

  .footer {
    font-size: 0.7rem;
  }

  .window {
    padding: 0.5rem;
    box-shadow: 1px 1px 0 #000;
  }

  .content {
    max-height: 250px;
  }

  .sidebar {
    display: none;
  }
}

/* Navigation Fix */
header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
}

/* 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;
  }
}
