/*
    Created on : Jan 28, 2024, 4:32:52 PM
    Author     : Raphael Martin
*/

@font-face {
    font-family: "TextMeOne";
    src: url("/fonts/TextMeOne-Regular.ttf") format("truetype");
}

@function invert($color, $amount: 100%) {
    $inverse: change-color($color, $hue: hue($color) + 180);
    @return mix($inverse, $color, $amount);
}

@import "_variables.scss";
@import "Firework.scss";
@import "Memory.scss";


.rounded-top{
    border-radius: 0.5rem 0.5rem 0 0;
}

button, .btn {
    border: none;
    cursor: pointer;
    height: 1.2rem;
    font-family: "TextMeOne", sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 0.1rem 0.5rem;
}
.btn, select{
    cursor:pointer;
}


body {
    --text-color:#fff;
    --bkg-color: #333;
    .bg{
        --text-color:#fff;
        --bkg-color: #333;
    }
    .dark-mode-only{
        display: block;
    }
    .light-mode-only{
        display: none;
    }
    button, .btn{
        color :#333;
        background: rgba(#fff, 0.6);
        border-color: #333;
    }
    &.dark-theme {
        --text-color:#333;
        --bkg-color: #fff;
        button, .btn{
            color :#fff;
            background: rgba(#333, 0.6);
            border-color: #fff;
        }
        .dark-mode-only{
            display: none;
        }
        .light-mode-only{
            display: block;
        }
        .bg{
            --text-color:#333;
            --bkg-color: #fff;
        }
    }
}

@media (prefers-color-scheme: dark) {
    /* defaults to dark theme */

    body {
        --text-color:#333;
        --bkg-color: #fff;
        .bg{
            --text-color:#333;
            --bkg-color: #fff;
        }
        .dark-mode-only{
            display: none;
        }
        .light-mode-only{
            display: block;
        }

        button, .btn{
            color :#fff;
            background: rgba(#333, 0.6);
            border-color: #fff;
        }
        &.light-theme {
            --text-color:#fff;
            --bkg-color: #333;

            button, .btn{
                color :#333;
                background: rgba(#fff, 0.6);
                border-color: #333;
            }
            .dark-mode-only{
                display: block;
            }
            .light-mode-only{
                display: none;
            }
            .bg{
                --text-color:#fff;
                --bkg-color: #333;
            }
        }

    }
}
.loader {
    width: 100%;
    height: 4.8px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.loader::after {
    content: '';
    width: 96px;
    height: 4.8px;
    background: $primary;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    animation: hitZak 0.3s ease-in-out infinite alternate;
}

@keyframes hitZak {
    0% {
        left: 0;
        transform: translateX(-1%);
    }
    100% {
        left: 100%;
        transform: translateX(-99%);
    }
}


#main {
    margin-bottom: 5rem;
}

body {
    background: var(--bkg-color);
    color: var(--text-color);
    overflow-x: hidden;
    height: 100%;
    font-family: "TextMeOne", sans-serif;
    font-size: 1rem;
    > div{
        border-top: solid 1px;
        border-bottom: solid 1px;
        border-color: $primary;
        left: 0;
        right: 0;
        margin: auto;
        text-align: center;
    }
    a{
        color: $primary;
        text-decoration: none;
        font-weight: bold;
    }
    .bg{
        background: var(--bkg-color);
        color: var(--text-color);
    }
}

html{
    font-size: 14px;

}
@media (min-width: 480px) {
    html{
        font-size: 20px;
    }
}

.main-btn{
    margin-top: 1rem;
    font-size: 1.2rem;
    
    height: 1.8rem;
}

.w-100{
    width: 100%;
}

.h-0{
    height: 0;
}
.container, figure, video, img{
    left:0;
    right: 0;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    /*max-width: 890px;*/
}

.container{
    max-width: 890px;
}
input, select {
    border: 2px solid $primary;
    color: $black;
    box-shadow:
        inset 0 0 8px  rgba(0,0,0,0.1),
        0 0 16px rgba(0,0,0,0.1);
    padding: 5px;
    background: rgba(255,255,255,0.8);
    margin: 0 0 5px 0;
}

.user-select-none {

    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.text-wrap{
    text-wrap: wrap;
    overflow-wrap: break-word;
}

.to-top{
    top: -1.3rem;
}

.left {
    left: 0;
}

.right {
    right: 0;
}
.top {
    top: 0;
}

.bottom {
    bottom: 0;
}

.overflow-hidden{
    overflow: hidden;
}

.success{
    background-color: $success !important;
    color: $black;
}


.flex-wrap {
    flex-wrap: wrap;
}
.flex-row {
    flex-direction: row;
}

@for $i from 1 through 6 {
    .h#{$i}, h#{$i} {
        font-size: 0.275rem*(6 - $i)+1rem;
    }
}


fieldset{
    display: flex;
    align-items: center;
    input{
        margin: 0;
        cursor: pointer;
    }
    label{
        cursor: pointer;
        padding-left: 2rem;
        width: 100%;
        display: box;
    }
}

@for $i from 0 through 10 {
    .m-#{$i} {
        margin: $i * 0.25rem;
    }
    .mb-#{$i} {
        margin-bottom: $i * 0.25rem;
    }
    .mt-#{$i} {
        margin-top: $i * 0.25rem;
    }
    .me-#{$i} {
        margin-right: $i * 0.25rem;
    }
    .ms-#{$i} {
        margin-left: $i * 0.25rem;
    }

    .p-#{$i} {
        padding: $i * 0.25rem;
    }
    .pb-#{$i} {
        padding-bottom: $i * 0.25rem;
    }
    .pt-#{$i} {
        padding-top: $i * 0.25rem;
    }
    .pe-#{$i} {
        padding-right: $i * 0.25rem;
    }
    .ps-#{$i} {
        padding-left: $i * 0.25rem;
    }
}

@each $name, $glyph in $icons {
    .icon-#{$name}:before {
        display: inline-block;
        font-family: "Icon Font";
        content: $glyph;
    }
}

@each $name, $color in $colors {
    .bg-#{$name} {
        background-color: $color !important;
    }
    .text-#{$name} {
        color: $color !important;
    }
    .border-#{$name} {
        border-color: $color !important;
    }
}

@each $name, $modes in $justify {
    @each $mode in $modes {
        .justify-#{$name}-#{$mode} {
            justify-#{$name}: $mode !important;
        }
    }
}
@each $name in $displays {
    .d-#{$name} {
        display: $name !important;
    }
}
@each $name in $cursors {
    .cursor-#{$name} {
        cursor: $name !important;
    }
}
@each $name in $positions {
    .position-#{$name} {
        position: $name !important;
    }
}
@each $name in $aligns {
    .text-#{$name} {
        text-align: $name !important;
    }
}

@media all and (display-mode: standalone) {
    .inapp-hidden{
        display: none !important;
    }
}


@media not all and (display-mode: standalone) {
    .browser-hidden{
        display: none !important;
    }
}









.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: $success;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark {
  bottom: 150px;
  left: 0;
  right: 0;
  
  position: fixed;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: $white;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px $success;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}
@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #7ac142;
  }
}