﻿.alswin-page {
    min-height: 100vh;
    position: relative;
    padding: 24px 12px 40px;
}

/*    .alswin-page::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.72);
        pointer-events: none;
        z-index: 0;
    }*/

.alswin-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.alswin-progress,
.alswin-timer,
.alswin-status {
    margin: 8px 0;
}

.alswin-timer {
    font-size: 18px;
    font-weight: 600;
}

.alswin-grid-wrapper {
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    touch-action: none;
    background: rgba(255,255,255,0.35);
}

.alswin-grid-wrapper--12 {
    width: 320px;
    height: 320px;
    border: 2px dashed #444;
}

.alswin-grid {
    position: absolute;
}

.alswin-grid--12 {
    display: grid;
    grid-template-columns: repeat(12, 80px);
    grid-template-rows: repeat(12, 80px);
    top: -320px;
    left: -320px;
}

.alswin-tile {
    width: 80px;
    height: 80px;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.alswin-tile--level1 {
    border: 2px solid #444;
    cursor: grab;
}

.alswin-red {
    background-color: red;
}

.alswin-green {
    background-color: green;
}

.alswin-yellow {
    background-color: yellow;
}

.alswin-blue {
    background-color: blue;
}

.alswin-controls {
    margin-top: 12px;
}

    .alswin-controls button,
    .alswin-button-link {
        padding: 10px 20px;
        margin: 10px;
        font-size: 16px;
        cursor: pointer;
        display: inline-block;
        text-decoration: none;
        color: inherit;
    }

.alswin-button-link {
    border: 1px solid #999;
    background: #f3f3f3;
}

@media (max-width: 480px) {
    .alswin-wrapper {
        max-width: 100%;
    }
}
/*Level 2 aanvulling*/
.alswin-grid-wrapper--solid {
    border: 2px solid #333;
}

.alswin-info {
    margin-top: 20px;
}

.alswin-tile--image {
    border: 1px solid #444;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
/*Level 3 aanvulling*/
.alswin-tile--sprite {
    border: 1px solid #000;
    background-repeat: no-repeat;
    background-size: 320px 320px;
    box-sizing: border-box;
    cursor: grab;
}
/*Level 4 aanvulling*/
.alswin-grid-wrapper--4x4-dashed {
    width: 320px;
    height: 320px;
    border: 2px dashed #444;
}

.alswin-grid--4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 320px;
    display: grid;
    grid-template-columns: repeat(4, 80px);
    grid-template-rows: repeat(4, 80px);
    z-index: 5;
}

.alswin-float-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 320px;
    pointer-events: none;
    z-index: 10;
}

.alswin-tile--sum {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    border: 1px solid #999;
    box-sizing: border-box;
    color: blue;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

    .alswin-tile--sum:focus,
    .alswin-tile--sum:active {
        outline: none;
    }

.alswin-sum-correct {
    background-color: lightgreen;
}

.alswin-total-correct {
    background-color: lightgreen;
    color: blue;
}

.alswin-total-partial {
    background-color: lightgreen;
    color: red;
}

.alswin-next-button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 18px;
}
/*Level5 aanvulling*/
.alswin-info-bar {
    margin-bottom: 10px;
}

.alswin-finished-info {
    margin-top: 15px;
    font-weight: bold;
}