


/* =========================
   RESET / BASE
   ========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0px;
    padding : 0;
    background-image: url("../images/grid.png");
    font-family: Arial, sans-serif;
    color: #222;
    text-align: center;
    min-height: 120vh; /* takes up full screen height */
    
}

/* =========================
   LAYOUT
   ========================= */

   /* Keep sidebar fixed */
/* Sidebar stays fixed */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 175px;
    height: 100vh;
    background-color: #A7BD5E;
    padding: 20px;
    z-index: 100;
}

/* Sidebar stays fixed */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 175px;
    height: 100vh;
    background-color: #A7BD5E;
    padding: 20px;
    z-index: 100;
}

/* Overlap buttons on top of sidebar, hanging left */
.overlap {
    position: absolute;       /* relative to sidebar */
    top: 34%;                 /* moves it down from top */
    left: 110px;              /* hang outside but not too far left */
    display: flex;
    flex-direction: column;
    gap: 10px;
    white-space: nowrap;      /* prevent wrapping */
    z-index: 999;
}

.overlap2 {
    position: absolute;
    bottom: 20px;
    left: 0px;             /* hang outside sidebar */
    white-space: nowrap;
    z-index: 999;
}

   
.top-bar {
    margin-left: 175px; 
    width: calc(100% - 175px);
    background-image: url("../images/finishedheader.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;

    height: 0;                /* remove fixed height */
    padding-top: 15.23%;      /* maintain aspect ratio */
    position: relative;
    z-index: 10;
}

.mini-bar {
    position: sticky;
    top: 0; 
    left: 175px; 
    margin-top: -27px;
    width: calc(100% - 175px);
    height: 100px;
    background-image: url("../images/headeroverlaygreen.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    z-index: 9999;        /* higher than any avatar layers */
    padding-top: 9px;   /* move text slightly down from top */
    padding-bottom: 0;
    display: flex;
    align-items: flex-start;   /* aligns content to top of bar */
    justify-content: center;
    font-weight: bold;
    font-size: 100%;
    color: #fff;
}



.mini-bar nav {
    display: flex;
    justify-content: center; /* center the links horizontally */
    gap: 30px;               /* space between each link */
}
.mini-bar nav > * {
    display: flex;
    align-items: center;
}


.mini-bar a {
    color: inherit;          /* use the parent color (white) */
    text-decoration: none;   /* remove underline */
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    line-height: 1;
    transform: translateY(-0.5vh); /* move text and icon UP slightly */


}

.geep-profile {
    margin: 10vh 0vh 30px 250px; /* top right bottom left */
    padding: 20px 30px 20px 30px; /* top right bottom left */
    border-radius: 12px 0px 0px 12px; /* rounded corners */
    text-align: left;
    min-height: 105vh;
    max-width: 100%;
    overflow: hidden;        /* hard stop for leaks */
    box-sizing: border-box;
    padding-left: 1rem;
    padding-right: 1rem;

}
.geep-inventory {
background-color: #FAF3E7;  
display: grid;
  grid-template-columns: repeat(5, 90px); /* 3 columns */
  justify-content: center;
  gap: 12px;
  border-radius:12px;
  transform: translate(20px, 2.5px) scale(1.02);
    transform-origin: center;
}

.geep-inventory .inventory-image {
    width: 60px; /* adjust to fit */
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}

.profile-full-bio {
    background-color: #FAF3E7;
    display: grid;
    gap: 2vh;
    border-radius: 12px;

    /* visual alignment */
    transform: translate(24px, 2.5px) scale(1.02);
    transform-origin: center;

    min-height: 200px;

    width: calc(100% - 35px); /* PREVENT RIGHT OVERFLOW */
    max-width: calc(100% - 24px);

    box-sizing: border-box;
    padding: 20px;
}





.profile-info {
    flex: 1;               /* takes available space */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
     min-width: 0; /* CRITICAL for flexbox text wrapping */
}

.geep-row {
    display: flex;
    gap: 2vh;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;          /* KEY: allows wrapping */
    align-items: flex-start;  /* prevents stretch weirdness */
}


/* Main geep image */
.profile-geep {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 300px;           /* adjust main image width */
}

/* 3 small inventory boxes next to main geep */
.geep-inventory-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;

    transform: scale(1.03);
    transform-origin: center;
}

/* Small inventory box */
.inventory-image {
    width: 90px;
    height: 90px;
    background-color: #FAF3E7;
    border-radius: 12px;
    margin: 5px;
}

.big-inventory-image {
    max-height: 90px;
    max-width:90px;
    background-color: #FAF3E7;
    border-radius: 12px;
    margin: 1px;
}

/* Make main geep image responsive */
.geeps-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
        background-color: #FAF3E7;

}



