        html{
            font-family: Ms Gothic;
background: #ffffff;
background: radial-gradient(circle, rgba(255, 255, 255, 1) 25%, rgba(245, 211, 110, 1) 87%, rgba(232, 156, 133, 1) 93%, rgba(167, 63, 63, 1) 100%);
}
body{
            padding-left: 10%;
            padding-right: 10%;
            padding-top: 1%;
}

.header {
    background-color: #A73F3F;
    color: #F5D36E;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 30px;
    border-radius: 20px;
    box-shadow: inset 0 6px 2px rgba(0, 0, 0, 0.2);
    margin-right: 50%;
    margin-left: 5%;
    position: relative;
}
.body-wrap{
    display:grid;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
}

.sidebar {
    line-height: 01.5;
    color: white;
    padding: 10px;
    text-align: center;
    background:#748A2D;
    border-radius: 60px;
    box-shadow: inset 0 6px 2px #717A22;
    position: sticky;
    top: 20px;
    width: 80%;
    margin-top: 10%;
    margin-left: -15%;
}
.main-content {
    padding-top: 5%;
    padding-left: 20%;
    padding-right: 20%;
    overflow-y: auto;
    background: #E89C85;
    color: #A73F3F;
    border-radius: 100px;
    box-shadow: inset 0 6px 2px #E3816B;
    margin-left: -50%;
    margin-right: -15%;
    margin-top: -5%;
}
.main-content::-webkit-scrollbar{
    width: 16px;
}
.main-content::-webkit-scrollbar-track{
    background:transparent;
}
.main-content::-webkit-scrollbar-thumb {
    background-color: green;
    border: 4px solid transparent;
    background-clip: padding-box;
    border-radius: 10px;
}
.gacha-container {
    margin-bottom: auto;
    margin-left: 0px;
    position: relative;
    display: block;
}

#pullBtn {
    cursor: pointer;
    padding: 10px 15px;
    background-color: #E89C85;
    font-family: inherit;
    border: solid #A73F3F;
    border-radius: 10px;
}
#randImage img {
    border-radius: 20px;
    max-width: 100%;
    height: 250px;
}

.gacha-display {
    position: absolute;
    bottom: -600%;
    left: 50%;
    transform: translateX(-50%) translateZ(100px);
    transform: translateX(-50%);
    padding: 10px;
    z-index: 9999; 
    transform-style: preserve-3d;
}

@keyframes shake {
        0% { transform: translateX(-50%) translate(0, 0); }
        20% { transform: translateX(-50%) translate(-5px, 0); }
        40% { transform: translateX(-50%) translate(5px, 0); }
        60% { transform: translateX(-50%) translate(-5px, 0); }
        80% { transform: translateX(-50%) translate(5px, 0); }
        100% { transform: translateX(-50%) translate(0, 0); }
    }
    .shake {
        animation: shake 0.4s ease-in-out;
    }

h2 {
    text-align: center;
}

.gallery-filers {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap; 
}

.filter-btn {
    background: none;
    border: none;
    padding-top: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    font-size: 14px;
}

.filter-btn img {
    width: 65px;  
    height: 65px;
    object-fit: cover;
    transition: all 0.2s ease-in-out;
    opacity: 0.5;
}

.filter-btn:hover img {
    opacity: 0.9;
    transform: scale(1.05);
}

.filter-btn.active img {
    opacity: 1; 
    border-color: #333;
    transform: scale(1.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    align-items: start;
}

.gallery-item {
    overflow: hidden;
    transition: transform 0.22s ease-out;
    cursor: zoom-in;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.gallery-item.hide {
    display: none !important;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none; 
    align-items: center;
    justify-content: center;
}

.lightbox-wrapper {
    max-width: 85%;
    max-height: 75vh;
    z-index: 1002;
}

.lightbox-wrapper img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.bottom-nav {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between; 
    padding: 0 40px; 
    box-sizing: border-box;
    pointer-events: none; 
    z-index: 1003;
}

.nav-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 36px;
    font-weight: 300;
    cursor: pointer;
    user-select: none;
    pointer-events: auto;
    transition: background 0.2s, transform 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}


#lightbox-caption {
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    margin-top: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    max-width: 100%;
    word-wrap: break-word;
}
@media (max-width: 700px) {
    .header{
        margin: 0;
    }
  .body-wrap {
    grid-template-columns: 1fr;
  }
    .sidebar{
        margin-top: 5%;
        margin-bottom: 5%;
    }
    .main-content{
        padding: 5%;
        margin: 0;
        width: 100%;
    }
}