
@import "/UI/_vars.scss";
@import "/UI/_button.scss";

menu, PauseMenu {
    width: 100%;
    height: 100%;
    flex-direction: column;
    pointer-events: none;
}

MainMenu, Pause {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    flex-direction: row;
    //background-image: url("textures/ui/menu-background.png");
    background-size: 100%;
    pointer-events: none;
    font-family: Poppins;
}

HomePage, PauseMenu {
    width: 100%;

    .header {
        position: absolute;
        right: 10%;
        top: 10%;
        color: white;
        flex-direction: row;
        background-size: 100%;
        pointer-events: none;
        font-family: Poppins;
        flex-direction: column;

        .title {
            text-transform: uppercase;
            font-size: 100px;
            font-size: 100px;
            font-weight: 1000;
            color: #00ff90;
        }

        .subtitle {
            text-transform: uppercase;
            font-size: 30px;
            font-weight: 1000;
            color: white;
        }

        .version {
            text-transform: uppercase;
            font-size: 20px;
            font-weight: 1000;
            color: #808080;
        }
    }
}

.sidebar {
    width: 400px;
    flex-shrink: 0;
    pointer-events: all;
}

.navbar {
    flex-direction: column;
    width: 100%;
    flex-shrink: 1;
    position: absolute;
    bottom: 100px;
    pointer-events: all;
    justify-content: center;
    font-family: $stylefont;
    font-weight: 1000;


    .button {
        width: 100%;
        color: black;
        font-size: 30px;
        padding: 15px;
        background-color: #00ff90;
        cursor: pointer;
        margin-bottom: 8px;
        justify-content: flex-end;
        padding-right: 30px;
        text-transform: uppercase;

        &:hover {
            background-color: rgba( lighten(lightgray, 10%), .8 );
            sound-in: ui.button.over;
        }

        &:active {
            sound-in: ui.button.press;
        }
    }
}

SoloPage {
    width: 100%;
    backdrop-filter: blur( 10px );

    .map-collections {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .collection-container {
        position: absolute;
        padding: 10%;
        margin-left: 10%;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        pointer-events: none;
    }

    .collection-item {
        width: 500px;
        height: 100px;
        background-color: #00ff90;
        margin-bottom: 10px;
        padding: 10px;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        color: black;
        pointer-events: all;

        &:hover {
            background-color: rgba( lighten(lightgray, 10%), .8 );
            sound-in: ui.button.over;
            transform: scale(1.05);
        }

        &:active {
            sound-in: ui.button.press;
        }
    }

    .collection-title {
        font-size: 30px;
        font-weight: 1000;
    }

    .map-container {
        position: absolute;
        padding: 10%;
        margin-left: 10%;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        pointer-events: none;
    }

    .map-item {
        width: 500px;
        height: 100px;
        background-color: #00ff90;
        margin-bottom: 10px;
        padding: 10px;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        color: black;
        pointer-events: all;

        &:hover {
            background-color: rgba( lighten(lightgray, 10%), .8 );
            sound-in: ui.button.over;
            transform: scale(1.05);
        }

        &:active {
            sound-in: ui.button.press;
        }
    }

    .map-title {
        font-size: 30px;
        font-weight: 1000;
    }

    .map-info-stats-container {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        pointer-events: none;
    }

    .map-info {
        top: 10%;
        width: 50%;
        padding: 20%;
        position: absolute;
        right: 0;
        flex-direction: column;
        pointer-events: none;
    }

    .map-icon {
        width: 400px;
        height: 200px;
        background-color: #00ff90;
        margin-bottom: 10px;
        padding: 10px;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        color: black;
        pointer-events: all;
    }

    .map-info-title {
        font-size: 70px;
        font-weight: 1000;
    }

    .map-info-time {
        font-size: 60px;
        font-weight: 1000;
    }


    .map-completed {
        font-size: 60px;
        font-weight: 1000;
        font-family: Material Icons;
    }

    .locked {
        background-color: #808080;
        pointer-events: none;
    }
}

.column {
    flex-direction: column;
}

.group {
    color:#00ff90;
    font-size: 30px;
    padding-bottom: 28px;
    padding-top: 12px;
    font-weight: 1000;
    text-transform: uppercase;
}

.divider {
    margin-top: 12px;
    width: 600px;
    opacity: 0.3;
    min-height: 1px;
    background-image: linear-gradient( to right, rgba( white, 0.8 ), rgba( white, 0.6 ) );
}

.scroll {
    max-height: 700px;
    overflow-y: scroll;
    flex-shrink: 1;
    flex-wrap: nowrap;
    flex-grow: 1;
}

SettingsPage {
    pointer-events: all;

    .column {
        margin-left: 10%;
        margin-top: 5%;
    }

    .navbar {
        width: 400px;
    }

    .column {
        overflow: scroll;
    }
}


SettingsPageSetting, .entry {
    width: 100%;
    flex-direction: column;
    justify-content: space-between;

    .icon {
        font-family: Material Icons;
        color: white;
        font-size: 20px;
    }

    .name {
        color: white;
        font-size: 24px;
        font-weight: 1000;
    }

    .description {
        color: white;
        font-size: 16px;
    }

    .warning {
        font-size: 16px;
        color: orange;
    }

    gap: 16px;
}

$primary: black !default;
$primary-alt: white !default;

.checkbox {
    align-items: center;
    cursor: pointer;
    color: rgba( $primary-alt, 0.6 );
    align-items: center;
    margin: 8px;

    label {
        pointer-events: none;
    }

    > .checkmark {
        aspect-ratio: 1;
        padding: 1px;
        font-size: 22px;
        border: 3px solid $primary;
        border-radius: 0px;
        text-align: center;
        justify-content: center;
        align-items: center;
        color: transparent;
        margin-right: 10px;
        min-width: 32px;
        max-width: 32px;
        pointer-events: none;
        box-shadow: 2px 2px 2px black;
    }

    &.checked {
        > .checkmark {
            color: $primary-alt;
            background-color: #00ff90;
        }
    }

    &:active {
        color: $primary-alt;
    }

    &:hover {
        color: $primary-alt;
    }
}

.slidercontrol {
    flex-direction: row;
    min-width: 50px;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    gap: 8px;
    flex-grow: 1;
    align-items: center;
    max-width: 500px;

    > .inner {
        flex-direction: column;
        flex-shrink: 1;
        flex-grow: 1;
        min-height: 32px;

        > .values {
            width: 100%;
            pointer-events: none;
            font-size: 14px;
            color: #aaa;

            > .left {
                flex-grow: 1;
            }
        }

        > .track {
            background-color: grey;
            height: 7px;
            margin: 8px;
            align-items: center;

            > .track-active {
                background-color: darken( #00ff90, 0.2 );
                position: absolute;
                height: 100%;
                left: 0px;
            }

            > .thumb {
                background-color: #00ff90;
                width: 16px;
                height: 16px;
                transform: translateX( -50% );
                box-shadow: 2px 2px 2px solid black;
            }
        }
    }

    > .entry {
        background-color: #00ff90;
        width: 50px;
        flex-shrink: 0;
        flex-grow: 0;
        font-family: Poppins;
        font-weight: 1000;
        font-size: 24px;
        color:black;
        align-content:center;
        align-items:center;
        justify-content:center;
        > textentry {
            text-align: center;
            width: 100%;
            padding: 0;
            min-height: 0px;

            > .content-label {
                padding: 0 4px;
            }
        }
    }
}
