/* General Styling */
body {
    font-family: Arial, sans-serif;
    background: black url('hinata.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    overflow: auto; /* Allow scrolling */
    padding: 10px;
}

/* Live Background Video (Initially Hidden) */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    display: none; /* Initially hidden */
}

/* Welcome Screen */
#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hinata.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#welcome-screen h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

#welcome-screen button {
    padding: 12px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    background: purple;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

#welcome-screen button:hover {
    background: darkorchid;
}

/* Hide Main Content Initially */
#main-content {
    display: none;
}

/* Profile Card */
.profile-card {
    background: rgba(20, 20, 20, 0.9);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.profile-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid white;
    margin-bottom: 10px;
}

/* Discord Status */
#discord-status {
    font-size: 16px;
    margin-top: 10px;
    padding: 8px;
    border-radius: 5px;
    background: rgba(50, 50, 50, 0.8);
    display: inline-block;
    width: auto;
}

#spotify-status {
    font-size: 14px;
    margin-top: 5px;
    padding: 8px;
    border-radius: 5px;
    background: rgba(60, 60, 60, 0.8);
    display: inline-block;
    width: auto;
}

/* Languages */
.languages {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.languages span {
    background: purple;
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
}

/* Chatbox */
.chat-container {
    background: rgba(30, 30, 30, 0.9);
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Chat Messages */
#chat-messages {
    height: 300px; /* Increased height for better scroll */
    width: 100%;
    overflow-y: auto; /* Enable scrolling */
    text-align: left;
    padding: 10px;
    border-radius: 5px;
    background: #1a1a1a;
}

/* Chat Messages Styling */
.message {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.user-message {
    justify-content: flex-end;
    text-align: right;
}

.bot-message {
    justify-content: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.message-text {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
}

/* Input & Button */
.input-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: purple;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: darkorchid;
}

/* Music Button */
#musicToggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background: black;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

/* Instagram Button Container */
.instagram-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

/* Instagram Button */
.instagram-button {
    background: #E4405F;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.instagram-button img {
    width: 30px;
    height: 30px;
}

/* Hover Effect */
.instagram-button:hover {
    background: #c13584;
}

/* Mobile Optimization */
@media (max-width: 600px) {
    body {
        padding: 10px;
        height: auto;
    }

    .profile-card, .chat-container {
        width: 90%;
        max-width: none;
    }

    input {
        width: 100%;
    }

    #chat-messages {
        height: 200px; /* Adjusted for mobile */
    }

    button {
        font-size: 16px;
        padding: 12px;
    }
}