/* -----------------------------
   Reset Default Browser Styles
----------------------------- */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: var(--background-color);
    color: var(--font-color);
}

/* -----------------------------
   Headings
----------------------------- */
h1 {
    margin: 5px 0;
    font-size: 2em;
    color: var(--h1-font-color);
}

h2 {
    font-size: 1.5em;
    margin: 10px 0;
    text-align: center;
    color: var(--h1-font-color);
}

/* more defaults */
label a {
    display: inline;
    color: var(--url-color);
}



/*-----------------------------
  Base(default) button style  
-------------------------------*/

.button {
    display: inline-block;
    padding: 4px 8px;
    font-size: 14px;
    border: 2px solid transparent;
    border-radius: 4px;
    background-color: var(--button-color);
    color: White;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button:hover {
   background-color: var(--button-hover-color);
   transition: all 0.3s ease;
}

.Or-register {
   text-align: center;
}

.Or-register p {
    font-size: 14px;
}

.Or-register a {
    width: 100px;
    margin: 0 auto;
    border: 1px solid #0c7;
    color: #ff0000;
    text-decoration: none;
}

.Or-register .button {
    background-color: #00cc88;
}


.Or-register a:hover {
   color: #00ff00;
   text-decoration: underline;
   transition: all 0.3s ease;
}

.return-continue {
   text-align: center;
}

.return-continue p {
    font-size: 14px;
}

.return-continue a {
    /*width: 300px;*/
    /*margin: 0 auto;*/
    border: 1px solid #ccc;
    color: #00ff00;
    text-decoration: none;
}

.return-continue a:hover {
   color: #00ff00;
   text-decoration: underline;
   transition: all 0.3s ease;
}
.return-continue button {
    display: inline-block;
    padding: 4px 8px;
    font-size: 14px;
    border: 2px solid transparent;
    border-radius: 4px;
    background-color: var(--button-color);
    color: white;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.return-continue button:hover {
    background-color: var(--button-hover-color);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Add shadow effect */
}


/* -----------------------------
   Layout
----------------------------- */
.container {
    display: flex;
    background-color: var(--background-color);
    color: var(--h1-font-color);
    justify-content: space-between;
}

/* Menu Section */

.desktop-menu {
    display: flex;  /* Show normally */
    justify-content: center;
    width: 100%;
    background-color: #333;
}

/* Hide desktop menu on small screens */
@media (max-width: 768px) {
    .desktop-menu {
       display: none;
    }
    
    .mobile-menu {
        display: block; /* Show hamburger menu */
    }
}   

/* Hamburger button */
.hamburger {
    display: none;
    font-size: 20px;
    cursor: pointer;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 2px;
    background-color: #333;
    color: white;
}

/* Mobile menu (hidden by default) */
.mobile-menu {
    display: none;
    background-color: #444;
    position: absolute;
    top: 33%;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.mobile-menu a {
    color: var(--font-color);
    text-decoration: none;
    display: block;
    padding: 10px;
}

@media screen and (min-width: 769px) {
    .desktop-menu {
        display: block;
    }
    .mobile-menu {
        display: none; /* Ensure mobile menu is hidden on wide screens */
    }
    .hamburger {
        display: none;
    }
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}

/*align all center*/

.mobile-menu {
   display: flex;
   flex-direction: column;
   align-items: center;
}

.mobile-menu a, 
.dropdown-toggle {
    display: block;  /* Make full width */
    margin: 0 auto;
    width: 120px;
    text-align: left;
    padding-bottom: 6px;
}

.mobile-dropdown {
    position: relative;
    display: block;
    /*flex-direction: column;*/
    margin: 0 auto;
    align-items: center;
    width: 130px;
}

.mobile-dropdown-menu {
    display: none; /* Hide submenus by default */
    background-color: #444;
    border: 1px solid #ccc;
    list-style: none;
    position: relative;
    left: 10px;
    width: 90%;
}

.mobile-dropdown-menu a {
    display: block;
    padding: 6px 6px;
    text-decoration: none;
    color: var(--font-color);
}

.mobile-dropdown-menu a:hover {
    background-color: #555;
}

/* Style dropdown buttons to match the menu */
.dropdown-toggle {
    display: block;
    background-color: inherit; /* Match menu background */
    color: inherit; /* Match text color */
    border: none; /* Remove border */
    margin: 0 auto;
    font-size: inherit; /* Match font size */
    cursor: pointer; /* Keep it clickable */
    width: 120px; /* Make it full width like links */
    text-align: left;
}


/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}


/* Hover effect to match menu links */
.mobile-dropdown .dropdown-toggle:hover {
    background-color: #555; /* Same hover color as other menu items */
    color: var(--font-color); /* Optional: Highlight text on hover */
    transition: all 0.3s ease;
}

/* End mobile-menu */

.horizontal-menu {
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
    width: 100%;
    flex-wrap: nowrap;
    white-space: nowrap;
    height: 40px;
}

.horizontal-menu a, .dropdown {
    display: inline-block;
    margin: 1px;
    color: var(--font-color);
    padding: 8px 8px;
}

.horizontal-menu a:hover {
    color: #FFD700;
    transition: all 0.3s ease;
}

/* Dropdown styles */

.dropdown {
    position: relative;
    display: block;
}

.desktop-dropdown {
    position: relative;
    display: block;
}

.desktop-dropdown-toggle {
    color: var(--font-color);
    padding-bottom: 6px;
    padding-top: 6px;
    padding-left: 0;
    font-size: 16px;
    border: none;
}

.desktop-dropdown-menu {
    display: none;
    position: absolute;
    background-color: #444;
    border: 1px solid #ccc;
    min-width: 120px;
    list-style: none;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.desktop-dropdown-menu a {
    margin-top: 2px;
    margin-bottom: 2px;
    color: var(--font-color);
    text-align: left;
    padding: 2px 4px;
    text-decoration: none;
    display: block;
}

.desktop-dropdown-menu a:hover {
    background-color: #555;
    transition: all 0.3s ease;
}

.desktop-dropdown:hover .desktop-dropdown-menu {
    display: block;
}


/* pull down menu */
.dropdown-toggle {
    color: var(--font-color);
    padding-bottom: 6px;
    padding-top: 6px;
    padding-left: 0;
    font-size: 16px;
    border: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #444;
    border: 1px solid #ccc;
    min-width: 120px;
    list-style: none;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dropdown-menu a {
    color: var(--font-color);
    text-align: left;
    padding: 2px 4px;
    text-decoration: none;
    display: block;
}

.dropdown-menu a:hover {
    background-color: #555;
    transition: all 0.3s ease;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

.main-content {
    width: 75%;
    height: 500px;
    margin-bottom: 0;
    text-align: center;
    background-color: var(--background-color);
    color: var(--font-color);
    border: 1px solid var(--font-color);
}

/* News Section */

@media (max-width: 768px) {
    .news {
        display: none;
    }
    .main-content {
        width: 100%;
    }
    .activity-container iframe[name="side-feed"] {
        display: none;
    }
    .activity-container {
        display: block;
}
    .activity-container iframe[name="main-feed"] {
        width: 100% !important;
	height: 100%;
    }
}

.news_article {
    background-color: var(--background-color);
    color: var(--font-color);
}

.news {
    width: 25%;
    height: 485px;
    background-color: var(--background-color);
    color: var(--font-color);
    padding: 5px;
    text-align: center;
    border: 1px solid var(--font-color);
}

.news h1 {
	background-color: var(--background-color);
	color: var(--h1-font-color);
}

/* -----------------------------
   Scrolling Avatars
----------------------------- */
.scrolling-avatars {
    display: flex;
    overflow-x: auto;
    white-space: wrap;
    gap: 5px;
    padding: 0px;
    background-color: var(--background-color);
}

.scrolling-avatars img {
    height: 100px;
    width: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: scroll-left 10s linear infinite;
}

@keyframes scroll-left {
    from {
        transform: translateX(400%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* -----------------------------
   Chat Containers
----------------------------- */
.chat-container, .chat-container2 {
    background-color: var(--chat-background-color);
    color: var(--chat-font-color);
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.chat-container {
    width: 100%;
    height: 450px;
    overflow-y: auto;
}

.chat-container2 {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* -----------------------------
   Message Display
----------------------------- */
.message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0;
    padding-left: 4px;
    padding-right: 8px;
    padding-top: 0;
    padding-bottom: 0;
    background: var(--basic-background-color);
    border: 1px solid #ddd;
    border-radius: 15px;
    text-align: left;
}

.username {
    border: 1px solid #ddd;
    border-radius: 15px;
    padding: 4px 4px;
    margin-top: 2px;
    margin-bottom: 2px;
    align: left;
    color: #ccc;
    text-decoration: none; /* Removes underline from the link */
    font-size: small;
}


.chat-avatar {
    margin: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.message-text {
    flex: 1; /* Allows the message text to take up the remaining space */
    word-wrap: break-word; /* Ensures long words wrap to the next line */
    margin: 0;
    line-height: 1;
}




/* -----------------------------
   Input Fields and Buttons
----------------------------- */

table {
    width: 100%;
}

textarea {
    display: flex;
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    margin-bottom: 0;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 10px;
    box-sizing: border-box;
}

form textarea {
    min-width: 0;
    flex: 1;
}

textarea::placeholder {
    color: #ddd;
}

form input[type="submit"] {
    flex-shrink: 0;

}

.inline-fields {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.button1 {
    width: 80px;
    padding: 5px;
    background-color: var(--button-color);
    color: white;
    border: 2px solid white;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
}

.button1:hover {
    background-color: var(--button-hover-color);
    transition: all 0.3s ease;
}


.fullscreen-toggle {
    text-align: right;
    margin-left: 8px;
    padding: 5px;
    font-size: 0.8em;  /* Smaller text */
    z-index: 1000;
}

/* Make the checkbox smaller */
.fullscreen-toggle input[type="checkbox"] {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 4px;
}

/* Optionally, style the label text */
.fullscreen-toggle label {
    cursor: pointer;
    user-select: none;
}


/* -----------------------------
   Links
----------------------------- */
a {
    display: block;
    margin: 10px 0;
    text-decoration: none;
    color: #333;
}

a:hover {
    color: #007BFF;
    transition: all 0.3s ease;
}

/* -----------------------------
   Iframe Styling
----------------------------- */
iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* -----------------------------
   Table and General Elements
----------------------------- */
th {
    text-align: left;
}

.avatar.master {
    border: 3px solid var(--master-border-color);
    color: var(--master-font-color);
}

.avatar.slave {
    border: 3px solid var(--slave-border-color);
    color: var(--slave-font-color);
}

.avatar.switch {
    border: 3px solid var(--switch-border-color);
    color: var(--switch-font-color);
}


.profile-form {
    display: flex;
    flex-direction: column;
    text-align: left;
}


form-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        max-width: 600px;
        margin: 0 auto;
	flex-wrap: wrap;
}

.form-group textarea {
    flex: 1;
    width: 60%;
    max-width: 80%;
    resize: vertical;
    box-sizing: border-box;
}

.form-group-textarea {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-group-textarea textarea {
    flex: 1;
    width: 60%;
    max-width: 80%;
    height: 60px;
    border-radius: 4px;
}

.form-group-textarea label {
    width: 120px;
    text-align: right;
    margin-right: 8px;
    flex-shrink: 0;
}

.form-group label {
	display: inline-block;
	align-items: center;
	width: 120px;  /* Adjust width as needed */
	text-align: right;
	margin-right: 8px;
}

.form-group input,
.form-group select {
	font-size: 14px;
	margin-bottom: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

img {
    margin: 10px 0; /* Add spacing around avatar */
    border-radius: 8px; /* Optional: Rounded corners for the avatar */
    border: 1px solid #ccc; /* Optional: Add a light border around the image */
}



button[type="submit"].button {
    background: var(--button-color);
    margin-top: 0;   
    transition: all 0.3s ease;
}

button[type="submit"]:hover {
	background-color: var(--button-hover-color);
	transition: all 0.3s ease;
}
/

ul {
    list-style-position: inside;
}
ul li {
    text-align: left;
}


.user-status {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 5px;
    margin-bottom: 10px;
}

.points-status span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mail-status img {
    margin-right: 5px;
}

.mail-status span {
    color: #000; /* Adjust color as needed */
    font-weight: bold;
}

.logout-container {
   color: var(--font-color);
}

.site-exit {
   color: var(--font-color);
}

/* stables format */
.stable_description div {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.stable_label {
    width: 200px;
    text-align: left;
}

.stable_info {
   flex-grow: 1;
   text-align: left;
}

.stable_option {
    display: flex;
    justify-content: space-between;
    width: 280px;
}

.stable_option label {
        width: 200px;  /* Adjust width as needed */
        text-align: left;
}

.stable_option input,
.stable_option select {
	flex-grow: 0;
	max-width: 80px;
	margin-left: auto;
	text-align: left;
	font-size: 14px;
	margin-bottom: 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
}

.activity-feed {
    margin-left: 0;
    margin-right: 2px;
    height: 850px;
    overflow-y: auto;
    background-color: var(--chat-background-color);
    border: 1px solid var(--font-color);
    margin-top: 0;
}

.activity-container {
    display: flex;
    margin: 0;
    /*width: 100%;*/
    height: 100%;
    overflow-y: auto;
}

.activity-container iframe {
    border: none; /* Removes default border */
    height: 100%;
}


.activity-container iframe[name="main-feed"] {
    width: 75%;
    height: 100%;
}

.activity-container iframe[name="side-feed"] {
    width: 25%;
    height: 100%;
}

ol {
    text-align: left;
    list-style-type: decimal; 
}
li {
    text-align: left;
}

#age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

.disabled-link {
    pointer-events: none;
    color: gray;
    text-decoration: none;
}