.container {
    background-color: #FAF3E7;
    margin: 0vh 0px 30px 250px; /* top right bottom left */
    padding: 20px 30px 20px 30px; /* top right bottom left */
    border-radius: 12px 0px 0px 12px; /* rounded corners */
    text-align: left;
    min-height: 105vh;
}

.glass-container {
    margin: 0vh 0px 30px 250px; /* top right bottom left */
    padding: 20px 30px 20px 30px; /* top right bottom left */
    border-radius: 12px 0px 0px 12px; /* rounded corners */
    text-align: left;
    min-height: 105vh;
}

.home-text {

    line-height: 2.0;
    margin: 0 50px 0 50px;

}

.forum {
    background-color: rgb(249, 234, 213);
    margin: 10px 100px 10px 250px; /* top right bottom left */
    padding: 5px 30px 5px 30px; /* top right bottom left */
    border-radius: 12px 12px 12px 12px; /* rounded corners */
    text-align: left;
}

.forum-link {
    text-decoration: none;  /* remove underline */
    color: inherit;         /* keep text color */
}

.forum-link:hover .pet-card {
    transform: scale(1.05); /* hover effect */
    cursor: pointer;         /* cursor changes to pointer */
}

.forum-title {
    color: rgb(68, 121, 46);
    font-size:30px;
    font-weight:bold;

}



.forum-post {
    max-width: auto;
    margin: 0vh 0px 30px 250px; /* top right bottom left */
}

.post-bubble {
    position: relative;
    
    padding: 16px;
    border-radius: 16px;
    box-sizing: border-box;
    text-align: left;
    display: flex;
    gap: 10px;
    padding: 10px;
    
}

.bubble-with-avatar {
    padding-right: 88px; /* reserve space for avatar */
}

.bubble-avatar {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 70px;
    height: 70px;
}

.bubble-avatar img {
    position: absolute;
    width: 56px;
    height: auto;
}

.post-text {
    background: #FAF3E7;
    border: 2px solid #000;
    border-radius: 10px;
    padding: 10px 12px;
    width:100%;
        max-width: 1000px; /* prevents it from getting ridiculously wide on big screens */

    box-sizing: border-box;
    word-break: break-word;        /* break really long words */
    overflow-wrap: anywhere;       /* newer, better than just break-word */
    overflow: hidden;          
}


/* Trade avatars - layered and larger than forum avatars */
.trade-avatar {
    position: relative;
    width: 300px;      /* set desired width */
    height: 300px;     /* set desired height */
}

.trade-avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* keep aspect ratio */
}

.trade-box { display:flex; gap:30px; margin-top:20px; }

.trade-side { width:50%; border:2px solid #444; padding:10px; border-radius:10px; }

.asset { padding:4px; }

.asset img { width: 40px; height: 40px; display: block; margin: 0 auto; }


/* =========================
   PET SHIT
   ========================= */

.pet-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding:20px;
    max-width:auto;
    box-sizing: border-box;

}

.pet-header {
    display: flex;
    flex-wrap: wrap;
    border-radius: 12px;
    justify-content: space-around;
    gap: 10px;
    padding:10px;
    max-width:auto;
    margin: -5px ;
    background-color: rgb(252, 243, 235);
    border: 5px solid rgb(68, 121, 46);
}
.pet-header img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;      /* fill container width */
    height: 100%;     /* fill container height */
    object-fit: contain; /* preserve aspect ratio */
}



.sidebar-avatar-container {
    position: relative;
    width: 150px;      /* desired width */
    height: 150px;     /* desired height */
    left: -10px; /* move left */
    background-color: rgb(252, 243, 235);
    border: 5px solid rgb(68, 121, 46);
    border-radius: 12px;
}

