* {
    margin: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    user-select: none;
    overflow-x: hidden !important;
    background-color: #fff;
}

.body {
    background-image: url("../images/background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    width: 100%;
}

.page {
    min-height: 150vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.header {
    height: 86.5vh;
    background: url("../images/animal-about.png") center/cover no-repeat;
    width: 100%;
    position: relative;
    margin-top: 0;
}


.imgbox {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-items: center;
    gap: 3rem;
    margin-top: 5rem;
    background-color: rgba(240, 248, 255, 0);
}

.boximg, .imgbox img {
    max-width: 100%;
    height: auto;
    display: block;
}
.container {
    display: grid;
    justify-items: center;
    width: 100%;
}

.api-box, .previous-api {
    justify-self: center;
    height: auto;
    width: 100%;
    max-width: 600px;
}

/* Make images responsive so they scale inside their containers */
.api-box img,
.previous-api img,
.boximg,
.imgbox img,
.bottom-span img {
    max-width: 100%;
    height: auto;
    display: block;
}

.new, .previous {
    --card-bg: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(245,250,245,0.9));
    --accent: linear-gradient(90deg,#8fd3a6,#66b37a);
    position: relative;
    width: clamp(260px, 30vw, 420px);
    min-height: 280px;
    padding: 1.4rem 1.2rem;
    background: var(--card-bg);
    border-radius: 1.25rem;
    box-shadow: 0 8px 20px rgba(19,19,19,0.08), 0 2px 6px rgba(19,19,19,0.04);
    border: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    font-family: "Road Rage", sans-serif;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.new::before,
.previous::before{
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    top: 0.9rem;
    height: 6px;
    border-radius: 4px;
    background: var(--accent);
    opacity: 0.95;
}

.new h1,
.previous h1 {
    font-size: 1.6rem;
    margin: 0.6rem 0 0.1rem 0;
    font-weight: 300;
}

.new h2,
.previous h2 {
    font-size: 1rem;
    margin: 0;
    font-weight: 200;
    color: rgba(0,0,0,0.7);
}

.previous p {
    margin: 0.6rem 0 0 0;
    padding: 0 0.6rem;
    text-align: center;
}
.previous-api img {
    max-width: 100%;
    height: auto;
    display: block;
}
.search {
    /* legacy - avoid using; prefer .card-search below */
    display: inline-block;
    padding: 0.6rem 0.8rem;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    filter: drop-shadow(5px 1px 10px rgba(0,0,0,0.12));
    border: none;
}

.submit {
    display: inline-block;
    padding: 0.6rem 0.8rem;
    background-color: rgb(199, 238, 202);
    border-radius: 10px;
    filter: drop-shadow(1px 1px 6px rgba(0,0,0,0.12));
    border: none;
    transition: transform 0.12s ease;
}
.submit:hover{
    transform: scale(1.04);
}

/* Card search styles (used inside .new) */
.card-search {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.6rem;
    width: 100%;
    max-width: 420px;
    justify-content: center;
    align-items: center;
}

.card-search input[type="search"]{
    flex: 1 1 auto;
    padding: 0.6rem 0.9rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.95);
    font-size: 1rem;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.03);
}

.card-search input[type="search"]:focus{
    border-color: #6fb67d;
    box-shadow: 0 6px 18px rgba(70,130,90,0.08);
}

.card-search-btn{
    background: linear-gradient(180deg,#7ecb8f,#66b37a);
    color: white;
    border: none;
    padding: 0.55rem 0.9rem;
    border-radius: 0.6rem;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card-search-btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(50,100,60,0.12);
}

.card-hint{
    margin-top: 0.6rem;
    font-size: 0.95rem;
    color: rgba(0,0,0,0.6);
}


.box {
    position: relative;
    width: fit-content;
    height: fit-content;
}

.box1 {
    grid-column: 1;
    grid-row: 1;
    
}

.box3 {
    grid-column: 3;
    grid-row: 1;
}

.box2 {
    grid-column: 2;
    grid-row: 2;
}

.info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Road Rage", sans-serif;
    text-align: center;
    color: black;
}
.info p{
    font-size: 2.8rem;
}

.info h1 {
    font-size: 2.8rem;
    margin-bottom: 0.1rem;
    font-weight: 100;
}

.times {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-weight: 100;
    
}

.times h2 {
    font-size: 3rem;
    margin-bottom: 0rem;
    font-weight: 100;

}

.times p {
    font-size: 2.5rem;
    font-weight: 100;

}

.box2 .info p,
.box3 .info p {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 100;

}

.btn {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid black;
    border-radius: 0.5rem;
    font-size: 2rem;
    color: black;
    text-decoration: none;
    font-family: "Road Rage", sans-serif;
    font-weight: 100;
    transition: all 0.3s ease; 
}

.btn:hover {
    transform: scale(1.08); 
    background: rgba(0, 0, 0, 0.25); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.25); 
    border-color: #333; 
}



