@import url('base.css');
/* Import Google Fonts for custom typography */
@import url('https://fonts.googleapis.com/css2?family=Roboto&family=Dangrek&family=Irish+Grover&family=Lakki+Reddy&family=Bruno+Ace&family=Permanent+Marker&family=Milonga&family=Love+Ya+Like+A+Sister&family=ZCOOL+KuaiLe&family=Protest+Guerrilla&family=Protest+Revolution&display=swap');

/* Kill ability to select items on touch to allow drag and drop game to function */
html, body, canvas {
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE10+/Edge */
    user-select: none;          /* Standard */
    -webkit-touch-callout: none; /* Disable iOS long press menu */
    touch-action: none;          /* Disable double-tap zoom/pan */
}


/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    background: #212529;
    color: #bdbdbd;
}

/* Canvas styling to fill the container */
#canvas {
    width: 100% !important; /* Fills width of #animation_container */
    height: auto !important; /* Keeps aspect ratio */
    background-color: transparent !important;
    display: block;
    border-radius: 10px;
}


/* Main layout container holding sidebar and main content */
.container {
    display: flex;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    padding: 10px 20px;
    align-items: start;
    overflow: auto;
}

.module-links {
    margin-top: 1.125em;
   /* color: #86cca0; */
}

.module-links a {
    color: #86cca0;
}

/* Navigation Menu */
.navbar {
    & .nav-item a { /* Main Navigation Links (Default for Larger Screens) */
        color:#86cca0;
    }
}

/* Player controls container */
.player-controls {
    display: none;
    justify-content: center;
    gap: 3em;
    margin-top: 1.5em;
    padding: 10px;
    font-family: 'Lakki Reddy';
}

/* Sidebar container */
.sidebar {
    /*background-color: #131117;*/
    width: 300px;
    padding-top: 4px !important;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    font-family: 'Concert One', cursive;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    margin-left: 0.6em;
    margin-bottom: 1em;
}

.sidebar h2 {
    color: #999;
    font-size: 2.2em;
    text-align: center;
    font-family: 'Chalkduster';
    margin-bottom: 20px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.sidebar-close-icon {
    width: 30px;
}

.sidebar-module-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

.sidebar-module-list li {
    margin-bottom: 1em;
}

.sidebar-module-list li a {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 15px;
    font-size: 1.125rem;
    background-color: #313037;
    border-radius: 10px;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    transition: box-shadow 0.3s ease; 
}

.sidebar-module-list li a:hover {
    color: #999;
    background-color: rgba(15, 15, 15, 0);
    box-shadow: 0 0 15px rgba(133, 199, 158, 0.5); /* Glow effect on hover */
}

.sidebar-module-list li a img {
    width: 24px;
    transition: transform 0.2s ease;
}
.sidebar-module-list li a:hover img {
    transform: scale(1.1);
}


.sidebar-controls {
    display: flex;
    flex-direction: row;
    gap: 2em;
    margin-top: 8px;
    justify-content: center;
    font-family: 'Lakki Reddy';
}

.sidebar-controls .sidebar-control-link {
    display: flex;
    gap: 10px;
    color: #FFFFFF;
    font-size: 1.15em;
    text-decoration: none;
}

.sidebar-controls .sidebar-control-link img {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

.sidebar-description {
    padding: 10px;
    border-radius: 8px;
    font-size: 1.2em;
    text-align: center; 
    font-family: inherit;
    color: #999;
    margin-bottom: 0.7em;
}

#moduleContent {
    flex-grow: 1; 
    display: flex;
    align-items: stretch;
    height: calc(100vh - 66px);
    overflow: hidden;
    padding-top: 4px !important;
}

#moduleContent iframe {
    width: 100%;
    height: auto; 
    border-radius: 10px;
    object-fit: fill;
}

#moduleIframe {
    width: 100%;
    height: 100%; /* Make iframe take full height of #moduleContent */
    border-radius: 10px;
}

#playerWrapper {
    background-color: #212529; 
    display: flex;
}

#playerWrapper iframe {
    background-color: transparent;
}


/* Fullscreen button styles */
.sidebar-controls .sidebar-control-link img {
    width: 20px;
    height: 20px;
}

/* Responsive styles for mobile view */
@media (max-width: 768px) {
   .container {
       flex-direction: column; /* Stack sidebar and content vertically on smaller screens */
   }
}


/* Responsive styles */
@media (max-width: 1024px) {
    /* .container {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }

    .navbar .navbar-hamburger {
        display: flex;
    }

    .navbar .nav-links {
        display: none;
    }

    .navbar .nav-links.active {
        display: block;
    } */

    .sidebar {
        /* position: fixed;
        top: 0;
        left: 0; */
        width: 97%;
        /* height: 100vh;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 100; */
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* .sidebar-close {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        z-index: 101;
    } */
}


@media (min-width: 1024px) and (max-width: 1264px) {
    #moduleContent {
        width: 70%;    
    }
}