:root {
    --light-gray: #B1AFAF;
    --dark-gray: #605F5E;
    --yellow: #F0A202;
    --dark-blue: #0A2463;
    --sky-blue: #51CBFF;
    --mid-blue: #247BA0;
    --pink: #FDCFF3;
    --background-settings: #cacaca;
    --lighter-gray: #cacaca;
}

html, body {
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */

    background-color: var(--mid-blue);
    height: 100vh;
    position: fixed;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.monospaceText {
    font-family: monospace;
}

.link {
    font-size: larger;
    /* box-shadow:inset -6px 1px 0px -18px #ffffff; */
	/* background:linear-gradient(to bottom, #ffffff 5%, #f6f6f6 100%); */
	/* background-color:#ffffff; */
	/* border-radius:7px; */
	/* border:3px solid #666666; */
	display:inline-block;
	cursor:pointer;
	color:#000d19;
	font-family:Arial;
	font-size:larger;
	font-weight:bold;
    text-align: center;
	padding:12px 24px;
	text-decoration:none;
    line-height: 30px;
	text-shadow:-2px 3px 5px #9e9e9e;
}

#currentRuleContainer {
    width: 50%;
    margin: 0 auto;
}

#currentRule {
    text-decoration: none;
    font-family: sans-serif;
    font-size: larger;
    font-weight: bold;
    text-align: center;
    color: #a81515;
    padding: 10px 0px 0px 0px;
    /* word-wrap: break-word; */
    /* width: 50%; */
    text-align: center;
}

.no-touch {
    touch-action: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.container {
    display: grid;
    grid-template-columns: 65% auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "perspective flatview"
        "perspective controls";
    width: 100vw;
    height: 100vh;
    background: var(--mid-blue); /*linear-gradient(140deg, var(--dark-blue) 10%, var(--sky-blue) 100%) fixed;*/
}


.controls {
    overflow-x: hidden;
    display:flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: baseline;
    align-items: center;
    /* padding-top: 30px; */
    padding: 30px;
    margin: 0;

    background-color: var(--lighter-gray);
    grid-area: controls;
}
.perspective {
    display:flex;
    flex-direction: column;
    justify-content: baseline;
    align-items: center;
    padding: 5px 5px 5px 5px;
    /* padding-left: 5px;
    padding-right: 5px; */

    /* background-color: rgb(0, 110, 255); */
    grid-area: perspective;
}
.flatview { 
    display:flex;
    flex-direction: column;
    justify-content: baseline;
    align-items: center;
    padding:5px;

    /* background-color: rgb(0, 110, 255); */
    grid-area: flatview;
}

#canvas3D {
    width: 100%;
    height: 99%;
    /* max-height: min-content;
    max-height: width; */
    background:rgb(56, 56, 56);
}
#canvas2D {
    width: 100%;
    height: auto;
    background:rgb(56, 56, 56);
}


.instructions {
    /* font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; */
    font-family:sans-serif;
    font-size:larger;
    font-weight:bold;
    text-align:center;
    color:#000000;
    border-width:1px;
    border-color:#000000;
    border-style:solid;
    border-radius:5px;
    background-color:#ffffff;
    padding: 10px;
     /* 0px 10px 0px */
}
.sceneSettings {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 20px 20px 300px 20px;
}

.scene {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    padding: 20px;
    background-color: var(--background-settings);
}
.walls {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 10px;
    padding: 20px;
    background-color: var(--background-settings);
}
.general {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    padding: 20px;
    background-color: var(--background-settings);
}

.sectionText {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    letter-spacing: 0px;
    word-spacing: 2px;
    color: #000000;
    font-weight: 700;
    /* text-decoration: underline rgb(68, 68, 68); */
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    padding: 20px 5px 20px 5px;
    width: 100%;
    background-color: white;
}

.expand {
    position: fixed;
    bottom: 0px;
    right: 0px;
    font-family:sans-serif;
    font-size:small;
    font-weight:bold;
    text-align:center;
    color:#000000;
    border-width:2px;
    border-color:#000000;
    border-style:solid;
    border-radius:5px;
    background-color:#ffffff;
    padding: 2px 2px 2px 2px;
}

.divTable{
	display: table;
	width: 90%;
}
.divTableRow {
	display: table-row;
}
.divTableHeading {
	background-color: #EEE;
	display: table-header-group;
}
.divTableCell, .divTableHead {
	display: table-cell;
	padding: 3px 10px;
    text-align: right;
    vertical-align: middle;
    

	font-family:Arial;
	font-size:20px;
	font-weight:bold;
	/* font-style:italic; */
	padding:12px 24px;
	text-decoration:none;
	text-shadow:-2px 3px 4px #bdbdbd;
	box-shadow:inset -6px 1px 0px -18px #ffffff;
}

.divTableColor {
	border-top: 1px solid #999999;
	border-bottom: 1px solid #999999;
	background:linear-gradient(to bottom, #ffffff 5%, #f6f6f6 100%);
	background-color:#ffffff;
}

.divTableHeading {
	background-color: #EEE;
	display: table-header-group;
	font-weight: bold;
}
.divTableFoot {
	background-color: #EEE;
	display: table-footer-group;
	font-weight: bold;
}
.divTableBody {
	display: table-row-group;
}

.miniImg {
    height: auto;
    width: 30%;
    padding-left: 30px;
    margin: auto;
}

.miniDiv {
    display: flex;
    row-gap: 200px;
    flex-direction: row;
}

input[type="color"] {
    -webkit-appearance: none;
    width: 100%;
    height: 40px;
    border: solid 3px rgba(179, 179, 179, 0.5);
    border-radius: 5%;
    padding: 0;
    overflow: hidden;
    box-shadow: 2px 2px 5px rgba(0,0,0,.1);
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
}

@media screen and (max-width: 1300px) and (min-width: 800px) {
    .container {
        grid-template-columns: 60% auto;
    }
}
@media (max-width: 850px) {
    #canvas3D {
        max-height: 400px;
    }
    .container {
        display: grid;
        grid-template-columns: 65% auto;
        grid-template-rows: 65% auto;
        grid-template-areas:
            "perspective flatview"
            "controls controls";
        width: 100vw;
        height: 100vh;
        background: var(--mid-blue);
    }

    .divTableCell, .divTableHead {
        display: table-cell;
        padding: 3px 10px;
        text-align: right;
        vertical-align: middle;
        

        font-family:Arial;
        font-size:15px;
        font-weight:bold;
        /* font-style:italic; */
        /* padding:12px 24px; */
        text-decoration:none;
        text-shadow:-2px 3px 4px #bdbdbd;
        box-shadow:inset -6px 1px 0px -18px #ffffff;
    }
}

@media (max-width: 850px) and (max-height: 550px) {
    .container {
        display: grid;
        grid-template-columns: 65% auto;
        grid-template-rows: 85% auto;
    }
}


#title {
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    background-color: white;
    padding: 10px 0px 10px 0px;
}

@media screen and (max-height: 550px) {
    #title {
        display: none;
    }
}
