/* $menuHeight: 65px+10px; */
@mixin transition {
    transition-property: background-color opacity;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
}

html,
body {
    width: 100vw;
    height: 100vh;
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    margin: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}

#page {
    display: grid;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
}

#mazeContainer {
    width: 40vh;
    height: 40vh;
    display: block;
    margin: 0 auto;
}

#planet {
    width: 100%;
    height: 100%;
    background-image: url("../img/bg.png");
    position: relative;
    background-position: center center; 
    background-repeat: no-repeat;
    background-size: contain;
  }

#view {
    width: 100vw;
    height: 100vh;
    background: white;
}
.winspins {
    font-size: 5vh;
    height: auto !important;
    max-height: 30px;
    line-height: 41px;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    margin-bottom: 2vh;
}

.dummy-text {
    font-size: 2vh;
    max-height: 21px;
    line-height: 41px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

.text {
    margin-top: 4vh;
    margin-bottom: 4vh;
}

.left {
    animation: left 200ms;
  }

@keyframes left {
    0% {
        left: 50px;
    }
    30% {
        left: 50px;
    }
    50% {
        left: 50px;
    }
    100% {
        left: 50px;
    }
}

.right {
    animation: right 200ms;
  }

@keyframes right {
    0% {
        right: 50px;
    }
    30% {
        right: 50px;
    }
    50% {
        right: 50px;
    }
    100% {
        right: 50px;
    }
}

.top {
    animation: top 200ms;
  }

@keyframes top {
    0% {
        top: 50px;
    }
    30% {
        top: 50px;
    }
    50% {
        top: 50px;
    }
    100% {
        top: 50px;
    }
}

.bottom {
    animation: bottom 200ms;
  }

@keyframes bottom {
    0% {
        bottom: 50px;
    }
    30% {
        bottom: 50px;
    }
    50% {
        bottom: 50px;
    }
    100% {
        bottom: 50px;
    }
}

.hidden {
    display: none;
}

#page {
    display: grid;
}

#view, #planets {
    grid-area: 1 / 1;
}

.custom-select {
    display: inline-block;
}

 /* Extra small devices (phones, 600px and down) */
 @media only screen and (max-width: 400px) {
    input, select{
        width: 120px;
    }
 }

 #ship {  
    position: relative;
    bottom: -470px;
    right: -310px;
    z-index: 5;
    cursor: pointer;
    width: 20%;
    height: 20%;
 }

 #spaceman {  
    position: absolute !important;
    top: -40px;
    left: -310px;
    z-index: 5;
    cursor: pointer;
    width: 20%;
    height: 20%;
 }

 header {
    display: flex;
    justify-content: space-between;
    padding: 27px 67px 0;
    flex: 0 0 0;
}

.logo {
    display: inline-block;
    height: 67px;
    width: 350px;
}

.logo img {
    width: auto;
    height: 67px;
    display: inline-block;
}

@media (max-width: 1023px) {
    header {
        padding: 40px 0;
        justify-content: center;
    }

    .logo img {
        height: 44px;
    }

    header .noteikumi {
        display: none;
    }
}

@media (max-width: 1023px) {
    .noteikumi {
        text-align: center;
        margin: 0;
        font-size: 11px;
    }
}

.noteikumi {
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-wrapper {
    position: fixed;
    top: 48%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    visibility: hidden;
    display: flex;
}

#popup-win, #popup-defeat {
    height: 700px;
    width: 350px;
    background: #ffffff;
    border: solid #D2D1D2;
    border-width: 2px;
    border-radius: 25px;
}

.noteikumi--title {
    text-align: left;
}

#popup-noteikumi {
    z-index: 100;
}

.popup-box {
    padding: 55px 35px;
    display: flex;
    justify-items: stretch;
    flex-direction: column;
}

.popup-box--bg, .popup-box--confetti {
    position: absolute !important;
    top: 7px;
    left: 7px;
    height: 90%;
    width: 90%;
    overflow: hidden;
    z-index: 1;
}

.popup-box--title {
    margin-bottom: 10%;
}

.popup-box--bg::before {
    background: white;
    content: '';
    height: 100%;
    width: 150%;
    top: -30px;
    margin-left: -25%;
    display: block;
    position: relative;
}

.popup-box > *:not(.popup-box--bg) {
    position: relative;
    z-index: 4;
    flex: 1 0 auto;
}

.popup-box--form {
    flex: 0 0 0 !important;
    z-index: 6 !important;
}

.popup-box--close {
    position: absolute !important;
    top: -24px;
    right: -14px;
    z-index: 5;
    cursor: pointer;
}

.popup-box--title {
    word-wrap: break-word;
}

