/* ===== LAYOUT: LEFT NAV (header) + RIGHT CONTENT (everything else) ===== */

body{
  margin: 0;
background: #897C9E;
background: linear-gradient(360deg,rgba(167, 167, 177, 1) 0%, rgba(137, 124, 158, 1) 50%, rgba(85, 68, 127, 1) 100%);
  font-family: arial;
  font-size: 10pt;
  color: #463E54;
  overflow-y: scroll;
  text-align: center; /* keep your classic centering */
}

a:link, a:visited, a:active{
  color: #427A75;
  text-decoration: none;
  font-weight: normal;
}
a:hover{
  color: #55447F;
  text-decoration: none;
}

/* Left panel */
#header{
  position: fixed;
  left: 30px;
  top: 30px;

  width: 20vw;                 /* nav width */
  height: calc(100vh - 60px);  /* 30px top + 30px bottom */

  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;

  background-image: url('shantyv7bkga.png');
  background-repeat: repeat;

  border: 3px solid #463E54;
  border-radius: 26px;
}

#header img{
  max-width: 100%;
  height: auto;
}

/* Right side: your existing #main and #frame live here */


/* Dogz nav block */
#main{
  margin-left: calc(20vw + 60px); /* nav + left gap */
  margin-top: 30px;

  width: calc(80vw - 90px);       /* remaining width minus right gap */
  box-sizing: border-box;
  height: calc(100vh - 60px);  /* 30px top + 30px bottom */
  background: #fff;
  border: 3px solid #463E54;
  border-radius: 26px;

  padding: 12px;
  text-align: center; /* re-center nav links/table */
}

/* Content block (scroll inside it) */
#frame {
  width: 100%;
  height: calc(100vh - 260px);  /* 30px top + 30px bottom */
  border: 0;
  text-align: center;
  overflow-x: hidden;
}

#frame2 {
  width: 100%;
  height: calc(100vh - 130px);  /* 30px top + 30px bottom */
  border: 0;
  text-align: center;
  overflow-x: hidden;
}

/* Keep #crew flexible */
#crew { 
max-width: 100%; 
background: #FFFFFF;
text-align: center;
min-height: 550px;
margin: auto;
overflow-x: hidden;
}

#updates { 
max-width: 90%; 
background: #FFFFFF;
text-align: center;
min-height: 100px;
margin: auto;
overflow-x: hidden;
}

      .parent {
        position: relative;
        top: 0;
        left: 0;
      }
      
.img1 {
  max-width: 100%;
  height: auto;
  position: relative;
}

.img2 {
  max-width: 100%;
  height: auto;
  position: absolute;
          top: 140;
        left: 0;
}

.textheader { 
padding-bottom: 2px; 
padding-top: 2px; 
background: #78A186; 
border-bottom: 2px solid #232323; 
font-family: tahoma; 
color: #000000; 
font-size: 12pt; 
font-weight: bold; 
text-transform: uppercase; 
letter-spacing: 2px; 
text-align: center; 
width: 60%; 
margin: auto;
margin-top: 10px;
}

.petzspacer{
  flex: 0 0 100%;
  height: 20px; /* adjust spacing here */
}

table {
margin: auto;
border: 0;
width: auto;
}

td { 
font-family: arial; 
font-size: 10pt; 
color: #000000;
text-align: center;
vertical-align: middle;
margin: auto;
border: 0;
}

.break-word {
		word-wrap: break-word;
}


.petzflex {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: auto;
    justify-content: center;
  }
  
  .petzdiv {
    align-self: baseline;
    flex: 1;
    max-width: max-content;
  }
  
  .petzdiv img {
    padding-top: 0;
    margin-bottom: 0;
       margin: auto;
      }
  
  .petzdiv h2 {
    background-color: #fff;
    border-radius: 0;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 11pt;
    font-weight: bold;
    margin: auto;
    padding: 2px;
  }
  
  .petzinfo {
    border: 0px solid #000;
    border-radius: 0;
    margin: auto;
    max-width: 120px;
  }
  
    #categoryList {
        list-style-type: none; /* Removes bullet points */
        padding: 0;
            font-family: Arial, sans-serif;
    }
    #categoryList li {
        margin-bottom: 5px; /* Adds spacing between items */  
        font-family: Arial, sans-serif;
    }


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.companion-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  text-align: center;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  border: 3px solid #6B5E80;
  height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

.image-wrapper {
  position: relative;
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.arrow-button {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.0rem;
  background: rgba(255, 255, 255, 0.8);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6B5E80;
}

.pet-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.petzinfo {
  font-size: 10pt;
  font-family: arial;
  color: #000;
  max-width: 150px;
  margin: auto;
  flex-grow: 1;
}

.petzinfo img.favorite-icon {
  margin: 2px;
  width: 24px;
  height: 24px;
}

.companion-card h2 {
  font-size: 11pt;
  margin: 0.5rem 0 0;
}

.companion-card em {
  color: #666;
  font-style: italic;
}

.info-icon {
  height: auto;
  width: auto;
  max-height: 100%;
  max-width: 100%;
  margin: 0 2px;
}
.companion-card h2 .gender {
  width: 1em;
  height: 1em;
  margin-left: 0.1rem;
  vertical-align: middle;
}

.gender.male { color: #2196f3; }
.gender.female { color: #e91e63; }

@media (max-width:700px){

  body{
    overflow: hidden;
  }

  #header,
  #main,
  #frame{
    height: 80dvh;
  }

}
