html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f3f3f3;
}

.container-fluid {
    height: auto; /* Let it grow if needed */
    overflow-y: auto;
}


.panel {
    overflow-y: auto;
}
.panel-heading {
    background-color: #343a40;
    color: white;
}
.panel-body {
    padding: 15px;
}

#threeContainer {
    height: 100vh;  /* Full viewport height */
    position: fixed;
    bottom: 0;
    z-index: 99;
    width: -webkit-fill-available;
    background-color: #FFF;
}


.note{
    font-size: 0.8em;
    color: #6c757d;
}
.note a {
    color: #007bff;
    text-decoration: none;
}

.clear {
    clear: both;
}


.btn {
    border-radius: 1em;
    padding: 0.2em 0.8em;
    box-shadow: 0 2px 5px #adadad;
}
    .btn-xs {
        box-shadow: none;
        border: none;
    }
    .btn-xs:focus{
        border: none;
    }

.buttons {
    width: 7.25em;
    height: 7.25em;
    border: 1px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #333333;
}
.snakes, .ladders {
	font-size: 4em;
    margin-top: -0.1em;
	text-shadow: 0px 2px 3px #33333394;
}
@media (max-width: 1200px){
	.buttons {
		width: 7em;
		height: 7em;
	}
}
@media (max-width: 1100px){
	.buttons {
		width: 6em;
		height: 6em;
	}
}
@media (max-width: 920px){
	.buttons {
		width: 5em;
		height: 5em;
	}
}
@media (max-width: 768px){
	.buttons {
		width: 4em;
		height: 4em;
	}
}
/* If mobile portrait make the canvas fixed at bottom of screen */
@media (max-width: 768px) and (orientation: portrait) {
    #threeContainer {
        position: fixed;
        top: 0;
        bottom: auto;
        left: 0;
        right: 0;
        height: 55vh; 
        box-shadow: 0px 2px 7px 1px rgba(94,94,94,0.5);
        -webkit-box-shadow: 0px 2px 7px 1px rgba(94,94,94,0.5);
        -moz-box-shadow: 0px 2px 7px 1px rgba(94,94,94,0.5);
    }
    /* Make extra room at bottom of page for hidden content behind canvas to scroll into view */
    .panel {
        padding-top: 56vh; /* Same as canvas height */
    }
	
}
@media (max-width: 640px){
	.buttons {
		width: 3em;
		height: 3em;
	}
	.snakes, .ladders {
		font-size: 3em;
	}
	#threeContainer {
		height: 50vh; 
	}
	.panel {
        padding-top: 50vh; /* Same as canvas height */
    }
}
@media (max-width: 420px){
	.buttons {
		width: 4em;
		height: 4em;
	}
}

/* https://www.w3schools.com/css/css3_buttons.asp */
.button {
	background-color: #4CAF50; /* Green */
	border: none;
	color: white;
	padding: 15px 32px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
	font-size: 16px;
	width: 100%;
}


.parent-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1em;
}

/* Apply alternating colors for the chessboard pattern */
.rows:nth-of-type(even) .buttons:nth-of-type(odd),
.rows:nth-of-type(odd) .buttons:nth-of-type(even) {
    background-color: #c1cde6; /* light gray */
}
.rows:nth-of-type(odd) .buttons:nth-of-type(odd),
.rows:nth-of-type(even) .buttons:nth-of-type(even) {
    background-color: #91a8d7; /* light gray */
}

/* last .rows of .parent-div */
.parent-div .rows:last-of-type {
	margin-bottom: 1em; /* Add space at the bottom */
	box-shadow: 0px 4px 4px 0px rgba(94,94,94,0.5);
}

.rows {
    display: flex;
}


.dice-game {
    align-items: center;
    gap: 15px;
}

.active {
    background-color: #eeba49 !important;
}

#diceX {
    background-size: 84px;
    background-position: center;
    border-radius: 13px;
    width: 80px;
    height: 80px;
    border: none;
    box-shadow: 0px 2px 2px #a9a9a9;
}
#dice, .dice {
	color: #FFF;
    text-shadow: 4px 4px 12px Black;

}
.dice-borderX {
    border-radius: 50%;
    padding: 1.5em;
    padding-top: 2em;
    color: #FFF;
    background-color: #000;
    height: 9em;
    width: 9em;
    margin: auto;
}

#console{
	overflow:auto;
	border:4px solid black;
	padding:0;
	font-family: monospace;
	text-align: center;
	max-height: 10em;
	background-color: #FFF;
}
#console hr {
	margin: 0.2em 0;
	padding: 0;
}

/* Initial highlight */
.console-line.new {
    background-color: #f3f094;
    color: #000000;
    font-weight: bold;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

/* Final state after transition */
.console-line {
    background-color: transparent; /* valid way to remove background color */
    color: #000;
    font-weight: normal;
    transition: background-color 0.5s ease-in-out, color 0.5s ease-in-out;
	padding: 0.2em 0.5em;
}