
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin: 0px;
}

.modal-x {
  font-size: 36px;
  cursor: pointer;
  vertical-align: top;
  margin-bottom: auto;
}

.modal-dialog {
   top: -400px;
}
.modal-header {
  padding-top: 0;
  border: none;
}
.modal-title {
  font-family: 'Oswald', sans-serif;
}

h5#loginModal.modal-title {
  margin-left: 15px;
  margin-right: auto;
}

.disableCaret {
  -webkit-user-select: none;  /* Chrome all / Safari all */
  -moz-user-select: none;     /* Firefox all */
  -ms-user-select: none;      /* IE 10+ */
   user-select: none;
}

.statsGrid {
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  width: 1242px;
  /* border: 2px dashed red; */
}

.styled-hr {
  margin-bottom: 35px;
  height: 1px;
  background-color: #005580;
  /* background-color: #ccc; */
  width: 100%;
}

.ui.statistic.label {
  background-color: #eee;
}

.ui.menu {
  margin: 0 0 0 40px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  padding: -10px 10px 0px 10px  !important;
  border: none;
}

.ui.menu .right.menu {
  border-left: none !important;
}

.ui.menu .item.disabled,
.mobile-menu-item.disabled {
  color: #aaa !important;
  pointer-events: none;
  cursor: default;
}

/* Remove the default Semantic UI menu item dividers on the right menu */
.desktop-nav .ui.menu .right.menu::before,
.desktop-nav .ui.menu .right.menu > *::before,
.desktop-nav .ui.menu .right.menu .item::before,
.desktop-nav .ui.menu .right.menu .user-greeting::before,
.desktop-nav .ui.menu .right.menu .user-greeting .item::before {
  display: none !important;
  width: 0 !important;
  background: none !important;
}

.user-greeting {
  vertical-align: center;
  margin-top: auto;
  margin-bottom: auto;
  margin-right: 10px;
}

.user-profile-graphic {
  text-align: center;
  color: #005580;
  margin-left: 10px;
}

#vm-card {
  background-color: #eee;
  box-shadow: none;
}

#vm-card-header {
  /* middle aligned */
  position: relative;
  width: 100%;
  height: 20%;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.verse-set {
  display: grid;
  grid-template-rows: auto 400px;
  height: 480px;
  text-align: center;
  margin-bottom: 0px;
}

.verse-set-box {
  width: 250px;
  height: 360px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid #555;
  border-left: 1px solid #555;
  border-right: 1px solid #555;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  background-color: #FFF;
  text-align: center;
}

.verse-set-box ul {
  margin-top: 30px;
  margin-left: 10px;
  text-align: left;
  line-height: 50px;
  font-size: 18px;
  list-style-type: none;
}


/*
How to postion text at the bottom center of a div:
1. Places a <span> around the text
2. Make the container position: relative;
3. Make the container span position: absolute;
4. Use bottom: 0; and right: 0; and width: 100%;
*/

.verse-set-header {
  position: relative;
}

.verse-set-box li {
  margin: 0px 4px 8px -30px;
  padding: 10px 10px 10px 10px;
  line-height: 24px;
}

.verse-set-box li:hover  {
  -webkit-box-shadow:inset 0px 0px 0px 1px #ccc;
  -moz-box-shadow:inset 0px 0px 0px 1px #ccc;
  box-shadow:inset 0px 0px 0px 1px #ccc;
  width: 106%;
  background-color: #eee;
  border-radius: 10px;
  cursor: pointer;
}

.verse-set-box li:active {
  background-color: #fff;
}

.view-verse-text {
  visibility: hidden;
  font-family: 'Roboto', sans-serif;
  min-height: 70px;
  border: 1px solid #555;
  background-color: #fff;
  position: absolute;
  border-radius: 10px;
  padding: 15px;
  z-index: 5;
  box-shadow: 3px 3px 5px 1px #888;
}

.view-verse-text-box {
  /* font-family: 'Roboto', sans-serif; */
  font-size: 22px;
  line-height: 26px;
  text-align: left;
  padding: 15px;
  font-weight: bold;
  color: #005580;
  /* background-color: #fff; */
  min-height: 100px;
  border-radius: 10px;
  border: 1px solid #bbb;
  /* background-image: repeating-radial-gradient(circle, #fff, #fff 40px, #e6faff 40px, #e6faff 80px); */
}

.full-text-reveal-box {
  width: 80%;
  height: 120px;
  border-radius: 12px;
  margin: 25px auto 25px auto;
}

.play-button {
  background-color: #999;
  margin-left: auto;
  margin-right: auto;
  width: 250px;
  height: 35px;
  line-height: 30px !important;
  color: #fff;
  border: 1px solid #333;
  text-align: center;
  font-size: 20px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}

.play-button:hover {
  background-color: #888;
  cursor: pointer;
}

.play-button:active {
  background-color: #ddd;
  color: #333;
}

.blue-band {
  height: 5px;
  text-align: center;
  background-color: #005580;
  width: 100%;
}

