@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&display=swap');

@media (min-width: 1200px) {
	.cell {
		width: 120px !important;
		height: 120px !important;
	}
	
	.side-controls {
		height: 100% !important;
		justify-content: space-around !important;
	}
}

@media (max-width: 1200px) {
	.game-wrapper {
		display: grid !important;
	}
	
	.side-controls {
		display: grid !important;
		grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        justify-content: space-between !important;
        align-items: start !important;
	}
	
	button span {
		font-size: 2em !important;
	}
	
	.input-container {
		margin: 0 !important;
	}
	
	.game_containers {
		top: 55% !important;
	}
	
	button img {
		width: 250px !important;
	}
	
	.control-container {
		grid-column: 1;
		grid-row: 1;
	}
	
	.take-win-btn {
		grid-column: 1;
		grid-row: 2;
	}
	
	.betting-controls {
		grid-column: 2;
		grid-row: 1 / 4;
	}
	
	.logo-goldengrid {
		width: 135px !important;
		height: 120px !important;
	}
	
	.game_containers_all {
		justify-content: center !important;
		padding-left: 0 !important;
	}
	
	.modal-content h2 {
		font-size: 28px !important;
	}
	
	.modal-content p {
		font-size: 18px !important;
	}
	
	.modal.active {
		padding: 20px;
	}
	
	.modal-content {
		padding: 20px !important;
	}
	
	body {
		height: 100vh;
	}
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
	overflow: hidden;
}

.app {
	display: flex;
}

.cell .content {
	filter: brightness(0.5);
}

