/* 
Protractor CSS
--------------------------------------- */
body, html { overflow-x: hidden; }
body {
    font-size: 1em;
    line-height: 1.4;
	background: radial-gradient(circle at 20% 30%, #dbe9ff 0%, transparent 40%),
            radial-gradient(circle at 80% 70%, #eaf2ff 0%, transparent 40%),
            #f7faff;
	background-repeat: repeat;
    font-family: "Open Sans", Roboto, Arial, sans-serif;
    font-style: normal; 
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}


.top_titlebar
{
    align-items: center;
    height: 50px;
    width: 100%;
    border-bottom:#155726 2px solid;
    box-shadow: #155726 ;
}

.top_btn
{
    margin-top: 5px;
    display: flex;
    text-align: center;
    align-items: center;
    background-color: #155726 ; 
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 2em;
    color: white;
    
}
.game-name
{
    align-items: center;
    display: flex;
    justify-content: center;
}

.setting-section
{
    height: 130px;
    width: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vertical-center
{
    margin-top: 40px;
    align-items: center;
    display: flex;
    justify-content: center;

}

.canvas-area
{
    align-items: center;
    display: flex;
    justify-content: center;
}

.resultsBarLabel {
    font-size: 9px;
    margin-top: 0px;
}
#resultsBar {
    height: 50px;
    margin: 10px auto 20px auto;
    max-width: 800px;
}

#scoreColumn {
    width: 90px;
    float: left;
}
#txtScore{
    font-family: Consolas, "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", Monaco, "Courier New", "monospace";
    font-size: 30px;
    font-weight: bold;
    height: 30px;
}
 #timerColumn {
    float: left;
    width: 40px;
}
#timerCanvas {
    height: 30px;
    width: 30px;
}
#levelColumn {
    float: left;
    width: 80px;
}
#levelCanvas {
    height: 30px;
    width: 70px;
}
#strikesColumn {
    float: left;
    width: 100px;
}            
#txtStrikes {
    height: 30px;
}
#txtStrikes img {
    height: 30px;
    width: 30px;
}                        
.resultsBarLabel {
    font-size: 9px;
    margin-top: 0px;
}
#timerColumn .resultsBarLabel,
#levelColumn .resultsBarLabel {
    margin-top: -4px;
}


#questionBar {
    position: absolute;
	top: 20px;
    height: 60px;
    line-height: 1;
    width: 100%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    display: none;
}

#txtQuestion {
    width: 100%;
    text-align: center;
    height: 60px;
}
#txtQuestion .questionInstruction{
    font-size: 20px;
    font-weight: bold;
    color: #000000;                
}
#txtQuestion .questionMeasurement{
    font-size: 30px;
    font-weight: bold;
    color: #000000;               
}
#txtQuestion .questionWrongInstruction{
    font-size: 20px;
    font-weight: bold;
    color: #f44336;                
}
#txtQuestion .questionWrongMeasurement{
    font-size: 30px;
    font-weight: bold;
    color: #f44336;               
}
#txtQuestion .questionSubInstruction{
    font-size: 16px;
    font-weight: bold;
    color: #1e88e5;
}
#txtQuestion .gameOver{
    font-size: 35px;
    font-weight: bold;
    color: #f44336; 
}            


#myCanvas
{
    width: 100%;
}

#strikeBoard {
    margin-top: -250px;
    position: absolute;
    height: 80px;
    width: 240px;
    display: none;
    z-index: 3;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}
#strikeBoard img {
    float: left;
    height: 60px;
    width: 60px;
}
#cheerBoard {
    position: absolute;
    height: 60px;
    width: 310px;
    margin-top: -60px;
    display: none;
    z-index: 4;
    text-align: center;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);      
    font-family: "Mukta"          
}

.cheer{
    position: absolute;
    width: 100%;
    height: 60px;
    max-height: 60px;
    padding-top: 15px;
    font-size: 30px;
    color: purple;
    bottom: 0px;
}
.level {
    margin-top: 150px;
    position: absolute;
    width: 100%;
    height: 60px;
    max-height: 60px;                
    font-size: 50px;
    font-weight: 900;
    color: darkblue;
    bottom: 0px;
}

.settingsLabel {
    width: 150px;
}

#preferencesBox {
    width: 315px;
    margin: auto;
    margin-top: 60px;
    overflow: auto;
    display: none;
    z-index: 5;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);                  
}
#timerBox, #soundsBox, #questionTypeSelection
{
    height: 45px;

}


#buttonBar {
    position: absolute;
    height: 60px;
    width: 300px;
    margin: 0px auto 0px auto;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);                
}

#btnStart,
#btnSettings {
  background-color: #339966;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 6px,
    transparent 6px,
    transparent 12px
  );
  color: white;
  border: 0;
  border-radius: 5px;
  height: 40px;
  width: 140px;
  font-size: 24px;
  margin: 10px auto;
  cursor: pointer;
}
#btnSettings {
    float: right;
}

#btnSubmit
{
  background-color: #339966;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.08) 6px,
    transparent 6px,
    transparent 12px
  );
  color: white;
  border: 0;
  border-radius: 5px;
  height: 40px;
    width: 210px;
    font-size: 24px;
    cursor: pointer;
    left: 50%;
}

#submitColumn
{
    margin-left: auto;
    margin-right: auto;
}

#displayBoard
{
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}


#detailedControl
{
    height: fit-content;
}

#angleControl
{
    position: relative;
    width: 80px;
    border: solid 1px lightgrey;
}

/* In Set mode, we hide the numeric "reading" but keep the value for scoring */
#angleInput.hide-angle-reading #angleControl {
    display: none;
}

/* In Measure mode, hide +/- buttons - use number pad instead (same as other games type mode) */
#angleInput.measure-mode-numberpad .number-input {
    display: none;
}

/* --- Type canvas styles (same as dial caliper game) --- */
#canvasArea > div:has(#typeCanvas[height="0"]) {
    display: none;
}

#typeCanvas {
    display: block;
    margin: 0 auto;
    background-color: white;
}

#typeCanvas[height="0"] {
    display: none;
}

#instructionsBox {
max-width:1100px;
margin:auto;
}

#btnStart:hover,
#btnSettings:hover,
#btnSubmit:hover {
    background-color: #127041;
}

#btnSubmit:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

#btnSubmit:disabled:hover {
    box-shadow: none !important;
}

.natspinner {
    width: 24px;
    height: 24px;
    border: 5px solid #000000;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
    }

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-input {
  display: flex;
  font-weight: bold;
}

input {
  width: 30px;
  border: solid 1px lightgrey;
  border-radius: 0;
  text-align: center;
}

.spinner {
  border: solid 1px lightgrey;
}

#btnangledecrement
{
    width: 45px;
    text-align: center;
    padding-left: 0px;
    padding-right: 0px;
	margin:0 5px 10px 0;
}
#btnangleincrement
{
    width: 45px;
    text-align: center;
    padding-left: 0px;
    padding-right: 0px;
	margin:0 0 10px 5px;
}

.spinner:hover {
  background: lightgrey;
}

.spinner:first-child {
  border-radius: 7px 0 0 7px;
}

.spinner:last-child {
  border-radius: 0 7px 7px 0;
}

