@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600;1,700;1,800&display=swap');

body {
    background: transparent url("../img/background.jpg") no-repeat center top;
    background-size: cover;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #ffffff;
    width: 100vw;
    min-height: 100vh;
    position: center;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.winspins {
    font-size: 5vh;
    height: auto !important;
    max-height: 30px;
    line-height: 41px;
    color: #ffffff;
    font-weight: 800;
    font-family: "Montserrat";
    text-align: center;
    margin-bottom: 2.5vh;
}

.dummy-text {
    font-size: 2vh;
    max-height: 21px;
    line-height: 41px;
    color: #ffffff;
    font-weight: 700;
    font-family: "Montserrat";
    text-align: center;
}

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

.logo {
    width: 60vw;
    height: 15vh;
    margin-top: 20vh;
}

.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: #fff;
    color: #5A1689;
    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: #fff;
    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;
    z-index: -1;
}

@-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
    }
}

.rotateX-slow {
    -webkit-animation-name: spinner;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-duration: 3s;
    animation-name: spinner;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 3s;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.rotateX-medium {
    -webkit-animation-name: spinner;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-duration: 2s;
    animation-name: spinner;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 2s;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transform-origin: center center;
}

.rotateX-fast {
    -webkit-animation-name: spinner;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-duration: 1s;
    animation-name: spinner;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 1s;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    transform-style: preserve-3d;
    transform-origin: center center;
}

svg {
    filter: url(#shadow);
}

/* WebKit and Opera browsers */
@-webkit-keyframes spinner { 
	from 
	{ 
		-webkit-transform: rotateY(0deg); 
	} 
	to { 
		-webkit-transform: rotateY(-360deg); 
	} 
} /* all other browsers */ 
@keyframes spinner {
	from { 
		-moz-transform: rotateY(0deg); 
		-ms-transform: rotateY(0deg); 
		transform: rotateY(0deg); 
	} 
	to 
	{ 
		-moz-transform: rotateY(-360deg); 
		-ms-transform: rotateY(-360deg); 
		transform: rotateY(-360deg); 
	
	} 
}

.tetris-board {
    width: 90vh;
    height: 90vh;
    display: block;
    margin: 0 auto;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding:0;
    overflow-x: hidden;
}

body {
    overflow: hidden;
}

.grid {
    display: grid;
}    

.tetris-board, .button, .images {
    grid-area: 1 / 1;
  }

.button {
    text-align: center;
}

.popup-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    visibility: hidden;
    display: block;
    min-height: 50vh;
    min-width: 15vw;
}

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

.noteikumi {
    font-size: 17px;
    line-height: 41px;
    color: #ffffff;
    font-weight: 700;
    font-family: "Montserrat";
    text-align: center;
    text-decoration: none; 
    position: absolute !important;
    bottom: -40px;
    right: 33%;
    margin: 0 auto;
    z-index: 5;
    cursor: pointer;
}

.front-noteikumi {
    font-size: 17px;
    line-height: 41px;
    color: #ffffff;
    font-weight: 700;
    font-family: "Montserrat";
    text-align: center;
    text-decoration: none;
    position: relative !important;
    z-index: 5;
    cursor: pointer;
}


.popup-box {
    border-radius: 10px;
    background: #D3D3D3;
    color: #48115B;
    padding: 55px 35px;
    display: flex;
    justify-items: stretch;
    flex-direction: column;
}

.popup-box--bg, .popup-box--confetti {
    border-radius: 10px;
    position: absolute !important;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

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

.popup-box--bg::before {
    background: radial-gradient(68.4% 51.9% at 51.95% 40%, #FFF 50%, rgba(255, 255, 255, 0) 100%), #D3D3D3;
    content: '';
    height: 100%;
    width: 150%;
    top: -30px;
    margin-left: -25%;
    display: block;
    position: relative;
}

.popup-box--confetti {
    background: transparent url("../img/confetti.svg") no-repeat center top;
    background-size: contain;
    z-index: 5 !important;
}

.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: #c93b30;
    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;
    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-box-wide {
        width: 85vw;
        height: 75vh;
        text-align: initial;
    }

    .popup-box--close {
        right: 0;
    }

    .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;
    }

    .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;
    }

    #play-losing {
        margin-top: 5vh;
    }

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

@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;
}

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

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


.input-text {
    background-color: #D3D3D3;
    width: 100%;
    height: 60px;
    border-radius: 10px;
    box-shadow: inset -1px 1px 0 rgba(0, 0, 0, 0.1);
    border: 0 !important;
    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: #48115B;
}

.input-text::-moz-placeholder {
    color: #48115B;
    opacity: 1;
}

.input-text:-moz-placeholder {
    color: #48115B;
    opacity: 1;
}

.input-text:-ms-input-placeholder {
    color: #48115B;
}

.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;
    width: 250px;
    height: 70px;
}

.images {
    position: relative;
}

.svg1-container {
    position: absolute;
    top: 2%; 
    left: 15%;
}

.svg2-container {
    position: absolute;
    top: 5%; 
    left: 65%;
}

.svg3-container {
    position: absolute;
    top: 35%; 
    left: 2%;
}

.svg4-container {
    position: absolute;
    top: 80%; 
    left: 15%;
}

.svg5-container {
    position: absolute;
    top: 30%; 
    left: 90%;
}

.svg6-container {
    position: absolute;
    top: 75%; 
    left: 80%;
}

@media (max-width: 600px) {
    .grid {
        display: grid;
    }

    .turnDeviceNotification {
        display: none;
    }

    .logo {
        margin-top: 18vh;
        width: 90vw;
        height: 10vh;
    }

    .winspins {
        font-size: 5vh;
        line-height: 22px;
        color: #ffffff;
        font-weight: 800;
        font-family: "Montserrat";
        text-align: center;
        margin-bottom: 2.5%;
    }

    
    .dummy-text {
        font-size: 2vh;
        line-height: 22px;
        color: #ffffff;
        font-weight: 700;
        font-family: "Montserrat";
        text-align: center;
    }
    
    .text {
        margin-top: 15vh;
        margin-bottom: 15vh;
    }

    .images {
        display: none;
    }

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

    .tetris-board {
        height: 100vw;
        width: 100vw;
        margin-top: 33vh;
    }

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

    html {
        overflow: hidden;
    }

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

    body {
        background: transparent url("../img/background.jpg") no-repeat center top;
        background-size: cover;
        font-family: 'Montserrat', sans-serif;
        font-weight: 500;
        color: #ffffff;
        width: 100vw;
        min-height: 100vh;
        position: center;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
}

@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: #ffffff;
        width: 100vw;
        min-height: 100vh;
        position: center;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }
    
    .grid {
        display: none;
    }
}