.background {
	display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    background: url('../images/back.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: -1;
}

.logo-goldengrid {
    background: url(../images/logo.png) no-repeat;
    background-size: cover;
    width: 300px;
    height: 260px;
}

.background .lights {
	background: url('../images/back_lights.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: -1;
	width: 100%;
    height: 100%;
	transition: all 1s ease-out;
	opacity: 0.2;
}

.background .lights-win {
	background: url('../images/back_lights_win.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	width: 100%;
    height: 100%;
	transition: all 1s ease-out;
	opacity: 0.2;
	animation: fadeInLights 1s forwards ease-in-out;
}

.background .lights-lose {
	background: url('../images/back_lights_lose.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	width: 100%;
    height: 100%;
	transition: all 1s ease-out;
	opacity: 0.2;
	animation: fadeInLights 1s forwards ease-in-out;
}

@keyframes fadeInLights {
    0% { 
		opacity: 0.2; 
	}
	100% { 
		opacity: 1; 
	}
}

.background .lights-active {
	opacity: 1;
}

.background .window-1 {
	background: url('../images/back_window_1.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 7s infinite ease-in-out;
    animation-delay: 5s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-2 {
	background: url('../images/back_window_2.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 8s infinite ease-in-out;
    animation-delay: 3s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-3 {
	background: url('../images/back_window_3.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 7s infinite ease-in-out;
    animation-delay: 6s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-4 {
	background: url('../images/back_window_4.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 9s infinite ease-in-out;
    animation-delay: 8s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-5 {
	background: url('../images/back_window_5.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 11s infinite ease-in-out;
    animation-delay: 8s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-6 {
	background: url('../images/back_window_6.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 6s infinite ease-in-out;
    animation-delay: 9s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-7 {
	background: url('../images/back_window_7.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 9s infinite ease-in-out;
    animation-delay: 7s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-8 {
	background: url('../images/back_window_8.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 8s infinite ease-in-out;
    animation-delay: 2s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-9 {
	background: url('../images/back_window_9.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 7s infinite ease-in-out;
    animation-delay: 4s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-10 {
	background: url('../images/back_window_10.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 10s infinite ease-in-out;
    animation-delay: 3s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-11 {
	background: url('../images/back_window_11.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 10s infinite ease-in-out;
    animation-delay: 5s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-12 {
	background: url('../images/back_window_12.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 5s infinite ease-in-out;
    animation-delay: 1s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-13 {
	background: url('../images/back_window_13.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 9s infinite ease-in-out;
    animation-delay: 1s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-14 {
	background: url('../images/back_window_14.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 8s infinite ease-in-out;
    animation-delay: 2s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-15 {
	background: url('../images/back_window_15.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 5s infinite ease-in-out;
    animation-delay: 4s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-16 {
	background: url('../images/back_window_16.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 7s infinite ease-in-out;
    animation-delay: 1s;
	transition: all 1s ease-out;
	width: 100%;
    height: 100%;
}

.background .window-17 {
	background: url('../images/back_window_17.png');
    background-size: cover;
    background-position: center;
	position: absolute;
    z-index: 0;
	opacity: 0;
	animation: fadeInOut 8s infinite ease-in-out;
    animation-delay: 3s;
	transition: all 1s ease-out infinite;
	width: 100%;
    height: 100%;
}

@keyframes fadeInOut {
    0% { 
		opacity: 0; 
	}
    20% { 
		opacity: 1; 
	}
	80% { 
		opacity: 1; 
	}
	100% { 
		opacity: 0; 
	}
}

.game_containers_all {
	width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    flex-direction: row;
    overflow: hidden;
    padding-left: 20px;
}

.game_containers {
	display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.input-container {
    display: flex;
    flex-direction: row;
    align-items: center;
	justify-content: center;
    gap: 1em;
    margin: 10px 0 20px 0;
    width: 100%;
}

.btn-clear {
    background: url('../images/Clear.png') no-repeat;
    background-size: contain;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    padding: 20px;
    transition: background 0.3s;
}

.control-container {
	display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.btn-control_label {
	color: #000;
}

.btn-control {
    background: url('../images/control.png') no-repeat;
    background-size: contain;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    padding: 20px;
    transition: background 0.3s;
}

.btn-control_sound {
	background: url('../images/mute.png') no-repeat;
	background-position: center;
	height: 100%;
    width: 100%;
}

.btn-control:hover {
    transform: scale(1.02);
}

.btn-clear:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: scale(0.98);
}

.bet-container {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 0.5em;
    width: 100%;
    justify-content: center;
}

.btn-bet {
    background: url('../images/Bet.png') no-repeat;
    background-size: contain;
    text-transform: uppercase;
    color: #ffffff;
    cursor: pointer;
    padding: 30px;
    transition: background 0.3s;
}

.btn-bet:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: scale(0.98);
}

.goldengrid-popup {
	background: linear-gradient(#3b1d00, #2b1200);
    padding: 40px;
    border-radius: 20px;
    border: 4px solid #ffb300;
    box-shadow: 0 0 30px #ff9900aa;
    text-align: center;
    max-width: 800px;
    display: flex;
    font-family: 'Montserrat', sans-serif;
    color: #fff7d6;
    position: relative;
    transition: transform 0.3s;
    flex-direction: column;
    justify-content: center;
}

.goldengrid-popup__body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 2.125em;
}

.goldengrid-popup__heading {
    background: url(../images/logo.png) no-repeat;
    background-size: cover;
    width: 150px;
    height: 120px;
}

.goldengrid-popup__title {
	margin-block-start: 0.83em;
    margin-block-end: 0.83em;
}

.goldengrid-popup__content {
    padding-right: 1.875em;
    padding-left: 1.875em;
    margin-top: 1.125em;
}

.goldengrid-popup__subheading, .goldengrid-popup__msg {
    text-transform: uppercase;
}

.goldengrid-popup__subheading {
    margin-top: 0;
    margin-bottom: .9375em;
}

.goldengrid-popup__subheading, .goldengrid-popup__list, .goldengrid-popup__title, .goldengrid-popup__msg {
    color: #fff;
}

.goldengrid-popup__list {
    padding-left: 0;
    text-align: left;
}

.goldengrid-popup__msg {
    margin-top: 1em;
    margin-bottom: 1em;
}

.goldengrid-popup__extra {
    display: block;
    font-size: .875em;
    color: #ffb300;
}

.goldengrid-popup__close {
    background: linear-gradient(to bottom, #ffd700, #ff9900);
    border: 3px solid #c07500;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 18px;
    color: #3b1d00;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px #a35e00;
}

.s-vue-modal {
    position: absolute;
}

.s-vue-modal .v--modal-overlay {
    z-index: 1003;
    overflow: auto;
    background: rgba(0,0,0,.7);
}

.s-vue-modal .v--modal-background-click {
    display: flex;
    align-items: center;
    justify-content: center;
}

.v--modal-overlay .v--modal-background-click {
    width: 100%;
    min-height: 100%;
    height: auto;
}

.v--modal-top-right {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

.v--modal-overlay {
    position: fixed;
    box-sizing: border-box;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    opacity: 1;
}

.v--modal-overlay .v--modal-box {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.s-vue-modal .v--modal-box {
    top: auto !important;
    top: initial !important;
    left: auto !important;
    left: initial !important;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    overflow: visible !important;
    box-shadow: none;
}

.adaptive-container {
    transform-origin: left top;
    display: flex;
    justify-content: center;
    align-items: center;
}

.adaptive-container {
    background: none;
	overflow: hidden;
}

.goldengrid__adaptive {
    position: absolute;
	align-items: flex-start;
}

.goldengrid__adaptive {
    top: 0;
    left: 0;
}

.game-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    outline: 3px solid #180803;
    outline-offset: 0px;
    backdrop-filter: blur(10px);
    background: #2b140af2;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border: 4px solid #87430a;
}

.game-wrapper {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 20px;
}

.game-field {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
	height: 100%;
    gap: 5px;
    padding: 25px;
    background: #270c04d9;
    border-radius: 15px;
    box-shadow: 0 0 8px 4px rgb(26 6 1), inset 0 0 15px 5px rgb(18 6 1);
    position: relative;
}

.game-field.inactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(26 7 1 / 60%);
    border-radius: 15px;
    z-index: 3;
    pointer-events: none;
}

.cell {
    width: 100px;
    height: 100px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.inactive .cell {
    cursor: not-allowed;
    filter: brightness(0.7);
}

.cell img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cell:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.inactive .cell:hover {
    transform: none;
    filter: brightness(0.7);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.side-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    background: #331208d9;
    border-radius: 15px;
    outline: 4px solid #180803;
    outline-offset: 1px;
    border: 4px solid #87430a;
    box-shadow: 0 0 8px 4px rgb(26 6 1), inset 0 0 15px 5px rgb(18 6 1);
    justify-content: center;
	align-items: center;
}

.coefficient-display {
    position: relative;
    width: 80px;
    height: 80px;
    transition: transform 0.3s;
}

.coefficient-display img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.current-coefficient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.betting-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.bet-amount {
    padding: 10px;
    font-size: 18px;
    width: 150px;
    border: 2px solid #834b22;
    background: #230f05;
    box-shadow: inset 0 0 10px 3px rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    border-radius: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
}

/* Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.bet-amount:focus {
    border-color: #f58f0c;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    outline: none;
}

button {
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: scale(0.98);
}

button:not(:disabled):hover {
    transform: scale(1.02);
}

button img {
    width: 200px;
    height: auto;
    border-radius: 8px;
}

button span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
	font-family: "Cal Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5em;
}

input {
	font-family: "Cal Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5em;
}

.coefficient-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	font-family: "Cal Sans", sans-serif;
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 2;
}

.cell .reveal-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Модальное окно */
.modal {
    visibility: hidden;
	display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal.active {
    visibility: visible;
}

.modal-content {
    background: linear-gradient(#3b1d00, #2b1200);
    padding: 40px;
    border-radius: 20px;
    border: 4px solid #ffb300;
    box-shadow: 0 0 30px #ff9900aa;
    text-align: center;
    max-width: 450px;
    height: 250px;
    display: flex;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    color: #fff7d6;
    position: relative;
    transform: scale(0);
    transition: transform 0.3s;
    flex-direction: column;
    justify-content: center;
}

.modal .active {
    transform: scale(1);
}

.modal-text {
    font-size: 36px;
	color: #ffaa00;
	margin: 0 0 10px;
}

.modal-content h2 {
  font-size: 36px;
  color: #ffaa00;
  margin: 0 0 10px;
}

.modal-content p {
  font-size: 20px;
  margin: 0 0 50px;
}

.modal-content .amount {
  font-weight: bold;
  color: #fff;
}

.modal-message {
    color: white;
    font-size: 20px;
	margin: 0 0 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.modal-close {
    background: linear-gradient(to bottom, #ffd700, #ff9900);
    border: 3px solid #c07500;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 18px;
    color: #3b1d00;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 4px #a35e00;
}

.modal-close:hover {
    transform: scale(1.05);
}
