/* overall */
html {
    /*color: var(--temp-color4);*/
    width: 100vw;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: hidden;
}

body {
    width: 100%;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--temp-color4);
    overflow-x: hidden;
}


/* header */
header {
    display: flex;
    height: 70px;
    background-color: var(--temp-color3);
    color: var(--temp-color4);
}

header div.header-profile {
    width: 33%;
    height: 100%;
}

header p, .header-stats1, .header-stats2{
    display: block;
    margin: 0 10px 0;
}

.header-right p {
    margin-left: 15px;
}

header i {
    display: inline;
    margin: 0;
    padding: 0;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 60%;
}

#header-pb {
    border-radius: 50%;
    height: 75%;
    width: auto;
    margin-top: 7.5px;
    border: 2px solid var(--temp-color5);
    aspect-ratio: 1 / 1;
}

#header-name::after {
    content: var(--user-name);
    color: var(--temp-color4);
}

#header-level::after {
    content: var(--user-level);
    color: var(--temp-color4);
}

#species-count::before {
    content: var(--species-now);
    color: var(--temp-color4);
    display: inline;
}
#nutrients-count::before {
    content: var(--nutrients-now);
    color: var(--temp-color4);
    display: inline;
}

.header-stats1, .header-stats2 {
    display: flex;
    align-items: center;
    text-align: center;
    width: 50%;
    margin: 0
}

/* center of the page */


.main {
    display: grid;
    align-items: center;
}

/*
.speci::first-of-type {

}
*/

.spec-img {
    width: 40%;
    border: 2px solid var(--temp-color5);
    border-radius: 5px;
}

  /* vaccine stuff */
.tag {
    display: inline-block;
    background: var(--temp-color2);
    color: var(--temp-color4);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.04em;
    border: 1px solid var(--temp-color4);
}


  /* VACCINE CARDS 
  .vaccines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
  }
*/

.vaccines-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

.v-card {
    background: var(--temp-color5);
    width: 80%;
    border: 2px solid var(--temp-color1);
    border-radius: 12px;
    padding: 1.4rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 1.2rem;
  }

.v-card:first-of-type {
    margin-top: 10px;
}
.v-card:last-of-type {
    margin-bottom: 60px;
}

  .v-card:hover {
    border-color: var(--temp-color2);
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  }
  .v-name { font-weight: 700; color: var(--temp-color1); margin-bottom: 0.3rem; }
  .v-more { font-size: 1rem; font-weight: 700; color: var(--temp-color4); display: inline;}

  /* MODAL */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(46,45,77, 0.75);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
  }
  .modal-overlay.active { display: flex; }
  .modal-box {
    background: var(--temp-color4);
    border-radius: 14px;
    max-width: 580px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
  }
  .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--grey);
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-tag {
    display: inline-block;
    background: var(--temp-color2);
    color: var(--temp-color4);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.8rem;
  }
  .modal-title { font-size: 1.5rem; font-weight: 800; color: var(--temp-color5); margin-bottom: 0.3rem; }
  .modal-body { font-size: 0.92rem; color: var(--text-light); line-height: 1.8; }
  .modal-body p + p { margin-top: 0.6rem; }

  /* end of vaccine stuff */



/* footer */
footer {
    background-color: var(--temp-color3);
    height: 50px;
    position: fixed;
    bottom: 0;
    width: min(446px, 100%);
    font-size: 1.25rem;
    display: flex;
    justify-content: space-around;
}

footer a {
    color: var(--temp-color4);
    text-decoration: none;
    font-weight: bold;
}

#hp-link{
    font-size: 1.35rem;
}

.vl {
    display: inline-block;
    width: 0.2rem;
    top: 10px;
    position: relative;
    height: 30px;
    background-color: var(--temp-color1);
}

/* media querys*/
@media (min-width: 450px) {
    body {
        width: 450px;
        margin: 0 auto;
        border-right: 4px solid var(--temp-color3);
        border-left: 4px solid var(--temp-color3);
        background-color: var(--temp-color4);
    }

    html {
        background: linear-gradient(90deg, var(--temp-color5), var(--temp-color4), var(--temp-color5));
        z-index: -1;
    }
}