/* css/landing_styles.css */

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent scrolling on the entire page */
html, body {
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

/* Fonts */
@font-face {
    font-family: 'Harlow Solid';
    src: url('../media/harlow-solid.ttf') format('truetype');
}

body {
    font-family: Roboto, Arial, sans-serif;
    background: #f0f0f0; /* Default light mode background */
    color: #000; /* Default light mode text */
}

/* Dark Mode */
body.dark-mode {
    background: #1a1a1a; /* Dark background */
    color: #fff; /* White text */
}

/* Main Content Wrapper */
.main-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 90vh; /* 100vh - (5vh header + 5vh footer) */
    position: relative;
    top: 5vh; /* Start below the header */
    bottom: 5vh; /* End above the footer */
}

/* Frontpage Sections */
.frontpage_top {
    flex: 0 0 20%; /* 20% of 90vh = 18vh */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('/media/canvasGreyBrown.PNG');
    overflow: hidden; /* Prevent scrolling */
}

body.dark-mode .frontpage_top {
    background: #1a1a1a; /* Dark mode */
}

.frontpage_top h1 {
    font-family: 'Harlow Solid', serif;
    font-size: 4vmin !important; /* Scale font size relative to viewport */
    text-align: center;
    margin: 0;
    padding: 0 10px;
    max-height: 30%; /* Limit h1 height to fit within section */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frontpage_top_container {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%; /* Leave space for h1 */
    align-items: center;
    justify-content: space-between;
    padding: 5px; /* Reduced padding to fit within section */
}

.frontpageTopLogoLeft {
    width: 20%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.userGameProfileBannerContainer {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.userGameProfileBannerButtonContainer {
    width: 10%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.frontpageTopLogoRight {
    width: 20%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-gif {
    max-width: 100%;
    max-height: 100%; /* Ensure GIFs scale to fit */
    object-fit: contain;
}

/* Ensure the banner and buttons scale to fit */
.userGameProfileBanner {
    border: 2px solid;
    padding: 1vmin; /* Scale padding */
    border-radius: 10px;
    background-color: #f9f9f9;
    width: 100%;
    height: 100%;
    display: flex;
    /*flex-direction: column;*/
    overflow: hidden;
}

.profileBannerUser,
.profileBannerShowcase,
.profileBannerStatistics {
    font-size: 1.5vmin; /* Scale font size */
    overflow: hidden;
}

.profileBannerUser img {
    max-width: 60px;
    max-height: 60px;
}

.profileBannerShowcase .badges-section img {
    max-width: 40px;
    max-height: 40px;
}

.banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.banner-buttons button {
    padding: 0.5vmin 1vmin; /* Scale padding */
    font-size: 1.2vmin; /* Scale font size */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.banner-buttons button:hover {
    background-color: #0056b3;
}

.frontpage_middle {
    flex: 0 0 55%; /* 45% of 90vh = 40.5vh */
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 10px;
    box-sizing: border-box;
    border: 1px solid #000; /* Light mode border */
    border-radius: 5px;
    background-image: url(/media/canvasGreyBrown.PNG);
    overflow: hidden; /* Prevent scrolling */
}

body.dark-mode .frontpage_middle {
    background: #1a1a1a; /* Dark mode */
    border-color: #00cc00; /* Accent border in dark mode */
}

.frontpage_bottom {
    flex: 0 0 25%; /* 25% of 90vh = 22.5vh */
    width: 100%;
    padding: 5px; /* Reduced padding */
    background-image: url('/media/canvasGreyBrown.PNG');
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent scrolling */
}

body.dark-mode .frontpage_bottom {
    background: #1a1a1a; /* Dark mode */
}

/* Ribbon and Content Styles */
.scrollable-ribbons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    height: 100%;
}

.ribbon {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ribbon-label {
    font-family: 'Harlow Solid', serif;
    font-weight: bold;
    margin-bottom: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 3vmin; /* Scale font size */
    color: #000; /* Light mode */
    overflow: hidden;
}

body.dark-mode .ribbon-label {
    color: #00cc00; /* Accent color in dark mode */
}

/* New Ribbon Container */
.ribbon-container {
    background: #d3d3d3; /* Light gray background in light mode */
    border: 1px solid #ccc; /* Light mode border */
    border-radius: 10px; /* Rounded corners */
    flex: 1; /* Take up remaining space in the ribbon */
    overflow: hidden; /* Ensure content doesn't overflow */
    position: relative; /* For positioning ribbon-nav */
    display: flex;
}

body.dark-mode .ribbon-container {
    background: #2a2a2a; /* Slightly darker gray for dark mode */
    border-color: #00cc00; /* Accent border in dark mode */
}

.ribbon-nav {
    position: unset;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Ensure it fills the container */
    overflow: hidden;
    font: icon;
}

.ribbon-content {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /*white-space: nowrap;*/
    user-select: none;
    cursor: grab;
    height: 100%;
    align-items: center;
    gap: 25px; /* Reduced gap */
    padding: 15px; /* Reduced padding */
}

.ribbon-content::-webkit-scrollbar {
    display: none;
}

.ribbon-content:active {
    cursor: grabbing;
}

.game-item {
    flex: 0 0 auto;
    margin-right: 5px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 60px; /* Reduced width */
    text-align: center;
}

.game-item img {
    width: 60px; /* Reduced size */
    height: 60px;
    object-fit: cover;
    border: 1px solid #ccc; /* Light mode */
}

body.dark-mode .game-item img {
    border-color: #00cc00; /* Accent border in dark mode */
}

.ribbon-content .game-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1vmin; /* Scale font size */
    line-height: 1.2;
    margin-top: 3px;
    text-align: center;
    color: #000; /* Light mode */
    max-width: 100%;
    height: 2em;
    max-height: 2em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

body.dark-mode .ribbon-content .game-name {
    color: #fff; /* White text in dark mode */
}

.ribbon-content a:hover .game-name {
    position: relative;
}

.ribbon-content a .tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333; /* Light mode tooltip */
    color: #fff;
    padding: 3px 5px;
    border-radius: 3px;
    font-size: 1vmin; /* Scale font size */
    white-space: nowrap;
    z-index: 1000;
}

body.dark-mode .ribbon-content a .tooltip {
    background-color: #00cc00; /* Accent color in dark mode */
    color: #1a1a1a; /* Dark text for contrast */
}

.ribbon-content a:hover .tooltip {
    display: block;
}

/* Frontpage Middle Styles */
.user-character-activities {
    display: flex;
    width: 100%;
    height: 100%; /* Use full height of parent */
    max-height: 100%; /* Prevent overflow */
}

.quest_container, .game_container {
    width: 70%;
    height: 100%;
    box-sizing: border-box;
}

.quest_container {
    padding: 5px; /* Reduced padding */
}

.activity-button {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5vmin; /* Scale font size */
}

.activity-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

body.dark-mode .activity-button {
    background-color: #00cc00;
    color: #1a1a1a;
}

body.dark-mode .activity-button:disabled {
    background-color: #555;
    color: #aaa;
}

.game_container {
    display: flex;
    flex-direction: column;
    padding: 2px; /* Reduced padding */
}

.game_container_upper, .game_container_lower {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-modal-button {
    width: 100%;
    height: 80%;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2vmin; /* Scale font size */
}

body.dark-mode .game-modal-button {
    background-color: #00cc00;
    color: #1a1a1a;
}

.dashboard_characters {
    width: 70%;
    height: 97%;
    overflow-y: auto; /* Allow scrolling */
    box-sizing: border-box;
    background-color: #f5f5f5; /* Light mode */
    padding: 5px; /* Reduced padding */
    border: 1px solid #ccc; /* Light mode border */
    border-radius: 5px;
}

body.dark-mode .dashboard_characters {
    background-color: #2a2a2a; /* Slightly lighter dark for contrast */
    border-color: #00cc00; /* Accent border in dark mode */
}

/* Characters section (dynamic grid) */
.characters_section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px; /* Reduced gap */
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: darkgrey;
}

/* Individual character container */
.dashboard_character_container {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto; /* Allow content to fit */
}

/* User character section */
.user-character-section {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100px; /* Fixed height, will be scaled */
    gap: 3px; /* Reduced gap */
    min-height: 0;
}

.user-character-section.enlarged {
    display: flex;
}

/* User character short profile */
.user-character-short-profile {
    width: 60%;
    height: 100%;
    border: 1px solid #000; /* Light mode border */
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3px; /* Reduced padding */
    background-color: #fff; /* Light mode */
    box-sizing: border-box;
}

body.dark-mode .user-character-short-profile {
    border-color: #00cc00; /* Accent border in dark mode */
    background-color: #2a2a2a; /* Slightly lighter dark for contrast */
}

.character_item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 3px; /* Reduced gap */
}

.character_icon {
    width: 40px; /* Reduced size */
    height: 40px;
    flex-shrink: 0;
}

.character_icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.character_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px; /* Reduced gap */
    font-size: 1.5vmin; /* Scale font size */
    overflow: hidden;
}

.charactername,
.level,
.servername {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* User character activities */
.user-character-activities {
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
    height: 100%;
    width: 40%;
    background-color: #e0e0e0; /* Light mode */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px; /* Reduced padding */
    box-sizing: border-box;
    position: relative;
    overflow: hidden; /* Prevent overflow */
}

body.dark-mode .user-character-activities {
    background-color: #333; /* Darker background in dark mode */
}

.activity-buttons {
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 3px; /* Reduced gap */
    width: 100%;
    padding: 1px; /* Reduced padding */
    justify-content: space-evenly;
    align-items: center;
}

.dropdown-container {
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.activity2timeDropdown {
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 150px; /* Reduced width */
    margin-bottom: 3px;
    font-size: 1vmin; /* Scale font size */
    border: 1px solid #ccc; /* Light mode border */
    border-radius: 3px;
    padding: 1px;
    background: #fff; /* Light mode */
    color: #000; /* Light mode text */
}

body.dark-mode .activity2timeDropdown {
    border-color: #00cc00; /* Accent border in dark mode */
    background: #333; /* Darker background in dark mode */
    color: #fff; /* White text in dark mode */
}

.buttons-container {
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 3px; /* Reduced gap */
    width: 100%;
    flex-wrap: nowrap;
}

.activity-button {
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
    padding: 2px 4px; /* Reduced padding */
    font-size: 1.5vmin; /* Scale font size */
    cursor: pointer;
    flex: 1;
    text-align: center;
    border: 1px solid #ccc; /* Light mode border */
    border-radius: 3px;
    background-color: #fff; /* Light mode */
    color: #000; /* Light mode text */
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    max-width: none;
    max-height: none;
}

body.dark-mode .activity-button {
    border-color: #00cc00; /* Accent border in dark mode */
    background-color: #333; /* Darker background in dark mode */
    color: #fff; /* White text in dark mode */
}

.activity-button:hover {
    background-color: #f0f0f0; /* Light mode hover */
}

body.dark-mode .activity-button:hover {
    background-color: #00cc00; /* Accent color in dark mode */
    color: #1a1a1a; /* Dark text for contrast */
}

.activity-button:disabled {
    cursor: default;
    opacity: 0.5;
    font-size: 1vmin;
}

.activity-button .tooltip {
    font-family: Roboto, Arial, sans-serif;
    cursor: pointer;
    text-align: center;
    margin: 0;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333; /* Light mode tooltip */
    color: #fff;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 1vmin; /* Scale font size */
    white-space: nowrap;
    z-index: 100;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.dark-mode .activity-button .tooltip {
    background-color: #00cc00; /* Accent color in dark mode */
    color: #1a1a1a; /* Dark text for contrast */
}

.activity-button:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.remaining-time-container {
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    gap: 3px; /* Reduced gap */
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.remaining-time {
    font-family: Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 0.8vmin; /* Scale font size */
    color: #666; /* Light mode */
    flex: 1;
    text-align: center;
    min-height: 12px; /* Reduced height */
}

body.dark-mode .remaining-time {
    color: #ccc; /* Lighter gray in dark mode */
}

/* Game info container */
.game_info {
    margin-top: 3px;
    padding: 3px; /* Reduced padding */
    background-image: url(/media/canvasGreyBrown.PNG);
    border: 1px solid #ddd; /* Light mode border */
    border-radius: 3px;
    font-size: 1.5vmin; /* Scale font size */
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
}

body.dark-mode .game_info {
    background-color: #2a2a2a; /* Slightly lighter dark for contrast */
    border-color: #00cc00; /* Accent border in dark mode */
}

.game_info p {
    margin: 1px 0;
}

.game_info a {
    color: #007bff; /* Light mode link */
    text-decoration: none;
}

body.dark-mode .game_info a {
    color: #00cc00; /* Accent color in dark mode */
}

.game_info a:hover {
    text-decoration: underline;
}

/* Dashboard game news */
.dashboard_game_news {
    width: 30%;
    height: 97%;
    overflow-y: auto; /* Allow scrolling */
    box-sizing: border-box;
    background-color: #f5f5f5; /* Light mode */
    padding: 5px; /* Reduced padding */
    border: 1px solid #ccc; /* Light mode border */
    border-radius: 5px;
    flex-direction: column;
    background-color: darkgrey;
}

body.dark-mode .dashboard_game_news {
    background-color: #2a2a2a; /* Slightly lighter dark for contrast */
    border-color: #00cc00; /* Accent border in dark mode */
}

#dashboard_game_news_headline {
    font-family: 'Harlow Solid', serif;
    text-align: center;
    margin: 0 0 5px 0;
    font-size: 3vmin; /* Scale font size */
    flex: 0 0 auto;
}

.dashboard_news_container {
    display: flex;
    align-items: center;
    gap: 5px; /* Reduced gap */
    padding: 3px; /* Reduced padding */
    border-bottom: 1px solid #ddd; /* Light mode border */
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
    background-image: url(/media/canvasGreyBrown.PNG);
}

body.dark-mode .dashboard_news_container {
    border-bottom-color: #00cc00; /* Accent border in dark mode */
}

#news_item_image {
    width: 30px; /* Reduced size */
    height: 30px;
    margin-right: 3px;
    object-fit: cover;
}

.dashboard_news_container p {
    font-size: 1.5vmin; /* Scale font size */
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Logged out state */
.dashboard_logged_out {
    padding: 10px; /* Reduced padding */
    text-align: center;
    background-color: #7b6f66;
    border: 1px solid #ddd; /* Light mode border */
    border-radius: 5px;
    margin: 5px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2vmin; /* Scale font size */
    overflow: hidden;
}

.dashboard_lo_image {
display: contents;
}

.dashboard_lo_text {
    display: none;
}

body.dark-mode .dashboard_logged_out {
    background-color: #2a2a2a; /* Slightly lighter dark for contrast */
    border-color: #00cc00; /* Accent border in dark mode */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    background-color: #fff; /* Light mode */
    margin: 0 auto;
    padding: 10px; /* Reduced padding */
    border: 1px solid #888; /* Light mode border */
    width: 80%;
    height: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: auto; /* Allow scrolling within modal */
}

body.dark-mode .modal-content {
    background-color: #1a1a1a; /* Dark background */
    border-color: #00cc00; /* Accent border in dark mode */
}

.close-modal {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    border: none;
    background: none;
}

.close-modal img {
    width: 15px; /* Reduced size */
    height: 15px;
}

.modal-layout {
    display: flex;
    height: 80%;
    margin-top: 20px;
}

.modal-image-container {
    width: 35%;
    text-align: center;
}

.modal-image-container img {
    max-width: 100%;
    max-height: 100%;
}

.modal-content-container {
    width: 65%;
    padding-left: 10px; /* Reduced padding */
    position: relative;
}

.modal-content-container div {
    margin-bottom: 10px; /* Reduced margin */
}

.modal-content-container label {
    display: block;
    margin-bottom: 3px;
    font-size: 1.2vmin; /* Scale font size */
}

.modal-content-container select,
.modal-content-container input,
.modal-content-container textarea {
    width: 100%;
    padding: 3px; /* Reduced padding */
    margin-top: 3px;
    box-sizing: border-box;
    background: #fff; /* Light mode */
    color: #000; /* Light mode text */
    border: 1px solid #ccc; /* Light mode border */
    font-size: 1.2vmin; /* Scale font size */
}

body.dark-mode .modal-content-container select,
body.dark-mode .modal-content-container input,
body.dark-mode .modal-content-container textarea {
    background: #333; /* Darker background in dark mode */
    color: #fff; /* White text in dark mode */
    border-color: #00cc00; /* Accent border in dark mode */
}

.modal-content-container textarea {
    height: 80px; /* Reduced height */
    resize: none;
}

.modal-submit {
    position: absolute;
    bottom: 5px;
    right: 5px;
    padding: 5px 10px; /* Reduced padding */
    cursor: pointer;
    background-color: #333; /* Light mode */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.2vmin; /* Scale font size */
}

body.dark-mode .modal-submit {
    background-color: #00cc00; /* Accent color in dark mode */
    color: #1a1a1a; /* Dark text for contrast */
}

.modal-submit:hover {
    background-color: #555; /* Light mode hover */
}

body.dark-mode .modal-submit:hover {
    background-color: #009900; /* Darker accent in dark mode */
}

.modal-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #d3d3d3; /* Light mode */
    padding: 5px; /* Reduced padding */
    display: none;
    text-align: center;
    font-size: 1.2vmin; /* Scale font size */
}

body.dark-mode .modal-banner {
    background-color: #2a2a2a; /* Slightly lighter dark for contrast */
}

.delete-button {
    background-color: red;
    color: white;
    padding: 5px 10px; /* Reduced padding */
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-size: 1.2vmin; /* Scale font size */
}

.delete-button:hover {
    background-color: darkred;
}

.character_details_image_upload_container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px; /* Reduced gap */
}

.character_details_image_upload_container img {
    max-width: 100px; /* Reduced size */
    max-height: 100px;
}

.character_details_level_information_container {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px; /* Reduced gap */
}

.game_icon_small {
    width: 15px; /* Reduced size */
    height: 15px;
    vertical-align: middle;
    margin-left: 3px;
}

/* Media Queries */
@media screen and (max-width: 720px) {
.frontpage_top {
    flex: 0 0 15%;
}

.frontpage_middle {
        height: 90%;
        flex: 0 0 55%;
        padding: 2%;
        background-image: url(/media/canvasGreyBrown.PNG);
        overflow: hidden;
}

.frontpage_bottom {
    flex: 0 0 30%;
}

    /* Frontpage Top Adjustments */
    .frontpage_top h1 {
        font-size: 7vmin !important; /* Further scale down */
    }

    .frontpage_top_container {
        flex-direction: column;
        align-items: center;
        /*height: 70%;*/
    }

    .frontpageTopLogoLeft,
    .frontpageTopLogoRight {
        width: 100%;
        height: 25%; /* Split the 70% height evenly */
        margin-bottom: 0;
        display: none;
}

    .userGameProfileBannerContainer {
        width: 100%;
        height: 77%; /* Split the 70% height evenly */
        margin-bottom: 0;
        align-items: normal;
    }

    .userGameProfileBannerButtonContainer {
        width: 100%;
        height: 20%; /* Split the 70% height evenly */
        margin-bottom: 0;
    }

    .logo-gif {
        max-width: 50%;
        max-height: 100%;
    }

    /* Frontpage Middle Adjustments */
    .dashboard_game_news {
        display: none;
    }

    .dashboard_characters {
        width: 100%;
    }

    .characters_section {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-character-section {
        flex-direction: column;
        height: auto;
    }

    .user-character-short-profile,
    .user-character-activities {
        width: 100%;
        height: 50%;
    }

    .user-character-activities {
        padding: 2px; /* Further reduced padding */
        height: 50%;
    }

    .game-modal-button {
        width: 100%;
        height: 80%;
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 2vmin; /* Scale font size */
    }
    
    .activity-buttons {
        gap: 2px;
        padding: 1px;
    }

    .activity-button {
        font-size: 2vmin !important;
        padding: 1px 2px;
        min-width: 50px;
    }

    .activity2timeDropdown {
        font-size: 2vmin;
        max-width: 100%;
    }

    .remaining-time {
        font-size: 1.6vmin;
    }

    .activity-button .tooltip {
        font-size: 2vmin;
        bottom: calc(100% + 3px);
    }

    .game_info {
        font-size: 2vmin;
        height: 50%;
    }

    .character_icon img {
        width: 30px;
        height: 30px;
    }

    .character_info {
        font-size: 2vmin;
    }

    #news_item_image {
        width: 20px;
        height: 20px;
    }

    .dashboard_news_container p {
        font-size: 1.8vmin;
    }

    .dashboard_logged_out {
        padding: 10px; /* Reduced padding */
        text-align: center;
        background-color: #7b6f66;
        border: 1px solid #ddd; /* Light mode border */
        border-radius: 5px;
        margin: 5px;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 1.2vmin; /* Scale font size */
        overflow: hidden;
    }
    .dashboard_lo_image {
    display: contents;
    }
    .dashboard_lo_text {
        display: none;
    }
    /* Frontpage Bottom Adjustments */
    .scrollable-ribbons {
        flex-direction: column;
        gap: 1px;
      	height: auto
    }

    .ribbon {
        height: 45%;
        margin: 0;
    }

    .ribbon-container {
        /*height: 100%; /* Ensure it fills the ribbon height in mobile view */
        display: flex;
      height: 10vh
    }

    .game-item {
        width: 45px;
        height: 60px;
    }

    .game-item img {
        width: 40px !important;
        height: 40px !important ;
    }
  
     .ribbon-label {
    height: 10vh;
    }
    
    .ribbon-content {
        display: flex    ;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        white-space: nowrap;
        user-select: none;
        cursor: grab;
        height: 100%;
        align-items: center;
        gap: 10px !important;
        padding: 5px;
    }

    .ribbon-content .game-name {
        font-size: 2vmin;
    }

    /* Modal Adjustments */
    .modal-content {
        width: 90% !important;
        height: 60% !important;
    }
}