@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Import custom font */
@font-face {
    font-family: 'RainyHearts';
    src: url('fonts/rainyhearts.eot');
    src: url('fonts/rainyhearts.eot?#iefix') format('embedded-opentype'),
         url('fonts/rainyhearts.woff2') format('woff2'),
         url('fonts/rainyhearts.woff') format('woff'),
         url('fonts/rainyhearts.ttf') format('truetype'),
         url('fonts/rainyhearts.svg#RainyHearts') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'RainyHearts', cursive;
    background: url('images/tile.jpg') repeat;
    background-attachment: fixed;
    color: #333;
}

/* Main Layout */
.outer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px;
    gap: 20px;
}

/* Floating Sidebars */
.floating-sidebar {
    width: 250px;
    background-color: #fce4ec;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: sticky; /* Sidebar stays in place when scrolling */
    top: 20px; /* Distance from the top of the viewport */
}

.left-sidebar {
    text-align: left;
}

.right-sidebar {
    text-align: left;
}

/* Sidebar Menu */
.floating-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.floating-sidebar ul li a {
    text-decoration: none;
    color: #6a1b9a;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.floating-sidebar ul li a:hover {
    background-color: #f48fb1;
    color: white;
}

/* Dropdown Submenu */
.submenu {
    display: none; /* Initially hidden */
    padding-left: 20px;
    margin-top: 5px;
}

.submenu li a {
    font-size: 0.85em;
    color: #666;
    padding: 5px;
    border-radius: 3px;
}

.submenu li a:hover {
    background-color: #f48fb1;
    color: white;
}

.dropdown-toggle.active + .submenu {
    display: block; /* Show submenu when active */
}

/* Main Content */
.main-content {
    flex-grow: 1;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Footer */
footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8em;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .outer-wrapper {
        flex-direction: column;
    }

    .floating-sidebar {
        width: 100%; /* Full width for smaller screens */
    }

    .main-content {
        width: 100%;
    }
}