.sidebar-avatar-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;        /* scale to container */
    height: 100%;       /* scale to container */
    object-fit: contain; /* preserve aspect ratio */
}
.geep-card {
    box-sizing: border-box;
    background-color: rgb(252, 243, 235);
    padding: 5px;
    margin-bottom: 20px;
    border-radius: 12px;
     width: calc((100% - (4 * 20px)) / 5);
 /* 5 per row with 20px gap */
    text-align: center;
    text-decoration: none;

}

.geep-date {
text-align: center;

}

.pet-card {
    box-sizing: border-box;
    background-color: rgb(252, 243, 235);
    border: 5px solid rgb(68, 121, 46);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 12px;
     width: calc((100% - (4 * 20px)) / 5);
 /* 5 per row with 20px gap */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pet-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.pet-card img.overlay {
    pointer-events: none;
}

.desc-container {
    width: auto;
    margin: 30vh 0px 30px 250px; /* top right bottom left */
    padding: 20px 30px 20px 30px; /* top right bottom left */
    border-radius: 12px 0px 0px 12px; /* rounded corners */
    text-align: left;
    min-height: 105vh;
}

.pet-card-link {
    text-decoration: none;  /* remove underline */
    color: inherit;         /* keep text color */
}

.pet-card-link:hover .pet-card {
    transform: scale(1.05); /* hover effect */
    cursor: pointer;         /* cursor changes to pointer */
}


/* Make header flush on container */
header, nav, header h1, header h2, header h3 {
    margin: 0;
    padding: 0;
}

/* AVATAR */

.avatar {
    position: relative; /* Important */
    width: 350px;       /* match your base avatar size */
    height: 350px;      /* match your base avatar size */
}

.avatar img.base {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* base is at bottom */
}

.avatar img.overlay {
    position: absolute;
    top: 0;
    left: 0;
    
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    
}

.g-profile-info {
    flex: 1;
    margin-right: 30px;
}

.profile-avatar {
    position: relative;   /* NOT absolute */
    width: 200px;
    flex-shrink: 0;
}


.profile-text {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
    overflow-x: hidden;
}

.g-profile-text {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
    overflow-x: hidden;
    background-color: #FAF3E7;
    border-radius:12px;
    padding: 2px 4px;           /* make background visible */

    
}
.profile-text * {
    background-clip: padding-box; /* Makes background cover padding */
     max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap; /* respects line breaks but wraps */
    
}


/* Optional: make highlighted text more visible */
.profile-text span,
.profile-text strong {
    display: inline-block;      /* ensures padding works */
    padding: 2px 4px;           /* make background visible */
    border-radius: 3px;
}

.profile-text .highlight {
    background-color: #2563eb;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-block;
}



.profile-avatar img.base {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* base is at bottom */
    
}

.profile-avatar img.overlay {
    position: absolute;
    top: 0;
    left: 0;
    
}

.dressup {
        body { font-family: Arial, sans-serif; padding: 20px; }
        .container { display: flex; gap: 40px; }
        .avatar { position: relative; width: 300px; height: 300px; border: 1px solid #ccc; }
        .avatar img { position: absolute; top: 0; left: 0; width: 300px; }
        .inventory { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 15px; max-width: 500px; }
        .item { border: 1px solid #ccc; padding: 8px; text-align: center; }
        .item img { max-width: 100px; height: auto; }
        button { margin-top: 5px; padding: 5px 8px; }



        .unequip-buttons { margin-top: 10px; }
        .unequip-buttons form { display: inline-block; margin-right: 5px; }

}

.filter-menu {
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.filter-btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px 5px;
    background-color: #8b4513; /* Brown to match your theme */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.filter-btn:hover {
    background-color: #a0522d;
}

.btn-center {
     display: flex;
    justify-content: center;
    width: 100%;
}

.trade-btn {
    text-align: center; /* centers inline-block children */
    display: inline-block;
    padding: 8px 15px;
    margin: 10px 10px;
    background-color: #A7BD5E; /* sidebar green */
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.3s;
}

.trade-btn:hover {
    background-color: #a0522d;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3 {
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.goat-text {
    font-size: 30px;
    color: rgb(68, 121, 46);
    font-weight: bold;
}

/* =========================
   IMAGES
   ========================= */
img {
    max-width: 100%;
    height: auto;
}

/* =========================
   FORMS (login/signup)
   ========================= */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

button,
input[type="submit"] {
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    background-color: rgb(176, 230, 173);
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
    cursor: pointer;
}

.home-button {
    position: relative;           /* anchor for text */
    display: inline-block;
    width: 125px;
    height: 50px;
    background-image: url("../images/hbutton.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    text-decoration: none;
    cursor: pointer;
}

.btn-text {
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    color: rgb(255, 255, 255);
    font-weight: bold;
    pointer-events: none;  /* click passes through */
}


.home-button:hover .btn-text {
    text-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.long {
    position: relative;
    display: inline-flex;           /* use flex to center content */
    align-items: center;            /* vertical centering */
    justify-content: center;        /* horizontal centering */
    height: 50px;
    width: 250px;
    background-image: url("../images/long.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    padding: 0 20px;              
    color: white;
    text-decoration: none;
    font-weight: bold;
}


.long:hover .btn-text{
        text-shadow: 0 0 4px rgba(0,0,0,0.4);
}

.btn-avatar {
    cursor: pointer;

}


.clothes-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px;
}

.clothes-card {
    background-color: rgb(252, 243, 235);
    border: 5px solid rgb(68, 121, 46);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.clothes-card img {
    width: 100%;
    height: auto;
}

.gbackground {
    position: relative;           /* Anchors for absolute positioned elements, if any */
    margin: 0;                   /* Resets margin to ensure full coverage */
    padding: 0;                  /* Optional: reset padding */
    top: -65px;
    background-image: url("../images/afloor.png");
    background-size: cover;      /* Ensures the image covers the entire element */
    background-position: center;  /* Centers the background image */
    background-repeat: repeat; /* Prevents the image from repeating */
    min-height: 130vh;           /* Takes up more than the full screen height */
}

@media (max-width: 768px) {
    .clothes-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .clothes-card {
        width: 100%;
    }
}



@media (max-width: 768px) {
    .pet-card {
        width: calc(50% - 20px); /* 2 per row on tablets */
    }
}

@media (max-width: 480px) {
    .pet-card {
        width: 100%; /* 1 per row on phones */
    }
}
  
        .popup-content {
        border: 5px solid rgb(68, 121, 46);
        border-radius: 12px;
        padding: 10px;
        display: inline-block;
        

        }
      
    .daily-popup {              
    display: inline-flex;           /* use flex to center content */
    align-items: center;            /* vertical centering */
    justify-content: center;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
}
 */
.daily-popup .popup-content {
    width: 90%;
    max-width: 400px;
    text-align: center;
    border: 2px solid #18f53d;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s;
}

        .daily-popup button {
            background: #f5c518;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-size: 16px;
            cursor: pointer;
            margin-top: 15px;
            
        }
        daily-popup button:hover {
            background: #e0b800;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .claim-daily {
        margin: 10px auto 0 auto; /* top margin and auto horizontal */
        display: block; /* make it block so margin auto works */
        padding: 8px 16px;
        font-size: 16px;
        cursor: pointer;
        border-radius: 8px;
        border: none;
        background-color: #f5c518;
        color: #000;
        font-weight: bold;
        }

        

        /* 

        ARCADE SHIT

        */



        .dice-button {
    position: relative;           /* anchor for text */
    display: inline-block;
    width: 30vh;
    height: 30vh;
    background-image: url("../images/dice.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    text-decoration: none;
    cursor: pointer;
}
.type-button {
    position: relative;           /* anchor for text */
    display: inline-block;
    width: 30vh;
    height: 30vh;
    background-image: url("../images/type.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    text-decoration: none;
    cursor: pointer;
}


#header-seeds,
#header-money {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    line-height: 1;
}

#header-seeds img,
#header-money img {
    height: 16px;   /* MATCH TEXT */
    width: auto;
    margin-left: 4px;
}

.filter-menu,
.filter-btn,
.pet-container {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.filter-btn {
    cursor: pointer;
}

.clothes-button {
    position: relative;           /* anchor for text */
    display: inline-block;
    width: 300px;
    height: 300px;
    background-image: url("../images/clothingshop.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    text-decoration: none;
    cursor: pointer;
}


.thread-name {
    text-align:center;
    
}

.blurred {
    filter: blur(5px);
    cursor: default;
    transition: filter 0.3s;
}
.blurred:hover {
    filter: none; /* optional: reveal on hover */
}

