/* /Components/BlocklyComponent.razor.rz.scp.css */
.blockly-div[b-kkhlkeueze] {
    height: 500px;
    width: 60%;
    border: 2px solid #000;
}

.maze-container[b-kkhlkeueze] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.maze-grid[b-kkhlkeueze] {
    position: relative;
    width: 400px;
    height: 400px;
    background: lightgray;
    border: 2px solid black;
}

.beaver[b-kkhlkeueze], .home[b-kkhlkeueze] {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.beaver[b-kkhlkeueze] {
    left: 50px;
    top: 350px;
    background-image: url('/images/beaver.png');
    transition: left 0.3s ease, top 0.3s ease;
}

.home[b-kkhlkeueze] {
    left: 350px;
    top: 50px;
    background-image: url('/images/home.png');
}

.message-overlay[b-kkhlkeueze] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: none;
    text-align: center;
    width: auto;
    max-width: 80%; 
}

    .message-overlay.victory[b-kkhlkeueze] {
        background-color: rgba(0, 150, 0, 0.8);
        color: white;
    }

    .message-overlay.error[b-kkhlkeueze] {
        background-color: rgba(200, 0, 0, 0.8); 
        color: white;
    }

.message-box[b-kkhlkeueze] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    color: #000;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

/* Reset Hint */
.reset-hint[b-kkhlkeueze] {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1rem;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: none;
}

.workspace-and-maze[b-kkhlkeueze] {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.blocklyToolboxDiv[b-kkhlkeueze] {
    width: 180px !important;
    max-width: 300px;
}

.blocklyWorkspace[b-kkhlkeueze] {
    margin-left: 180px;
}

@media (min-width: 768px) {
    .workspace-and-maze[b-kkhlkeueze] {
        flex-direction: column;
        align-items: center;
    }

    .maze-grid[b-kkhlkeueze] {
        margin-top: 20px;
    }

    .buttons-container[b-kkhlkeueze] {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 20px;
    }
}

@media (min-width: 1024px) {
    .workspace-and-maze[b-kkhlkeueze] {
        flex-direction: row;
        justify-content: center;
    }

    .maze-grid[b-kkhlkeueze] {
        margin-top: 0;
    }
}

.buttons-container[b-kkhlkeueze] {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.control-buttons[b-kkhlkeueze] {
    margin-top: 20px;
}

.message-box button[b-kkhlkeueze] {
    margin-top: 15px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.message-box button:hover[b-kkhlkeueze] {
    background: #0056b3;
}

/* Animations */
@keyframes fadeIn-b-kkhlkeueze {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOut-b-kkhlkeueze {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

.fade-in[b-kkhlkeueze] {
    animation: fadeIn-b-kkhlkeueze 0.5s ease-out forwards;
}

.fade-out[b-kkhlkeueze] {
    animation: fadeOut-b-kkhlkeueze 0.5s ease-in forwards;
}
/* /Components/BlocklyComponentDefis2.razor.rz.scp.css */
.blockly-div[b-f74pasusm5] {
    height: 500px;
    width: 60%;
    border: 2px solid #000;
}

.maze-container[b-f74pasusm5] {
    gap: 20px;
    position: relative;
}

.maze-grid[b-f74pasusm5] {
    position: relative;
    width: 400px;
    height: 400px;
    background: lightgray;
    border: 2px solid black;
}

.beaver[b-f74pasusm5], .home[b-f74pasusm5] {
    position: absolute;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.beaver[b-f74pasusm5] {
    left: 50px;
    top: 350px;
    background-image: url('/images/beaver.png');
}

.home[b-f74pasusm5] {
    left: 350px;
    top: 50px;
    background-image: url('/images/home.png');
}

.message-overlay[b-f74pasusm5] {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 22px;
    font-weight: bold;
    padding: 20px 30px;
    border-radius: 15px;
    z-index: 10;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.reset-hint[b-f74pasusm5] {
    display: none;
    position: absolute;
    top: calc(50% + 60px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: black;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.message-box[b-f74pasusm5] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    color: black;
    font-size: 18px;
    padding: 20px 30px;
    border-radius: 12px;
    z-index: 20;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.control-buttons[b-f74pasusm5] {
    margin-top: 20px;
}

.message-box button[b-f74pasusm5] {
    margin-top: 15px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.message-box button:hover[b-f74pasusm5] {
    background: #0056b3;
}

/* Animations */
@keyframes fadeIn-b-f74pasusm5 {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOut-b-f74pasusm5 {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

.fade-in[b-f74pasusm5] {
    animation: fadeIn-b-f74pasusm5 0.5s ease-out forwards;
}

.fade-out[b-f74pasusm5] {
    animation: fadeOut-b-f74pasusm5 0.5s ease-in forwards;
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-sclb7cm6wg] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-sclb7cm6wg] {
    flex: 1;
}

.sidebar[b-sclb7cm6wg] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-sclb7cm6wg] {
    background-color: transparent !important;
    border-bottom: 1px solid;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-sclb7cm6wg]  a, .top-row[b-sclb7cm6wg]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-sclb7cm6wg]  a:hover, .top-row[b-sclb7cm6wg]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-sclb7cm6wg]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-sclb7cm6wg] {
        justify-content: space-between;
    }

    .top-row[b-sclb7cm6wg]  a, .top-row[b-sclb7cm6wg]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-sclb7cm6wg] {
        flex-direction: row;
    }

    .sidebar[b-sclb7cm6wg] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-sclb7cm6wg] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-sclb7cm6wg]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-sclb7cm6wg], article[b-sclb7cm6wg] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-8vo9xa688j] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-8vo9xa688j] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-8vo9xa688j] {
    font-size: 1.1rem;
}

.bi[b-8vo9xa688j] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-8vo9xa688j] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-8vo9xa688j] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-8vo9xa688j] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-8vo9xa688j] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-8vo9xa688j] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-8vo9xa688j] {
        padding-bottom: 1rem;
    }

    .nav-item[b-8vo9xa688j]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-8vo9xa688j]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-8vo9xa688j]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-8vo9xa688j] {
        display: none;
    }

    .collapse[b-8vo9xa688j] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-8vo9xa688j] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
