body {
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ffff00);
    background-size: 400% 400%;
    animation: gradientShift 5s ease infinite;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    margin: 0;
    padding: 20px;
    color: #000;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

marquee {
    background: red;
    color: yellow;
    padding: 10px;
    font-size: 24px;
    font-weight: bold;
    border: 5px solid blue;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border: 10px dotted purple;
    box-shadow: 15px 15px 0px rgba(0,0,0,0.5);
}

.main-title {
    text-align: center;
    color: red;
    font-size: 48px;
    text-shadow: 3px 3px 0px blue, 6px 6px 0px green;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

h2 {
    color: blue;
    text-decoration: underline wavy;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.nav-btn {
    background: linear-gradient(180deg, lime, green);
    color: white;
    border: 3px solid black;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Comic Sans MS', cursive;
    transition: transform 0.1s;
}

.nav-btn:hover {
    transform: scale(1.1) rotate(2deg);
    background: linear-gradient(180deg, yellow, orange);
    color: black;
}

.nav-btn:active {
    transform: scale(0.95);
}

.page {
    display: none;
    padding: 20px;
    border: 5px solid;
    border-color: red blue green orange;
    margin: 20px 0;
    background: rgba(255, 255, 255, 0.9);
}

.page.active {
    display: block;
    animation: slideIn 0.5s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item {
    background: linear-gradient(90deg, #ffccff, #ccffff);
    padding: 15px;
    margin: 15px 0;
    border-left: 10px solid purple;
    border-radius: 0 15px 15px 0;
}

.timeline-item h3 {
    color: darkviolet;
    margin-top: 0;
}

.game-section {
    text-align: center;
}

.download-box {
    background: #ffeb3b;
    border: 5px dashed red;
    padding: 20px;
    margin: 20px auto;
    max-width: 400px;
}

.downloadWin-btn {
    background: rgb(24, 107, 231);
    color: white;
    border: 5px solid black;
    padding: 20px 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Comic Sans MS', cursive;
    animation: pulse 1s infinite;
}

.downloadMac-btn {
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border: 5px solid black;
    padding: 20px 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Comic Sans MS', cursive;
    animation: pulse 1s infinite;
}

.downloadLinux-btn {
    background: rgb(160, 0, 0);
    color: white;
    border: 5px solid black;
    padding: 20px 40px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Comic Sans MS', cursive;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.download-btn:hover {
    background: darkred;
    transform: scale(1.1);
}

.warning {
    color: red;
    font-weight: bold;
    font-style: italic;
}

.blog-post {
    background: linear-gradient(135deg, #e0f7fa, #fff9c4);
    padding: 20px;
    margin: 20px 0;
    border: 3px solid #333;
    border-radius: 10px;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
}

.blog-post h3 {
    color: #d32f2f;
    margin-top: 0;
}

.date {
    color: #666;
    font-style: italic;
    font-size: 14px;
}

footer {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background: black;
    color: lime;
    border: 5px solid red;
}

footer marquee {
    background: blue;
    color: yellow;
}

img {
    display: block;
    margin: 20px auto;
    border: 5px solid rainbow;
}

#visitor-count {
    color: red;
    font-weight: bold;
    font-size: 24px;
}

#download-msg {
    margin-top: 15px;
    font-weight: bold;
    color: green;
}

/* CHATBOT STYLES */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

#chatbot-toggle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    border: 5px solid #ff1744;
    cursor: pointer;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.2s;
    animation: bobble 2s infinite;
}

@keyframes bobble {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(5deg); }
    75% { transform: translateY(-5px) rotate(-5deg); }
}

#chatbot-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

.chatbot-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

#chatbot-window {
    display: none;
    position: fixed;
    bottom: 110px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border: 8px solid;
    border-color: red blue green orange;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.5);
    border-radius: 15px;
    overflow: hidden;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-open #chatbot-window {
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    background: linear-gradient(180deg, #ff9800, #ff5722);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 5px solid #d32f2f;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 18px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}

.close-btn {
    background: red;
    color: white;
    border: 3px solid black;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

.close-btn:hover {
    background: darkred;
    transform: rotate(90deg);
}

#chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: linear-gradient(180deg, #fff9c4, #e0f7fa);
}

.bot-message, .user-message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    animation: messageSlide 0.3s;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bot-message {
    background: linear-gradient(135deg, #ffeb3b, #ffc107);
    border: 3px solid #ff9800;
    margin-right: auto;
    color: black;
    font-weight: bold;
}

.user-message {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    border: 3px solid #388e3c;
    margin-left: auto;
    color: white;
    font-weight: bold;
}

.chatbot-input-area {
    display: flex;
    padding: 10px;
    background: white;
    border-top: 5px solid purple;
}

#chatbot-input {
    flex: 1;
    padding: 10px;
    border: 3px solid black;
    font-family: 'Comic Sans MS', cursive;
    font-size: 14px;
    border-radius: 20px;
}

.send-btn {
    background: linear-gradient(180deg, lime, green);
    color: white;
    border: 3px solid black;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    border-radius: 20px;
    transition: transform 0.1s;
}

.send-btn:hover {
    transform: scale(1.1);
    background: linear-gradient(180deg, yellow, orange);
    color: black;
}

.send-btn:active {
    transform: scale(0.95);
}