.navBar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1100px;
    box-sizing: border-box;
    height: auto;
    min-height: 70px;
    background: #7ea87c;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    font-family: Arial, sans-serif;
    color: white;
    z-index: 500;
    justify-content: space-between;
    gap: 1.5rem;
}

.navBar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 28%;
    height: 100%;
    background: #1d3d2c;
    border-radius: 1rem 0 0 1rem;
    /* Match main styles clip-path so the slit looks consistent across pages */
    clip-path: polygon(0 0, 85% 0, 55% 100%, 0 100%);
    z-index: -1;
}

.leftText {
    position: relative;
    flex-shrink: 0;
    font-family: "Road Rage", sans-serif;
    white-space: nowrap;
}

.leftText h1 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    color: #f1c057;
    margin: 0;
}

.leftText p {
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    color: #f1c057;
    margin: 0;
}
.menu li a {
    position: relative;
    transition: all 0.25s ease;
    transform: scale(1.1);

}

.menu li a:hover {
    color: #f1c057;
    transform: translateY(-2px);
    transform: scale(1.1);

}


.menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    color: white;
    text-decoration: none;
}

.menu li a:hover::after {
    transform: scale(1.1);
}

.menu li {
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    font-weight: bold;
    cursor: pointer;
}

.planBtn {
    flex-shrink: 0;
    background: #659a66;
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    font-size: clamp(0.9rem, 1.1vw, 1.3rem);
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.planBtn a {
    color: white;
    text-decoration: none;
}

.planBtn:hover {
    background: #4d8856;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.planBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;

    flex-shrink: 0;
}

.nav-user {
    color: #fffbe6;
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-account-btn, .nav-logout-btn {
    background: #f1c057;
    color: #1d3d2c;
    border: none;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.nav-account-btn:hover, .nav-logout-btn:hover {
    background: #ffd274;
}

.nav-logout-form {
    display: inline;
}


.cheetahtxt {
    position: absolute;
    top: 50%;
    left: 5vw;
    transform: translateY(-50%);
    width: 35vw;
    font-family: "Road Rage", sans-serif;
    color: white;
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 200;
    z-index: 300;
}

.bodytxt {
    color: black;
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 100;
    font-family: "Road Rage", sans-serif;
    text-align: center;
}

.bodytxt h1 {
    line-height: 3;
    font-weight: 100;
}

.bodytxt p {
    width: 100%;
    max-width: 600px;
    font-size: 32px;
    margin: 0 auto;
    position: relative;
    left: 0;
    transform: none;
}

.footer {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.footer-img {
    background: url("../../assets/images/footer.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 449px;
    width: 100%;
    position: relative;
}

.bottom-span {
    position: absolute;
    top: 40%;
    left: 10%;
    max-width: 30%;
    width: 100%;
}

.bottom-span p {
    font-family: "Road Rage";
    font-size: clamp(20px, 3vw, 42px);
    margin: 0;
    line-height: 1.2;
}

.bottom-span img {
    gap: 50%;
    padding: 2%;
}

.footerinfo {
    position: absolute;
    top: 35%;
    left: 40%;
    max-width: 50%;
    font-family: "Road Rage";
    font-size: clamp(16px, 2.5vw, 42px);
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    overflow: hidden;
}

.links {
    color: white;
    text-decoration: none;
}

a {
    color: white;
    text-decoration: none; 
}