/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Mitr', sans-serif;
    background-color: #FFFFFA;
    color: #333;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
}

/* Header styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #FFFFFC;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    color: #26A69A;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 25px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-icon, .notification-icon, .menu-icon {
    cursor: pointer;
}

/* Banner section */
.banner {
    background-color: #B4E0E2;
    padding: 20px 15px;
    position: relative;
    min-height: 180px;
    overflow: hidden;
}

.banner h1 {
    color: #26A69A;
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: 500;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 30px;
    padding: 8px 15px;
    margin-bottom: 10px;
}

.search-icon-small {
    margin-right: 10px;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    font-family: 'Mitr', sans-serif;
    font-size: 14px;
}

.character-banner {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    /* background-image: url('images/CharacterBanner.png'); */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
}

/* Section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 15px 15px;
}

.section-header h2 {
    color: #26A69A;
    font-size: 18px;
    font-weight: 500;
}

.add-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #FFFFFC;
    border: 1px solid #26A69A;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Gallery section */
.gallery {
    display: flex;
    gap: 10px;
    padding: 0 15px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.gallery::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.gallery-item {
    flex: 0 0 auto;
    width: 174px;
    height: 286px;
    border-radius: 9px;
    overflow: hidden;
    border: 0.75px solid #248B8A;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Forum section */
.forum {
    margin-top: 30px;
    position: relative;
}

.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
}

.forum-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
}

.forum-post {
    display: flex;
    background-color: #B4E0E2;
    border: 0.75px solid #248B8A;
    border-radius: 14px;
    padding: 10px;
    align-items: center;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;
    background-size: cover;
    background-position: center;
}

.owl {
    background-color: #B94F2D;
    background-image: url('images/Char_1.png');
}

.fox {
    background-color: #E28743;
    background-image: url('images/Char_2.png');
}

.owl-white {
    background-color: #E6E6E6;
    background-image: url('images/Char_3.png');
}

.bear {
    background-color: #C69C6D;
    background-image: url('images/Char_1.png');
}

.post-content {
    flex: 1;
}

.post-content h3 {
    font-size: 16px;
    color: #B94F2D;
    margin-bottom: 3px;
    font-weight: 500;
}

.post-content p {
    font-size: 14px;
    color: #238C8C;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
}

.post-meta {
    display: flex;
    gap: 10px;
}

.username, .date {
    font-size: 10px;
    color: #3CB5B7;
}

.more-posts-button {
    width: 100%;
    max-width: 360px;
    height: 44px;
    margin: 20px auto;
    display: block;
    background: #FFFFFC;
    border: 0.75px solid #248B8A;
    border-radius: 14px;
    font-family: 'Mitr', sans-serif;
    color: #248B8A;
    font-size: 18px;
    cursor: pointer;
}

/* Character section */
.character-section {
    margin-top: 40px;
    padding: 0 15px;
    text-align: center;
}

.character-section h2 {
    color: #238C8C;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
}

.character-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.arrow-left, .arrow-right {
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.character {
    width: 200px;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.random-button, .store-button {
    width: 147px;
    height: 44px;
    background: #FFFFFC;
    border: 0.75px solid #248B8A;
    border-radius: 14px;
    font-family: 'Mitr', sans-serif;
    color: #248B8A;
    font-size: 18px;
    cursor: pointer;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}