.topband {
  padding: 20px;
  text-align: center;
  background-color: #005580;
  width: 100%;
}

.topband h3 {
  color: white;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 100;
  margin: 0px;
  text-align: center;
}

h1, h3 {
  margin: 0px 30px 0px 0px;
  text-align: left;
}

.header-container {
  margin: 20px 25px 0px 25px;
  height: 50px;
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.welcome-text h2 {
  color: #005580;
}

.welcome-quote {
  margin-top: 8px;
  text-align: right;
}

.verse-set-bar {
  background-color: #eee;
}

.section-label {
  text-align: left;
  margin-left: 25px;
}

/* ---------------------------------------------------------- */
textarea:focus, input:focus{
  outline: none;
}

input[type=text]:focus {
  background-color: #eee;
}

.formContainerOptional{
  width: 350px;
  padding: 5px 15px 15px 15px;
  margin-top: 20px;
  text-align: left;
  background-color: white;
  border-radius: 12px;
  color: #005580;
  border: 1px solid #ccc;
  box-shadow: 3px 3px 5px 1px #aaa;
}
.centerForm {
  width: 500px;
  margin: 0 auto;
  /* background-color: beige; */
}
.formContainer {
  width: 350px;
  padding: 5px 15px 45px 15px;
  text-align: left;
  background-color: white;
  color: #005580;
}

.formTextLabel {
  margin: 15px 0px 5px 0px;
  text-align: left;
  color: #005580;
  font-size: 18px;
  font-family: 'Roboto', sans-serif;

}

.loginForm {
  height: 45px;
  width: 320px;
  border-radius: 8px;
  border: 1px solid #ccc;
  padding: 5px;
  font-size: 20px;
  /* font-weight: bold; */
  /* font-family: 'Oswald', sans-serif;
  font-family: 'Poppins', sans-serif; */
  font-family: 'Rubik', sans-serif;
  /* font-family: 'Roboto', sans-serif; */

}

::-webkit-input-placeholder {
  color: #ccc;
}

.submitButton{
  width: 175px;
  height: 20px;
  background-color: #eee;
  color: #000;
  font-weight: bold;
  padding: 5px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #aaa;
  box-shadow: 2px 2px 3px 1px #aaa;
  margin: 15px 10px 30px 0px;
}

.submitButton:hover {
  background-color: #fff;
  cursor: pointer;
}

.submitButton:active {
  background-color: #ddd;
  cursor: pointer;
}

.specialMessage {
  margin-top: 20px;
  height: 40px;
  width: 332px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: orange;
  padding: 10px 8px 10px 8px;
  font-size: 17px;
  font-family: 'Rubik', sans-serif;
  color: white;
  display: none;
}

input#termsAgree {
  width: 13px;
  height: 13px;
  text-align: left;
  /* margin-left: 150px; */
}


/* ---- Section containers: hidden until opened ---- */
.create-set-container,
.how-to-play-container,
.leaderboards-container {
  display: none;
}

/* ---- Footer band ---- */
.nrs-footer {
  background-color: #c0c0c0;
  text-align: center;
  padding: 40px 20px 30px 20px;
}

.nrs-footer-logo {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 12px auto;
}

.nrs-footer-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #005580;
  margin: 0;
}

/* Greater than mobile ---------------------------------------------------------*/
@media only screen and (min-width: 1234px) {



  .verse-set-container{
    width: 1242px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0px;
    margin-bottom: 0px;
  }



  .page-links {
    background-color: #eee;
    /* height: 30px; */
    list-style-type: none;
    display: flex;
    flex-direction: row;
    flex-align: left;
    margin: 0px;
    text-align: center;
  }



  .page-links-item:hover {
    background-color: white;
  }

  .game-in-progress {
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px;
    line-height: 20px;
    padding: 10px;
    display: block;
    margin: 10px 25%;
    width: 600px;
    border: 1px solid green;
    background-color: #e6fff2;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
  }

  .game-in-progress:hover {
    background-color: #fff;
  }

  .game-in-progress:active {
    background-color: #e6fff2;
  }

  .center-text {
    text-align: center;
  }

  .current-game {
    margin-left: 25px;
  }

  .game-info-table {
    border-collapse: collapse;
  }

  .game-info-label {
    text-align: right;
    padding-right: 8px;
    white-space: nowrap;
  }

  /* Create card set styling -------------------------------------------------*/
  .create-set-container {
    min-height: 800px;
  }

  /* Card sets styling -------------------------------------------------------*/
  #feedback-area {
    margin: 50px;
  }
}