.popup-box:not(.popup-box-wide) .popup-box--title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.popup-box:not(.popup-box-wide) .popup-box--desc {
    text-align: center;
}

.popup-box:not(.popup-box-wide) .popup-box--desc div {
    margin: 24px auto;
    color: #F9C83A;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.2;
}

.popup-box:not(.popup-box-wide) .popup-box--title span,
.popup-box:not(.popup-box-wide) .popup-box--desc span {
    font-weight: 600;
    font-size: 24px;
}

.popup-box-wide {
    background: #ffffff;
    border: 2px solid #D2D1D2;
    border-radius: 25px;
    width: 1000px;
}

.popup-box-wide .popup-box--title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 70px;
}

.popup-box-wide .popup-box--body {
    overflow-y: scroll;
    max-height: 100%;
    flex: 0;
}

.popup-box-wide .popup-box--body * + * {
    margin-top: 30px;
}

.popup-box-wide .popup-box--body h3 + p,
.popup-box-wide .popup-box--body h4 + p {
    margin-top: 30px;
}

.popup-box-wide .popup-box--body p + h3,
.popup-box-wide .popup-box--body p + h4 {
    margin-top: 70px;
}

@media (max-width: 1023px) {
    .popup-box:not(.popup-box-wide), .popup-box-wide {
        padding: 35px 15px;
        min-width: 290px;
        width: 80vw;
        height: 60vh;
        max-width: 400px;
        min-height: 445px;
    }

    #popup-win, #popup-defeat {
        width: 85vw;
        height: 70vh;
        margin-top: 3vh;
    }

    .popup-box-wide {
        width: 85vw;
        height: 72vh;
        text-align: initial;
    }

    .popup-box--close {
        right: 2vh;
        top: 2vh;
    }

    .popup-box:not(.popup-box-wide) .popup-box--title {
        font-size: 30px;
    }

    .popup-box:not(.popup-box-wide) .popup-box--desc div {
        margin: 14px auto;
        font-size: 35px;
    }

    .popup-box:not(.popup-box-wide) .popup-box--title span,
    .popup-box:not(.popup-box-wide) .popup-box--desc span {
        font-size: 13px;
    }

    .popup-box-wide .popup-box--title {
        font-size: 18px;
        margin-bottom: 35px;
        margin-top: 15px;
    }

    .popup-box-wide .popup-box--body * + * {
        margin-top: 15px;
    }

    .popup-box-wide .popup-box--body h3 + p,
    .popup-box-wide .popup-box--body h4 + p {
        margin-top: 15px;
    }

    .popup-box-wide .popup-box--body p + h3,
    .popup-box-wide .popup-box--body p + h4 {
        margin-top: 35px;
    }
}

@media screen and (aspect-ratio: 16/9), screen and (aspect-ratio: 16/10) {
    .popup-box {
        transform: scale(0.8);
    }
}

.input-row {
    display: flex;
    justify-content: center;
    text-align: left;
}

.input-row + .input-row {
    margin-top: 20px;
}

.input-row--submit {
    margin-top: 55px !important;
}


.input-text {
    background-color: rgb(255, 255, 255);
    width: 100%;
    height: 60px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0 25px;
    line-height: 60px;
    font-weight: 500;
}

@media (max-width: 1023px) {
    .input-row + .input-row {
        margin-top: 12px;
    }

    .input-row--submit {
        margin-top: 26px !important;
    }

    .input-text {
        height: 42px;
        line-height: 42px;
        padding: 0 17px;
        font-size: 14px;
    }
}

.input-text::-webkit-input-placeholder {
    color: black;
}

.input-text::-moz-placeholder {
    color: black;
    opacity: 1;
}

.input-text:-moz-placeholder {
    color: black;
    opacity: 1;
}

.input-text:-ms-input-placeholder {
    color: black;
}

.btn-result {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    padding: 0 95px;
    height: 80px;
    align-items: center;
    align-content: center;
    justify-content: center;
    border: 0;
    border-radius: 45px;
    display: inline-flex;
    box-shadow: none;
    background-color: #c93b30;
    color: white;
}

.btn-spelet {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    padding: 0 95px;
    height: 90px;
    align-items: center;
    align-content: center;
    justify-content: center;
    border: 0;
    border-radius: 45px;
    display: inline-flex;
    box-shadow: none;
    color: #fff;
    background-color: #c93b30;
    position: relative;
}

.btn, a, .move, .wrapper {
    -webkit-transition: .4s;
    -o-transition: .4s;
    transition: .4s;
}

.wrapper.disabled,
.wrapper.disabled .cell,
.btn-spelet.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    padding: 0 95px;
    height: 90px;
    align-items: center;
    align-content: center;
    justify-content: center;
    border: 0;
    border-radius: 45px;
    display: inline-flex;
    box-shadow: none;
}

