* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: #fc8bef;
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
}
.page {
    padding: 40px 20px 80px 20px;
    min-height: 100vh;
    width: 100%;
    position: relative;
}
.hidden {
    display: none !important;
}
.active {
    display: block;
}
#home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    height: 100vh;
}
.main-title {
    font-size: 3.5rem;
    text-align: center;
    color: #2c3e50;
}
.cat {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.cat img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-nav {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-nav button {
    background-color: #4a90e2;
    color: white;
    padding: 16px 28px;
    font-size: 1.1rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.sidebar-nav button:hover {
    transform: scale(1.05);
    background-color: #357abd;
}
.facts-list {
    max-width: 700px;
    margin: 0 auto;
    list-style: square;
    line-height: 1.8;
    font-size: 1.2rem;
    padding-left: 20px;
}
.facts-list li {
    margin-bottom: 15px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.cat-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.cat-avatar-container .cat-image {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid #4a90e2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.chat-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 400px;
}
.chat-history {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chat-input-box {
    display: flex;
    padding: 10px;
    gap: 10px;
    border-top: 1px solid #eee;
}
.chat-input-box button {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}
.message {
    padding: 10px 16px;
    border-radius: 18px;
    max-width: 75%;
    word-wrap: break-word;
}
.user-message {
    align-self: flex-end;
    background-color: #4a90e2;
    color: white;
}
.cat-message {
    align-self: flex-start;
    background-color: #e9ecef;
    color: #333;
}
.chat-input-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    font-size: 1rem;
}
.cat-type-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.cat-type-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.cat-name {
    flex: 1;
    padding-right: 20px;
}
.cat-name h3 {
    font-size: 1.6rem;
    color: #34495e;
    margin-bottom: 8px;
}
.cat-image-wrapper img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.bottom-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
}
.back-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background-color 0.2s;
}
.back-btn:hover {
    background-color: #c0392b;
}