/* styles.css */

/* General hover styling */
*:hover {
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    /*filter: brightness(1.1); /* Slightly brighten hovered elements */
}

/* Custom scrollbar styling for all scrollable elements */
*::-webkit-scrollbar {
    width: 20px; /* Width of vertical scrollbar */
    height: 20px; /* Height of horizontal scrollbar */
}

*::-webkit-scrollbar-thumb {
    background-color: #444; /* Dark color for the scrollbar thumb */
    border-radius: 4px; /* Rounded corners for the thumb */
    border: 2px solid #222; /* Subtle border for contrast */
}

*::-webkit-scrollbar-track {
    background: #1e1e1e; /* Match the background of the editor */
    border-radius: 4px; /* Rounded corners for the track */
}

/* Scrollbar thumb hover effect */
*::-webkit-scrollbar-thumb:hover {
    background-color: #666; /* Lighten the thumb on hover */
}

/* Scrollbar thumb active (when clicked) */
*::-webkit-scrollbar-thumb:active {
    background-color: #888; /* Further lighten when active */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Fira Code', 'Courier New', monospace;
    background-size: cover;
    /*background-color: #1e1e1e;*/
    color: #f5f5f5;
}

h1, h2 {
    color: #4CAF50;
}

ul {
    margin-left: 1.5rem;
}

section {
    margin-bottom: 2rem;
}

/* Menu Panel */
#menu-panel {
    height: 40px;
    width: 100%;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
}

/* Menu Bar */
#menu-bar{
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif; /* Use Arial font */
}

#desktop-menu-bar{
    flex: 1;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

#mobile-menu-bar{
    flex: 1;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

#menu-bar #divisor {
    flex: 1;
}

#menu-bar ul {
    list-style: none;
    display: flex;
    gap: 0px;
    margin: 0;
    height: 100%;
}

#menu-bar ul li {
    position: relative;
    display: flex;
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    height: 100%;
}

#menu-bar .btn {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center; /* Center text */
}

#menu-bar li:hover {
    background-color: #444;
}

#menu-bar .dropbtn {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center; /* Center text */
}

#menu-bar .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: auto;
    background-color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
    min-width: 150px;
    max-width: 90vw;
    overflow-x: auto;
    left: 0px;
    transform: translateX(-50%);
    overflow-x: auto;
    box-sizing: border-box;
}

#menu-bar .dropdown-content a {
    display: block;
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    text-align: center; /* Center text */
}

#menu-bar .dropdown-content a:hover {
    background-color: #444;
}

#menu-bar .dropdown:hover .dropdown-content {
    display: block;
}

#menu-bar ul li.not-selectable:hover,
#menu-bar ul li.not-selectable .btn:hover,
#menu-bar ul li.not-selectable .dropbtn:hover {
    background-color: inherit !important;
    cursor: default !important;
}

.container {
    max-width: 800px;
    margin: 2rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    background: #303030;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hidden {
    display: none !important;
}

a {
    color: #4CAF50;
    text-decoration: underline;
    transition: color 0.3s;
}

a:hover, a:focus {
    color: #81C784;
    text-decoration: none;
    outline: none;
}

/* Make p5.js canvas act as a static background */
body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

canvas.p5Canvas, canvas#defaultCanvas0 {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: -1;
    pointer-events: none;
}