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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI";
    color: #1f2a37;
    background: #111827;
	flex-direction: column;
	
}
.naslov1{
	padding-bottom:30px;
}
.glavni{
	display: flex;
	flex-direction: row;
	gap: 30px;
	
}
.desna{

	width: 300px;

	height: auto;
	box-shadow: 0 20px 50px rgba(37, 99, 235, 0.16);
}

.zgornji{
	width: 100%;
	height: 50%;
	border: 1px solid black;
	border-collapse: collapse;
}
.spodnji{
	width: 100%;
	height: 50%;
	border: 1px solid black;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
}
.best-box{
	width: 100%;
	padding: 14px;
	border: 1px solid black;
	background: #111827;
	text-align: center;
}
.best-label{
	display: block;
	margin-bottom: 6px;
	color: #5682AA;
	font-weight: bold;
}
#bestScore{
	font-size: 28px;
	font-weight: bold;
}
.container {
    padding: 18px;
    border: 1px solid black;
    
    background: #111827;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.16);
	
}

.game-header {
    margin-bottom: 14px;
    text-align: center;
}

.naslov {
    color: #5682AA;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}
.naslov:hover {
    opacity: 0.85;
}

.hud {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.kocke {
    padding: 10px 12px;
    width: 150px;
    border: 1px solid black;
   
    background: #111827;
    text-align: center;
}

.hud-label {
    display: block;
    margin-bottom: 4px;
    color: #5682AA;
    font-weight: bold;
}

mark {
    padding: 0;
    background: transparent;
    color: white;
}

.gumbi{
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	width: 100%;
	height: 100%;
	align-items: stretch;
	justify-content: center;
}
.gumbi button{
	width: 100%;
	margin: 0 !important;
}

#canvas {
    display: block;
    width: 720px;
    height: auto;
    margin: 0 auto;
    border: 1px solid black;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}
#startBtn {
    margin-top: 10px;
    padding: 10px 18px;
    border: none;
    background: #5682AA;
    color: white;
    font-weight: bold;
    cursor: pointer;
	
}


#startBtn:hover {
    opacity: 0.9;
}
#resetBtn {
    margin-top: 10px;
    margin-left: 8px;
    padding: 10px 18px;
    border: none;
  
    background: #5682AA;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
#resetBtn:hover {
    opacity: 0.9;
}
#pauseBtn {
    margin-top: 10px;
    margin-left: 8px;
    padding: 10px 18px;
    border: none;
   
    background: #5682AA;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#pauseBtn:hover {
    opacity: 0.9;
}

#instructionsBtn {
    margin-top: 10px;
    margin-left: 8px;
    padding: 10px 18px;
    border: none;
   
    background: #5682AA;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

#instructionsBtn:hover {
    opacity: 0.9;
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  