@font-face {
    font-family: 'MrRobot';
    src: url('../fonts/MrRobot.woff2') format('woff2'),
         url('../fonts/MrRobot.woff') format('woff');
}

@font-face {
    font-family: 'daft Font';
    src: url('../fonts/daft Font.ttf') format('truetype');
}

@font-face {
    font-family: 'MainframeOpto';
    src: url('../fonts/mainframe-opto.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    background: #34495e;
}

h1 {
    font-weight: 100;
    font-family: 'Roboto Mono', monospace;
    font-size: 1em;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    height: calc(100vh - 50px);
    margin-top: 50px;
}

.chat-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    height: 90%;
    max-height: 900px;
    background-color: cornflowerblue;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px;
}


.chat-header {
    background-image: url('img/ufo_banner.png');
    background-size: cover;
    background-position: center;
    height: 150px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00FF00;
    padding-bottom: 5px;
    box-sizing: border-box;
}

.chat-header h1 {
    font-family: 'daft Font', sans-serif;
}

.chat-header a {
    text-decoration: none;
    color: inherit;
}

.mid-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    grid-template-rows: 1fr 1fr; /* Two rows */
    gap: 10px; /* Adjust gap between sections as needed */
    font-family: 'MainframeOpto', sans-serif;
    color: #333;
}

.chat-users, .media-section, .AI-section, .podcast-section {
    border: 1px solid #ccc; /* Border for visual separation */
    padding: 10px; /* Adjust padding as needed */
    box-sizing: border-box;
    background-color: #333; /* Dark background color */
    border-radius: 10px; /* Rounded corners */
    color: #fff; /* Adjust text color for readability on dark background */
}

/* Specific adjustment for spacing in chat-users */
.chat-users .chat-header {
    margin-bottom: 2px; /* Add space between chat-header and chat-messages */
}

.chat-users {
    grid-column: 1 / 2; /* First column */
    grid-row: 1 / 2; /* First row */
}

.media-section {
    grid-column: 2 / 3; /* Second column */
    grid-row: 1 / 2; /* First row */
}

.AI-section {
    grid-column: 1 / 2; /* First column */
    grid-row: 2 / 3; /* Second row */
}

.podcast-section {
    grid-column: 2 / 3; /* Second column */
    grid-row: 2 / 3; /* Second row */
}

.chat-users {
    
    border-bottom: 1px solid #ccc;
    font-family: 'MainframeOpto', monospace;
    text-transform: none !important; /* Ensure text-transform is not applied to chat-users */
}

.chat-time-user {
    font-family: 'MrRobot', monospace;
}

.ai-item {
    display: inline-block;
    margin-right: 10px;
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}
/* Title font color for media, AI, and Podcast sections */
.media-title,
.AI-title,
.podcast-title {
    color: #fffffff1; /* Adjusted title font color */
}


.chat-messages {
    background-image: url('img/Grid_void.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: 'MainframeOpto', sans-serif;
    color: #00FF00;
    font-size: 16px;
    line-height: 1.5;
    height: 400px;
    overflow-y: auto;
    margin-bottom: 5px;
    padding: 10px;
    border: 1px solid #00FF00;
    border-radius: 10px;
   
}

.chat-message {
    padding: 10px 15px;
    border-radius: 20px 20px 0px 20px;
    max-width: 80%;
    word-wrap: break-word;
    margin-bottom: 10px;
    font-family: 'MainframeOpto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    display: inline-block;
    clear: both;
    border-radius: 10px;
}

.chat-message.user1 {
    background-color: #09c7ec10;
    color: white;
    float: right;
}

.chat-message.user2 {
    background-color: #000801;
    color: #00FF00;
    float: left;
}

.chat-image {
    max-width: 100%;
    cursor: pointer;
}

.chat-input {
    width: 100%;
    max-width: 860px;
    height: 60px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid white;
    background-color: #000;
    color: whitesmoke;
    display: block;
    margin: 10px auto;
    resize: none;
}

.send-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.send-button:hover {
    background-color: #45a049;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.button-container button {
    flex: 1;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
}



.send-button {
    background-color: #007BFF;
}

.clear-chat-button {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
}

.logout-button {
    background-color: #DC3545;
}

.clear-chat-button:hover {
    background-color: #f8f9fa;
    color: black;
}

.logout-button:hover {
    background-color: #c82333;
}

#file-upload-form {
    margin-top: 10px;
}

#file-input {
    color: black;
    font-size: 16px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

#upload-button {
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#upload-button:hover {
    background-color: #0056b3;
}


.image-container {
    text-align: center;
    border-radius: 24px;
    border: 2px solid #2ecc71;
}

.image-container img {
    display: inline-block;
}

button[onclick*="skychat.php"] {
    border: 0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #2ecc71;
    padding: 14px 40px;
    outline: none;
    color: white;
    border-radius: 24px;
    transition: 0.25s;
    cursor: pointer;
}

/* .chat-users {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
} */

.chat-users h2 {
    color: #fffffff1;
    margin-bottom: 10px;
}

#online-users {
    list-style-type: none;
    padding: 0;
}

#online-users li {
    display: inline-block;
    margin-right: 10px;
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

.current-user {
    font-weight: italic;
    color: rgb(137, 179, 76);
    background-color: #333;
}

.frame {
    width: 450px;
    padding: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #191919;
    text-align: center;
    font-family: BrunoAceSc-Regular;
    border-radius: 24px;
    border: 12px solid #3498db; /* Blue border */
}


.frame h1,h2,p{

    color: blue;

    font-size: 15px;

    text-transform: none;

    font-weight: normal;    

}


/* Common styles for text and password inputs for Login and Register forms */
.frame input[type="text"],
.frame input[type="password"] {
    border: 0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    border: 2px solid #3498db;
    padding: 14px 10px;
    width: 200px;
    outline: none;
    color: chartreuse;
    border-radius: 24px;
    transition: 1s;
}

/* Focus styles for text and password inputs */
.frame input[type="text"]:focus,
.frame input[type="password"]:focus {
    width: 280px;
    border-color: #2ecc71;
}

/* Styles for the submit button */
.frame input[type="submit"] {
    border: 0;
    background: none;
    display: block;
    margin: 20px auto;
    text-align: center;
    padding: 14px 40px;
    outline: none;
    color: white;
    background-color: #3498db; /* Added background color */
    border-radius: 24px;
    transition: 0.25s;
    cursor: pointer;
}

/* Hover styles for the submit button */
.frame input[type="submit"]:hover {
    background: cornflowerblue;
}


.media-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.media-title {
    margin-bottom: 10px;
}

.void-link {
    text-decoration: none;
    color: #333;
    margin-bottom: 10px;
}

.social-buttons-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px; /* Reduced from 10px */
}

.social-button {
    display: inline-block;
    font-size: 0.65rem; /* Reduced from 0.875rem */
    font-weight: 400;
    padding: 0.4rem 1rem; /* Reduced from 0.625rem 1.25rem */
    text-align: center;
    border-radius: 0.4rem; /* Slightly reduced from 0.5rem */
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 8px 12px -3px rgba(0, 0, 0, 0.1), 0 3px 4px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.social-button:hover {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.social-button.facebook {
    background-image: linear-gradient(to right, #3b82f6, #2563eb, #1d4ed8);
}

.social-button.youtube {
    background-image: linear-gradient(to right, #ef4444, #dc2626, #b91c1c);
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    .social-button {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    }
}