/* Tablet / mid-width: wrap verse-set cards to 2×2 grid --------------------*/
@media only screen and (min-width: 768px) and (max-width: 1233px) {
  .ui.four.cards.stackable {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ui.four.cards.stackable .card {
    width: calc(50% - 20px) !important;
    margin: 10px !important;
  }
}


/* ---- Hamburger / Mobile Nav (base: hidden on desktop) ---- */
.mobile-nav {
  display: none;
}

.desktop-nav {
  display: block;
}

/* Mobile screens --------------------------------------------------------------*/
@media only screen and (max-width: 767px) {

  html, body {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    padding: 0px;
    margin: 0px;
    overflow-x: hidden;
  }

  .page-container {
    width: 100%;
    max-width: 100%;
  }

  .full-text-reveal-box,
  .view-verse-text-box-instructions,
  .top-navigation-bar
  { display: none; }

  /* Hide desktop menu on mobile */
  .desktop-nav {
    display: none;
  }

  /* Show mobile nav */
  .mobile-nav {
    display: block;
    width: 100%;
  }

  /* --- Top bar with title + hamburger --- */
  .mobile-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
  }

  .mobile-nav-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #005580;
  }

  /* --- Hamburger button --- */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
  }

  .hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #005580;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  /* Animate to X when .open */
  .hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* --- Slide-down menu --- */
  .mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
  }

  .mobile-menu.open {
    max-height: 500px;
  }

  /* --- Menu items --- */
  .mobile-menu-item {
    display: block;
    padding: 14px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #005580;
    text-decoration: none;
    text-align: left;
    border-top: 1px solid #eee;
  }

  .mobile-menu-item:active {
    background-color: #f0f0f0;
  }

  /* --- Header row: welcome + version --- */
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f7f7f7;
    font-size: 13px;
    color: #555;
    padding: 12px 20px;
  }

  .mobile-menu-header a {
    color: #005580;
    text-decoration: underline;
  }

  .mobile-menu-welcome {
    text-align: left;
    line-height: 1.4;
  }

  .mobile-menu-version {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    margin-left: 12px;
  }

  .section-label {
    text-align: left;
    margin-left: 15px;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 700;
    padding: 10px 10px 0 10px;
  }

  .topband {
    text-align: left;
  }

  .topband h3 {
    text-align: left;
  }

  /* --- Verse-set cards: tighten for mobile --- */
  .verse-set-bar {
    padding-top: 5px;
  }

  .verse-set-bar br {
    display: none;
  }

  .verse-set {
    height: 360px;
    grid-template-rows: auto 1fr;
  }

  .verse-set-box {
    max-width: 230px;
    height: 310px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
  }

  .verse-set-box ul {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin: 0;
    padding: 0 10px;
    font-size: 15px;
    line-height: 22px;
  }

  .verse-set-box li {
    margin: 0;
    padding: 4px 10px;
    line-height: 22px;
  }

  #vm-card-header {
    height: auto;
    padding: 8px 0;
  }

  #vm-card-header h2.ui.header {
    font-size: 16px;
    font-weight: 700;
  }

  .play-button {
    font-size: 14px;
    height: 32px;
    line-height: 28px !important;
    max-width: 230px;
  }

  .ui.four.cards.stackable .card {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
  }

  .welcome-text {
    text-align: center;
    color: #005580;
  }

  .welcome-quote {
    font-size: 14px;
    color: white;
  }

  .header-container {
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
    display: none;
  }

  .game-in-progress {
    font-family: 'Roboto', sans-serif !important;
    font-size: 14px;
    line-height: 20px;
    padding: 10px;
    display: block;
    border: 1px solid green;
    background-color: #e6fff2;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
  }

  .game-in-progress:hover {
    background-color: #fff;
  }

  .game-in-progress:active {
    background-color: #e6fff2;
  }

  .game-info-table {
    border-collapse: collapse;
  }

  .game-info-label {
    text-align: right;
    padding-right: 8px;
    white-space: nowrap;
  }

  .ui.menu {
    margin: 0;
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .user-greeting {
    margin-right: 10px;
  }

  .verse-set-container {
    width: 100%;
    padding: 0 10px;
  }

  .statsGrid {
    width: 100%;
  }

  .ui.four.cards.stackable .card {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .bubble {
    position: relative;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 14px;
    width: 165px;
    background: #005580;
    border-radius: 5px;
    padding: 10px;
    text-align: right;
  }

  .bubble-bottom-left:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-left: 24px solid #005580;
    border-right: 12px solid transparent;
    border-top: 12px solid #005580;
    border-bottom: 20px solid transparent;
    left: 32px;
    bottom: -24px;
  }

  .centerForm {
    width: 100%;
    padding: 0 15px;
  }

  .loginForm {
    width: 100%;
  }

  .formContainerOptional,
  .formContainer {
    width: 100%;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---- Alert Dialog ---- */

.vm-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-alert-dialog {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px 28px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.vm-alert-icon {
  font-size: 48px;
  color: #2185d0;
  line-height: 1;
  flex-shrink: 0;
}

.vm-alert-body {
  flex: 1;
}

.vm-alert-message {
  font-size: 15px;
  color: #333;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.vm-alert-btn-row {
  text-align: right;
}

.vm-alert-ok-btn {
  padding: 6px 28px;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #2185d0;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
}


