@import url('https://fonts.googleapis.com/css?family=Roboto');
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono');

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

a {
	color: #283593;
	text-decoration: none;
}

h3 {
	margin-top: 12px;
}

body {
	background-color: #0f0f0f;
	font-family: 'Roboto', sans-serif;
	min-height: 100vh;
	overflow-x: hidden;
}

main {
	border-radius: 20px;
	background-color: #434343;
	margin: 30px auto 20px;
	padding: 20px 15px;
	width: 90%;
	max-width: 550px;
	position: relative;
	z-index: 1;
}
section#status{
	margin-bottom: 25px;
	padding-top: 10px;
	padding-bottom: 15px;
	border-radius: 20px;
	text-align: center;
	background-color: #3789C2;
	color: #FFFFFF;
	font-size: 25px;
	font-family: 'Roboto Mono', monospace;
}
section#Slots {
	border-radius: 15px;
	background-color: #FAFAFA;
	height: 200px;
	border: 10px solid #9e9e9e;
	display: flex;
	justify-content: center;
	align-items: center;
	white-space: nowrap;
	overflow: hidden;
	margin: 0 auto;
}
section#Gira {
	margin: 25px auto 0;
	border-radius: 100%;
	text-align: center;
	background-color: #b41828;
	color: #FFFFFF;
	font-size: 25px;
	width: 100px;
	height: 100px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: bold;
	border: 8px solid #791f28;
	cursor: pointer;
	transition: all 0.3s ease;
}
section#Gira:hover{
	background-color: #961522;
    cursor: pointer;
}
section#options{
	margin-top: 20px;
	padding-top: 5px;
	border-radius: 5px;
	color: #FFFFFF;
    
}
.option{
	padding-left: 5px;
    height: 50px;
    width: auto;
    margin-bottom: 10px;
    margin-top: auto;
}

.option:hover{
    cursor: pointer
}
#slot1, #slot2, #slot3 {
	display: inline-block;
	margin: 0 5px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	width: 100px;
	height: 100px;
	flex-shrink: 0;
}


.bottom{
    display: flex;
}

#my-canvas{
	position: fixed;
	top: 0;
	Left: 0;
	width: 100%;
	height: 100vh;
	z-index: -1;
	visibility: hidden;
}
#my-canvas.active{
	visibility: visible;
}

.home-link {
	text-decoration: none;
}

.home-button {
	margin: 10px 0;
	border: none;
	background-color: #2c2c2c;
	color: #ffffff;
	border-radius: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px 20px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.home-button:hover {
	background-color: #202020;
	transform: scale(1.05);
}
  
/* Удален неиспользуемый стиль для userName */
  
.usuario {
	display: flex;
	padding: 0 10px;
	border-radius: 40px;
	background-color: #434343;
	width: fit-content;
	margin: 20px auto 0;
	border: 2px solid transparent;
}

.stats {
	margin: 30px auto 20px;
	width: 90%;
	max-width: 300px;
	border-radius: 20px;
	background-color: #606060;
	position: relative;
}

.stats-title {
	color: #ffffff;
	background-color: #400D12;
	width: fit-content;
	padding: 10px 20px;
	border-radius: 20px;
	text-align: center;
	margin: 10px auto;
	font-size: 18px;
}

.stats-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding: 10px;
}

#score, #wins {
	font-size: 18px;
	background-color: #2c2c2c;
	padding: 8px 16px;
	border-radius: 20px;
	color: #FFFFFF;
	margin: 0;
}

/* Удалены стили для LEADERBOARD */

.a1{
	background-image: url("src/tiles/seven.png");
}
.a2{
	background-image: url("src/tiles/cherries.png");
}
.a3{
	background-image: url("src/tiles/club.png");
}
.a4{
	background-image: url("src/tiles/diamond.png");
}
.a5{
	background-image: url("src/tiles/heart.png");
}
.a6{
	background-image: url("src/tiles/spade.png");
}
.a7 {
	background-image: url("src/tiles/joker.png");
}

/* Мобильные устройства */
@media (max-width: 768px) {
	main {
		margin: 15px auto;
		padding: 15px 10px;
		width: 95%;
	}
	
	section#status {
		font-size: 20px;
		padding: 8px 12px;
	}
	
	section#Slots {
		height: 150px;
		border-width: 8px;
	}
	
	#slot1, #slot2, #slot3 {
		width: 80px;
		height: 80px;
		margin: 0 3px;
	}
	
	section#Gira {
		width: 80px;
		height: 80px;
		font-size: 20px;
		border-width: 6px;
	}
	
	.stats {
		margin: 20px auto;
		width: 95%;
	}
	
	.stats-title {
		font-size: 16px;
		padding: 8px 16px;
	}
	
	#score, #wins {
		font-size: 16px;
		padding: 6px 12px;
	}
	
	/* Удалены стили для scores, first, second, third */
	
	.usuario {
		margin: 15px auto 0;
		padding: 0 8px;
	}
	
	.home-button {
		padding: 10px 16px;
		font-size: 13px;
	}
	
	.option {
		height: 40px;
	}
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
	main {
		margin: 10px auto;
		padding: 10px 8px;
		width: 98%;
	}
	
	section#status {
		font-size: 18px;
		padding: 6px 10px;
	}
	
	section#Slots {
		height: 120px;
		border-width: 6px;
	}
	
	#slot1, #slot2, #slot3 {
		width: 60px;
		height: 60px;
		margin: 0 2px;
	}
	
	section#Gira {
		width: 70px;
		height: 70px;
		font-size: 18px;
		border-width: 5px;
	}
	
	.stats {
		width: 98%;
		margin: 15px auto;
	}
	
	.stats-title {
		font-size: 14px;
		padding: 6px 12px;
	}
	
	#score, #wins {
		font-size: 14px;
		padding: 4px 8px;
	}
	
	/* Удалены стили для scores, first, second, third */
	
	.usuario {
		margin: 10px auto 0;
		padding: 0 6px;
	}
	
	.home-button {
		padding: 8px 12px;
		font-size: 11px;
	}
	
	.option {
		height: 35px;
	}
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
	main {
		margin: 10px auto;
		padding: 10px;
	}
	
	section#Slots {
		height: 100px;
	}
	
	#slot1, #slot2, #slot3 {
		width: 70px;
		height: 70px;
		margin: 0 3px;
	}
	
	section#Gira {
		width: 70px;
		height: 70px;
		font-size: 18px;
	}
	
	.stats {
		margin: 10px auto;
	}
}