/* latin-ext */
@font-face {
  font-family: 'Alegreya Sans SC';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/alegreyasanssc/v26/mtGm4-RGJqfMvt7P8FUr0Q1j-Hf1Du5D4i1hMLJ_.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Alegreya Sans SC';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/alegreyasanssc/v26/mtGm4-RGJqfMvt7P8FUr0Q1j-Hf1Du5D4iNhMA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Rubik Marker Hatch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/rubikmarkerhatch/v1/QldTNSFQsh0B_bFXXWv6LAt-jswapJHgBbQj80E.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Rubik Marker Hatch';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/rubikmarkerhatch/v1/QldTNSFQsh0B_bFXXWv6LAt-jswapJHgC7Qj.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* latin */
@font-face {
  font-family: 'Lacquer';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/lacquer/v16/EYqzma1QwqpG4_BBN7iKXw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/rubik/v31/iJWKBXyIfDnIV7nPrXyi0A.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/rubik/v31/iJWKBXyIfDnIV7nBrXw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


a:link                         {color: aqua}
a:visited                      {color: aqua}
a:focus, a:hover, a:active     {color: #cf0021}

body {
  margin: 0;            /* REQUIRED */

  font-family: "Rubik";
  font-size: 1em;

  background-color: #101010;
  color: #C0C8CF;
  /*margin: 0em 0em 0em 0em;*/
}

/*html,
input,
textarea,
button,
select {
    cursor: url("chalk.png") 4 4, auto;
}*/

/* PAGE GRID: 5 rows */
.layout {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  height: 100vh;
  min-height: 0;        /* REQUIRED */
}

h1, h2 {
  font-weight: normal;
  font-family: "Rubik Marker Hatch";
  margin: 3px;
}

h1 {
  font-size: 1.5em;
}

h2 {
  font-size: 1.2em;
}

header, .row2 {
  margin: 0;            /* REQUIRED */
  padding: 0 0 0 0;           /* OPTIONAL but safe */
  display: flex;
  justify-content: center;   /* centers the button */
  align-items: center;
  /*height: 60px;              /* optional but makes it look clean */
}

.row3 {
  margin: 0;            /* REQUIRED */
  padding: 0.25em 0 0 0;           /* OPTIONAL but safe */
  display: flex;
  justify-content: center;   /* centers the button */
  align-items: center;
  /*height: 60px;              /* optional but makes it look clean */
}

footer {
  /*font-family: 'Lacquer';*/
  /*font-size: 0.625em;*/
  display: flex;
  justify-content: space-between;   /* left/center vs right */
  align-items: center;
  height: 60px;
}

.flashbox {
  flex: 1;                 /* take full width */
  text-align: center;      /* center the messages */

  max-height: 60px;     /* same as footer height */
  overflow-y: auto;     /* scroll inside, not the whole page */
  overflow-x: hidden;
}

.credit {
  font-size: 0.625em;
  font-family: 'Lacquer';
  text-align: left;
  white-space: nowrap;     /* keeps it tidy */
  padding: 0 1em;   /* ← adds left/right breathing room */
}

.errormessage {
  font-family: "Rubik";
  /*font-size: 2em;*/

  color: #00ff00;          /* bright green */
  font-weight: bold;
  margin: 0;               /* remove default <p> spacing */
}

/* ROW 4: 3 columns */
/*.row4 {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 7fr);
  min-height: 0;
  overflow-x: hidden;
  /*justify-content: center;   /* <-- REQUIRED for your invariant */


.row4 {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
}


/*.row4-front {
  grid-template-columns:
  minmax(0, 1fr)
  500px
  minmax(0, 1fr);
}*/

.auth-links {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 9999;
}

.help-links {
  position: fixed;
  top: 10px;
  left: 20px;
  z-index: 9999;
}

.left {
  display: flex;
  flex-direction: column;

  min-height: 0;
  padding: 0 1em;
  min-height: 0;
  overflow-y: auto;

  min-width: 0;              /* REQUIRED for grid children */
  overflow-wrap: anywhere;   /* break long words */
  word-break: break-word;    /* fallback */
}

.left-center {
  display: grid;
  place-items: center;
  justify-items: end;       /* horizontal right */
  height: 100%;
  padding: 1em;
}

/*@media (max-width: 1199.98px) {
  .row4-front {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .row4-front .left {
    display: none;
  }
}*/

@media (max-width: 1199.98px) {
  .row4 {
    grid-template-columns: 1fr;   /* collapse to one column */
  }

  .row4 .left {
    display: none;
  }
}


/* CENTER COLUMN: must allow shrinking */
.center {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;

  flex: 1;
}

/*.center {
  width: 100%;
  height: 100%;
  display: flex;
}*/

#cadcanvas {
  /*border: 1px solid #333;*/
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* SCROLL CONTAINER */
.table-scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;

  scrollbar-gutter: stable;
}

.table-header {
  display: grid;
  grid-template-columns: 450px 50px;
  width: 500px;
  /*font-weight: bold;*/
  padding: 4px;
  box-sizing: border-box;
}

/* TABLE JUST FILLS CONTENT */
table {
  border-collapse: collapse;
  width: 100%;
}

.center table {
  width: 100%;   /* = 500px */
  table-layout: fixed;
}

tbody tr {
  outline: dotted thin gray;
  outline-offset: -1px;
}

td {
  padding: 4px;
}

td, th {
  box-sizing: border-box;
}

ul {
  list-style: none;
  padding-left: 0;
}

form {
  margin-bottom: .25em;
}

.form-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

form {
  margin-bottom: .25em;
}

button {
  /*word-wrap: break-word;*/
  font-family: 'Alegreya Sans SC';
}

/*just the main title so far*/
button.main {
  font-family: "Rubik Marker Hatch";
  border: none;
  background-color: inherit;
  color: lightsteelblue;
  font-size: 2em;
}

@media (max-width: 700px) {
  button.main {
    font-size: 1em;
  }
}

button.smallunguessed:hover, button.main:hover{
  color: sandybrown;
}

.thickprompt {
  /*font-family: "Patua One";*/
  font-size: 1em;
  width: 6em;
}

button.real {
  font-family: "Rubik";
  font-weight: 900;
  font-size: 1em;
  border-width: 2px;
  border-radius: .25em;
  color: black;
  background-color: lightgray;
  border-color: darkslategrey;
}

button.real:hover {
  border-color: sienna;
}

button.smallunguessed {
  /*word-wrap: anywhere;*/
  word-break: break-word;
  font-size: 1em;
  border: none;
  background-color: inherit;
  color: lightsteelblue;
}

button.picked {
  background-color: aqua;
}

button.blancopicked {
  background-color: aquamarine;
}

button.attention {
  background-color: pink;
}

button.disutility {
  opacity: 0.45;
  cursor: not-allowed;
}

span.funtimes, button.funtimes, td.funtimes, li.funtimes {
  font-family: "Alegreya Sans SC";
  font-size: 1.2em;
  background-color: inherit;
  border: none;
}

select,
input[type="text"],
input[type="password"],
input[type="email"] {
  color: #101010;
  font-family: 'Alegreya Sans SC';
  font-size: 1.2em;

  border: 1px solid #ccc;
  border-radius: 3px;
}

select:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover {
  outline: 2px solid sienna;
  outline-offset: 0;
}

p.attention, span.attention {
  font-family: 'Rubik Marker Hatch';
  color: pink;
  font-size: 1.3em;
}

.radio-row {
  display: block;
  margin: 0.4em 0;
}

.art {
  width: 3em;
  height: 3em;
}

.alignment-bar {
  position: relative;
  width: 500px;
  height: 6px;
  background: linear-gradient(to right, #4CAF50, #2196F3, #f44336);
  border-radius: 3px;
  margin: 20px 0;
}

.marker {
  position: absolute;
  top: -6px;
  width: 12px;
  height: 12px;
  background: white;
  border: 2px solid black;
  border-radius: 50%;
  transform: translateX(-50%);
}

.alignment-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9em;
  margin-top: 6px;
}

.alignment-line span {
  margin-right: 0.75em;
}

p .secretlink {
  color: inherit !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

p .secretlink:hover {
  color: #ffcc66 !important;
  text-shadow: 0 0 6px #ffcc66;
}