.btn-spelet {
    background-color: #c93b30;
    color: #fff;
    position: relative;
    font-size: 20px;
    margin-bottom: 1%;
    width: 250px;
    height: 70px;
}

.btn-spelet:enabled::after, .btn-spelet:enabled::before {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #c93b30;
    border-radius: 45px;
    -webkit-box-shadow: 0 0 0 0 currentColor;
    box-shadow: 0 0 0 0 currentColor;
    -webkit-animation: button-ripple 1s infinite;
    animation: button-ripple 2s infinite;
    animation-delay: 0s;
    opacity: .6;
}

@-webkit-keyframes button-ripple {
    70% {
        -webkit-box-shadow:0 0 0 15px currentColor;
        box-shadow:0 0 0 15px currentColor;
        opacity:0
    }
    100% {
        -webkit-box-shadow:0 0 0 0 currentColor;
        box-shadow:0 0 0 0 currentColor;
        opacity:0
    }
}
@keyframes button-ripple {
    70% {
        -webkit-box-shadow:0 0 0 15px currentColor;
        box-shadow:0 0 0 15px currentColor;
        opacity:0
    }
    100% {
        -webkit-box-shadow:0 0 0 0 currentColor;
        box-shadow:0 0 0 0 currentColor;
        opacity:0
    }
}

.svg-planet-container {
    position: fixed;
    top: 40vh;
    left: 10vw;
    -webkit-animation: mover-planet 2s infinite  alternate;
    animation: mover-planet 2s infinite  alternate;
}

@-webkit-keyframes mover-planet {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

@keyframes mover-planet {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

.svg-circle-container {
    position: fixed;
    top: 15vh;
    right: 10vw;
    -webkit-animation: mover-circle 2s infinite  alternate;
    animation: mover-circle 2s infinite  alternate;
}

@-webkit-keyframes mover-circle {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(20px) translateX(-10px);}
}

@keyframes mover-circle {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(20px) translateX(-10px);}
}

.svg-circle2-container {
    position: fixed;
    top: 45vh;
    right: 7vw;
    -webkit-animation: mover-circle2 3s infinite  alternate;
    animation: mover-circle2 3s infinite  alternate;
}

@-webkit-keyframes mover-circle2 {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-20px) translateX(20px);}
}

@keyframes mover-circle2 {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(-20px) translateX(20px);}
}


.svg-stars2-container {
    position: fixed;
    top: 10vh;
    left: 5vw;
}

.svg-stars-container {
    position: fixed;
    top: 65vh;
    right: 12vw;
}

.noteikumi-mobile {
    display: none;
}

.noteikumi-mobile-popup {
    display: none;
}

@media (max-width: 600px) {
    #play-losing {
        margin-top: 5vh;
    }

    .btn-result {
        margin-top: 3vh;
    }

    .noteikumi-mobile-popup {
        display: block;
        text-align: center;
        position: fixed;
        bottom: -4vh;
        left: 40%;
    }

    .winspins {
        font-size: 4vh;
        line-height: 22px;
        font-weight: 800;
        font-family: 'Montserrat', sans-serif;
        text-align: center;
        margin-bottom: 2vh;
    }

    .dummy-text {
        font-size: 2vh;
        line-height: 22px;
        font-weight: 700;
        font-family: 'Montserrat', sans-serif;
        text-align: center;
    }

    .text {
        margin-bottom: 2vh;
    }

    #planets {
        display: none;
    }

    .logo {
        width: 50vw;
    }

    .btn-spelet {
        margin-bottom: 1.5vh;
    }

    #mazeContainer {
        height: 70vw;
        width: 70vw;
    }

    html, body {
        overflow-x: hidden;
        overscroll-behavior-y: contain;
    }

    html {
        overflow: hidden;
        height: 100%;
    }

    .noteikumi-mobile {
        display: inline;
    }

    body {
        overscroll-behavior-y: contain;
        position: fixed;
        overflow-x: hidden;
        overflow-y: hidden;
        overflow: hidden;
        width: 100%;
        height: 100%;
        -webkit-box-sizing: border-box;
           -moz-box-sizing: border-box;
                box-sizing: border-box;
    }

    body {
        background: none;
        background-size: cover;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        position: center;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    header {
        padding: 3vh 0 0vh;
    }
}

@media screen and (orientation: landscape) and (max-height: 600px) {
    body {
        background: transparent url("../img/turnDevice.png") no-repeat center top;
        background-size: cover;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        color: black;
        width: 100vw;
        min-height: 100vh;
        position: center;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    #page, header {
        display: none;
    }
}
