header {
    text-align: center;
    border-bottom: 1px solid #e8e8e8;
}


body {
    font-family: 'Helvetica', sans-serif;
    font-size: 16px;
    @media only screen and (max-width: 1000px) {
        margin: 0;
        margin-right: 8px;
    }
  }

text, h1, h2, h3 {
    font-weight: 400;

    @media only screen and (max-width: 1000px) {
        margin: 5px;
    }
}

h1 {
    color: #15141A;
    margin: 12.5px;
    @media only screen and (max-width: 1000px) {
        margin: 5px;
        font-size: 1.2em;
    }
}

h2 {
    color: #15141A;
    font-size: 1.05em;
    margin: 7.5px;
    @media only screen and (max-width: 1000px) {
        margin: 5px;
        font-size: 1em;
    }
}

h3 {
    font-size: 1.5em;
    @media only screen and (max-width: 1000px) {
        display: none;
        margin-top: 10px;
        font-size: 1em;
    }
}

footer {
    display:none;
    @media only screen and (max-width: 500px) {
        display: block;
        box-sizing: border-box;
        position: fixed;
        background-color: white;
        left: 0;
        bottom: 0;
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
    }
}

:root {
  --md-elevated-button-container-shape: 0px;
  --md-elevated-button-label-text-font: system-ui;
  --md-sys-color-surface-container-low: #FAFDFC;
  --md-sys-color-primary: #191C1C;
}

.topRightLink {
    position: absolute;
    top: 0;
    right: 0;
    margin: 5px;
    text-align: right;
    @media only screen and (max-width: 1000px) {
        display:none;
    }
}

.center {
    text-align: center;
}

textarea {
    width:95%; 
    height: 80px;
    min-height: 80px;
    max-width: 95%;
    min-width: 95%;
}

#zPlaneDiv
{

    flex-grow: 1;
    @media only screen and (max-width: 1000px) {
        margin-left: 1.25%;
        margin-right: 1.25%;
    }
}

#wPlaneDiv
{
    
    flex-grow: 1;
    @media only screen and (max-width: 1000px) {
        margin-left: 1.25%;
        margin-right: 1.25%;
    }
}

canvas {
    margin-bottom: 50px;
    @media only screen and (max-width: 1000px) {
        margin-bottom: 0px;
    }
}

button {
    margin-top: 5px; 
    margin-bottom: 5px;
    background-color: #ffffff; /* White background */
    border: 1px solid #dadce0; /* Light grey border */
    border-radius: 4px; /* Slightly rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15); /* Subtle shadow */
    transition: background-color 0.2s ease, box-shadow 0.2s ease; /* Smooth hover transition */
  }
  
  button:hover {
    background-color: #f6f9fe; /* Slightly blue on hover */
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.3); /* Stronger shadow */
  }
  
  button:active {
    background-color: #e8f0fe; /* Even darker blue for active state */
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15); /* Original shadow */
  }
  
  button:focus {
    outline: 2px solid #4285f4; /* Blue outline for focus */
    outline-offset: 2px; /* Slight space between button and outline */
  }


#zCanvas
{
    cursor: crosshair; 
    touch-action: none;
	border: 1px solid #000000;
    @media only screen and (max-width: 1000px) {
        float: right;
        grid-column: 1;
        grid-row: 1;
    }
}

#wCanvas
{
	border: 1px solid #000000;
    @media only screen and (max-width: 1000px) {
        float: left;
        grid-column: 2;
        grid-row: 1;
    }
}

#drawingTools
{
    display: grid;
    grid-auto-flow: row;
    grid-template-rows: min-content;
    margin: 10px;
    margin-top: 50px;
    @media only screen and (max-width: 1000px) {
        width: auto;
        min-width: 85px;
        margin: 5px;
        margin-top: 10px;
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: 1fr 1fr;
        grid-auto-flow: column;
    }
}

input[type=radio]
{
    transform: scale(1.5); 
    margin-top: 10px;
    margin-bottom: 10px;
}

#drawingToolRadioDivContainer {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center;
}

#drawingToolRadioDiv
{
    text-align: left;
}

#middleDiv
{
    display: grid;
    grid-template-rows: min-content;
    grid-auto-flow: row;
    margin: 10px;
    margin-top: 20px;
    width: 150px;
    text-align: left;
    @media only screen and (max-width: 1000px) {
        width: auto;
        min-width: 400px;
        margin: 5px;
        grid-column: 2;
        grid-row: 2;
        grid-template-columns: 1fr 1fr;
        grid-auto-flow: column;
    }
}

#zPlaneDiv, #wPlaneDiv {
    margin-top: 10px;
}

#middleDivMain, #middleDivMisc {
    @media only screen and (max-width: 1000px) {
        max-width:150px;
    }
}

#flex-container
{
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: 85px 1fr 170px 1fr;
    max-width: 100%;

    @media only screen and (max-width: 1000px) {
        grid-template-columns: 1fr 1fr;
    }
}

.settings
{
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.settings-content 
{
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
	width: 200px;
}

#real, #imag, #mapping {
    font-size:20px;
}