/*///////////////////////////////////////////////////////////
//
// File: styles.css
// Author: Dan Johnson
// Modified: 06-Sep-2025
// Description:
//   Core styles for site
//
// Shorthand 4: top right bottom left; 3: top right&left bottom; 2: top&bottom right&left;
// Colours:
//   Masonic Light Blue: #ADD8E6
//   Masonic Dark Blue: #2828C8
//   Light Grey ( body background): #333
//   Medium Grey (visited link): #7f7f7f
//   Grey (unselected):
//   Dark Grey (header / footer background): #0D0D0D
//   Dull Orange (unselected): #BF5B04
//   Bright Orange (hover): #F27405
//
///////////////////////////////////////////////////////////*/


* {
  box-sizing: border-box;
  font-family: 'Anonymous Pro', Arial, Helvetica, sans-serif;
}

h1 {
    font-family: 'Anonymous Pro', Arial, Helvetica, sans-serif;
}

h2 {
    font-family: 'Anonymous Pro', Arial, Helvetica, sans-serif;
}

h3 {
    font-family: 'Anonymous Pro', Arial, Helvetica, sans-serif;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0px;
  background-color: #FFF;
  font-family: 'Anonymous Pro', Arial, Helvetica, sans-serif;
}

body::after {
  content: '';
  display: block;
  height: 50px;
}

a:link {
    color: #2828C8;
    text-decoration: underline dotted;
}

a:visited {
    color: #2828C8;
    text-decoration: underline dotted;
}

a:hover {
    color: #2828C8;
    text-decoration: underline;
}

/* Style the size of the login image button */
.btn-img {
    width: 30px;
    height: 30px;
}

.login {
      width: 400px;
      background-color: #ffffff;
      border: 5px solid #0D0D0D;
      margin: auto;
}

.registration {
    margin: auto;
}

.login h2 {
      text-align: center;
      color: #5b6574;
      font-size: 24px;
      padding: 20px 0 20px 0;
      border-bottom: 1px solid #dee0e4;
}

.login form {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      padding-top: 20px;
}

.login form label {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 50px;
      height: 50px;
      font-size: 32px;
      background-color: #ADD8E6;
      color: #737373;
}

.login form input[type="text"], .login form input[type="email"], .login form input[type="password"] {
      width: 310px;
      height: 50px;
      border: 3px solid #ADD8E6;
      color: #0D0D0D;
      background-color: #ffffff;
      margin: 0px 0px 20px 0px;
      padding: 0 15px;
}

.login form input[type="submit"] {
      width: 100%;
      padding: 15px;
      margin-top: 20px;
      background-color: #ADD8E6;
      border: 0;
      cursor: pointer;
      font-weight: bold;
      font-size: 16px;
      color: black;
      transition: background-color 0.2s;
}

.login form input[type="submit"]:hover {
    background-color: #2828C8;
      transition: background-color 0.2s;
    color: white;
}

/* Style the top navigation bar */
.topnav {
    width: 100%;
    height: 40px;
    overflow: hidden;
    background-color: #ADD8E6;
    z-index: 0;
}

.topnav-search a {
    float: left;
}

.topnav-search .search-container {
    width: calc(100% - 460px);
    float: left;
}

.topnav-search .search-container .search-bar {
    position: relative;
    display: inline-block;
    margin: 0px 50px auto;
    top: 22px;
}

.topnav-text {
    margin-top: 17px;
    padding-bottom: 4px;
    border-bottom: 3px solid #2828C8;
    color: white;
}

.topnav-text a:link {
    border: 3px solid #2828C8;
    border-radius: 3px;
    color: white;
    padding: 7px;
    margin-left: 10px;
    margin-right: -7px;
    text-decoration: none;
    position: relative;
}

.topnav-text a:visited {
    border: 3px solid #2828C8;
    border-radius: 3px;
    color: black;
    text-decoration: none;
}

.topnav-text a:hover {
    background-color: #2828C8;
    color: white;
    text-decoration: none;
}

.topnav-text a.selected {
    background-color: #333;
    color: white;
    text-decoration: none;
}

.topnav-search .topnav-button {
    display: inline-block;
    padding: 15px;
    float: right;
}

/* Style the content */
.content {
  background-color: white;
  color: black;
  padding: 10px;
  height: auto;
}

/* Lines formatting */
.container {
    border: none;
    padding: 10px;
    position: relative;
}

.grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
}

.column-l {
    grid-column: 1;
}

.column-r {
    grid-column: 2;
}

.column-span {
    grid-column: 1 / 3;
}

#roleContainer {
    position: fixed;
    padding-top: 16px;
    padding-left: 20px;
    width: 90px;
    z-index: 3;
}

#lineContainer {
    position: relative;
    left: 100px;
    width: calc(100% - 100px);
    padding-right: 20px;
    padding-bottom: 10px;
    border: 1px solid black;
    height: 150px;
    overflow-y: auto;
    padding: 15px;
    white-space: pre-wrap;
    color: darkgrey;
}

#lineContainer span {
    color: darkgrey;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

#lineContainer .word.current {
    animation: pop 0.3s ease;
    border-radius: .2em;
}

@keyframes pop {
  0%   { transform: scale(1); }
  33%  { transform: scale(1.07); } /* grow */
  100% { transform: scale(1); }   /* shrink back */
}

#lineContainer .dash {
    user-select: none;
    opacity: 0.85;
}

#lineContainer .word.read,
#lineContainer .word.current,
#lineContainer.dim .word,
#lineContainer.dim .word.current,
#lineContainer.dim span.correct,
#lineContainer.dim .last-word,
#lineContainer.conceal .word,
#lineContainer.conceal .word.current,
#lineContainer.conceal span.correct,
#lineContainer.conceal .last-word {
    color: black;
}

#lineContainer.dim .word:not(.read) {
    opacity: .35;
}

#lineContainer.conceal .word:not(.read) {
    color: transparent;
    text-shadow: none;
}

#lineContainer.conceal .word:not(.read)::selection {
    background: transparent;
}

#notesContainer {
    position: relative;
    left: 100px;
    width: calc(100% - 100px);
    padding-right: 20px;
    padding-bottom: 10px;
    padding: 15px;
}

#controls {
    margin-top: 10px;
}

#progressContainer {
    margin-top: 10px;
    height: 15px;
    width: 100%;
    background: #ddd;
    border-radius: 8px;
    overflow: hidden;
}

#progressBar {
    width: 0%;
    height: 100%;
    background: #4caf50;
    transition: width 0.3s;
}

#rateCtrl {
  width: 100px;
  margin-left: 4px;
  vertical-align: middle;
}

#rateVal {
  margin-left: 6px;
  font-weight: bold;
}

/* Style the footer */
.footer {
  background-color: #ADD8E6;
  color: black;
  text-align: center;
  padding: 1px;
  clear: both;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 50px;
}

/* From AI */
button { padding: 10px 20px; margin-right: 10px; font-size: 1em; cursor: pointer; }
#status { margin-top: 10px; font-size: 1.2em; color: #555; }
.pulse-error { animation: pulse 0.3s; }
@keyframes pulse {
    0% { background-color: red; }
    50% { background-color: #4caf50; }
    100% { background-color: #4caf50; }
}

