@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 */
/* Blurred background */
.blurred-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/background.png') repeat;
    background-attachment: fixed;
    filter: blur(10px); /* Adjust the blur level */
    z-index: -2; /* Push it behind other content */
}

.dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(223, 159, 201, 0.2);*/
    
    background: rgba(0, 0, 0, 0.3);
    z-index: -1; /* Ensure it sits behind content */
    pointer-events: none; /* Allow interaction with content */
}

/* Base style for Windows 98 windows */
.window {
    position: relative;
    background-color: #ffffff; /* Window background */
    border: 2px solid #cccccc; /* Outer border */
    padding: 10px;
    box-shadow: inset -2px -2px #ffffff, inset 2px 2px #000000; /* Beveled 3D effect */
    width: auto; /* Example width */

}

/* Title bar */
.window .title-bar {
    background: linear-gradient(to bottom, #df9fc9, #e0b8d1); /* Blue gradient for title bar */
    color: white;
    font-weight: bold;
    padding: 5px;
    text-align: left;
    border-bottom: 2px solid #808080; /* Slight 3D effect */
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Buttons in the title bar */
.window .title-bar .buttons {
    display: flex;
    gap: 4px;
}

.window .title-bar .button {
    width: 12px;
    height: 12px;
    background-color: #c0c0c0; /* Button gray */
    border: 1px solid #808080;
    box-shadow: inset -1px -1px #ffffff, inset 1px 1px #000000; /* 3D button effect */
    cursor: pointer;
}

.window .title-bar .button:hover {
    background-color: #a0a0a0; /* Darker on hover */
}

/* Content area */
.window .content {
    padding: 10px;
    border: 2px solid #cccccc;
    box-shadow: inset -1px -1px #ffffff, inset 1px 1px #000000; /* 3D inset */
    margin-top: 5px;
}
/* Content styles */
.content {
    position: relative;
    z-index: 1; /* Ensure content is above the background */
    padding: 20px;
    font-family: 'RainyHearts', cursive;
    color: #333;
}

/* Top Section */
.top-section {
    background: url('images/top-bg.png') no-repeat center center;
    background-size: cover;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 5px solid #ff80ab;
    border-radius: 10px; /* Add rounded corners */
    max-width: 900px; /* Limit the width */
    margin: 20px auto; /* Center the box horizontally with margin */
    padding: 20px; /* Add some padding */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add a subtle shadow for a "box" effect */
}

.top-section .logo {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo img {
    max-height: 250px; /* Set a maximum height */
    width: auto; /* Maintain the aspect ratio based on the height */
    max-width: 90%; /* Prevent the logo from exceeding the width of the container */
    object-fit: contain; /* Ensure the image is scaled properly without distortion */

    filter: drop-shadow(0 0 30px rgba(230, 118, 151, 0.6)); /* Glowing pink effect */
}

.top-section h1 {
    font-size: 3em;
    margin: 0;
}

/* Main Layout */
.outer-wrapper {
    display: flex;
    justify-content: center;
    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;
}
.decorspin {
    animation: spin 5s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.dangling-gif {
    position: fixed; /* Stays fixed in the viewport */
    top: 80px; /* Position from the top */
    right: 10px; /* Position from the right */
    width: 200px; /* Set a fixed width in pixels */
    height: auto; /* Maintain aspect ratio */
    animation: sway 2s ease-in-out infinite; /* Optional swinging effect */
    z-index: 1000; /* Ensure it stays above other elements */
    transform-origin: center; /* Smooth animation pivot */
}

@keyframes sway {
    0%, 100% {
        transform: translateY(-50%) rotate(-5deg);
    }
    50% {
        transform: translateY(-50%) rotate(5deg);
    }
}

/* 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%;
    }
}
