:root {
  --color-primary-darker: #036;
  --color-primary-dark: #417690;
  --color-primary-light: #79aec8;
  --color-primary-lighter: #ecf1f4;

  --text-color: #333;

  --color-riddle-red: #E76F51;
  --color-riddle-ora: #F4A261;
  --color-riddle-yel: #E9C46A;
  --color-riddle-tea: #2A9D8F;
  --color-riddle-dbl: #264653;

  --color-riddle-red-lighter: #FbE6E1;
  --color-riddle-ora-lighter: #FDEFE4;
  --color-riddle-yel-lighter: #FBF5E5;
  --color-riddle-tea-lighter: #D5F4F0;
  --color-riddle-dbl-lighter: #D2E3EA;

  --color-grey-dark: #999999;
  --color-grey-light: #cccccc;
  --color-grey-lighter: #eeeeee;

  --border-radius-lg: 15px;
  --border-radius-md: 4px;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-family: "Roboto", "Lucida Grande", "DejaVu Sans", "Bitstream Vera Sans",
    Verdana, Arial, sans-serif;
  color: var(--text-color);
  background: #fff;
}

/* LINKS */

a:link,
a:visited {
  color: var(--color-primary-dark);
  text-decoration: none;
}

a:focus,
a:hover {
  color: var(--color-primary-darker);
}

a img {
  border: none;
}

a.section:link,
a.section:visited {
  color: #fff;
  text-decoration: none;
}

a.section:focus,
a.section:hover {
  text-decoration: underline;
}

.pagelinks a {
  margin-right: 10px;
  padding: 5px 0px;
}

/* GLOBAL DEFAULTS */

p,
ol,
ul,
dl {
  margin: 0.2em 0 0.8em 0;
}

p {
  padding: 0;
  line-height: 140%;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: bold;
}

h1 {
  font-weight: 300;
  font-size: 30px;
  color: #666;
  text-align: center;
  padding: 5px;
  margin: 2% 0 20px;
}

h2 {
  font-size: 16px;
  margin: 0.5em 0 0.5em 0;
}

h2.subhead {
  font-weight: normal;
  margin-top: 0;
}

h3 {
  font-size: 14px;
  margin: 0.8em 0 0.3em 0;
  color: #666;
  font-weight: bold;
}

h4 {
  font-size: 12px;
  margin: 1em 0 0.8em 0;
  padding-bottom: 3px;
}

h5 {
  font-size: 10px;
  margin: 1.5em 0 0.5em 0;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
}

li ul {
  margin-bottom: 0;
}

li,
dt,
dd {
  font-size: 13px;
  line-height: 20px;
}

dt {
  font-weight: bold;
  margin-top: 4px;
}

dd {
  margin-left: 0;
}

form {
  margin: 0;
  padding: 0;
}

fieldset {
  margin: 0;
  min-width: 0;
  padding: 0;
  border: none;
  border-top: 1px solid #eee;
}

/* TABLES */

table {
  border-color: #ccc;
  border-collapse: collapse;
  width: 100%;
  border-radius: var(--border-radius-lg);

  overflow: hidden;
}

td,
th {
  /* font-size: 13px; */
  vertical-align: top;
  padding: 8px;
  font-family: "Roboto", "Lucida Grande", Verdana, Arial, sans-serif;
  text-align: center;
}

td {
  border-top: 1px solid #eee;
}

tr:first-of-type td {
  border-top: none;
}

th {
  font-weight: 600;
  background: var(--color-primary-light);
}

thead th,
tfoot td {
  color: #eee;
  padding: 5px 10px;
  /* font-size: 11px; */
  background: var(--color-primary-light);
  border: none;
}

tr:nth-child(even),
tr:nth-child(even) .errorlist,
tr:nth-child(odd) + .row-form-errors,
tr:nth-child(odd) + .row-form-errors .errorlist {
  background: #f9f9f9;
}

.input-lg {
  padding: 10px 15px;
  border-radius: var(--border-radius-lg);
  border: none;
  cursor: pointer;
}

.input-lg.background-primary-light:hover {
  background: #609ab6;
}

.input-md {
  padding: 5px 10px;
  border-radius: var(--border-radius-lg);
  border: none;
  cursor: pointer;
}

.input-md.background-primary-light:hover {
  background: #609ab6;
}

.problem_table .row td {
  vertical-align: middle;
  font-size: 14px;
  word-break: break-word;
}

.problem_table .row .title {
  text-align: left;
}

.problem_table .row .body {
  width: 50%;
  text-align: justify;
  padding-left: 10px;
  padding-right: 10px;
}

.riddle-detail-table {
  border: none;
}
.riddle-detail-table td {
  border: none;
}
.riddle-detail-table tr td {
  border: none;
  padding: 2%;
}

/* FORM DEFAULTS */

input,
textarea,
select,
form button {
  margin: 2px 0;
  padding: 2px 3px;
  font-family: "Roboto", "Lucida Grande", Verdana, Arial, sans-serif;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="tel"],
textarea,
select,
.vTextField {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: var(--border-radius-md);
  padding: 5px 6px;
  margin-top: 0;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus,
.vTextField:focus {
  border-color: #999;
}

.form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* HEADER */

#header {
  width: auto;
  height: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background: var(--color-primary-dark);
  color: #ffc;
  overflow: hidden;
}

#header a:link,
#header a:visited {
  color: #fff;
}

#header a:focus,
#header a:hover {
  color: #ddd;
}

/* IMAGES */

#logo {
  height: 58px;
  width: 58px;
  float: left;
}

#language-icon {
  height: 10px;
  width: 10px;
  float: left;
}

#language-icon-button {
  padding: 0;
}

#room_centered {
  margin: 0 10px 0 10px;
}

.room_section {
  display: block;
  max-width: 1000px;
  margin: 0 auto 21px auto;
}

.problem_image {
  max-width: 100%;
  height: auto;
}

.problem_body {
  flex: 1;
}

.problem_container {
  display: flex;
  justify-content: center;
}


.problem_inner {
  margin: 10px;
}

.solution_image {
  height: 30%;
  float: left;
  margin: 5% 10%;
}

/* DRAG & DROP HANDLER */

.handle {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  cursor: grab;
  background-color: var(--color-primary-light);
}
.handle:after,
.handle:before {
  display: block;
  content: "";
  padding-top: 5px;
}
.handle:hover,
.handle:hover:before,
.handle:hover:after {
  border-color: var(--primary);
}
.handle:active,
.handle:active:before,
.handle:active:after {
  cursor: grabbing;
}

/* OTHER */

/* .riddle {
  border-collapse: collapse;
  width: 70%;
  margin: 0% 15%;
} */

/* ROOM */

[class^="collapsible"] {
  cursor: pointer;
  padding: 10px;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  width: 100%;
}


[class^="collapsible"]:after {
  content: "\002B";
  color: white;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.content {
  padding: 5px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background: #f9f9f9;
  border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.width-100 {
  width: 100%;
}

/* (BACKGROUND) COLORS */
.text-white {
  color: white;
}

.text-primary {
  color: var(--text-color);
}

.background-primary-lighter {
  background-color: var(--color-primary-lighter);
}

.background-primary-light {
  background-color: var(--color-primary-light);
}

.background-primary-dark {
  background-color: var(--color-primary-dark);
}

.background-red {
  background-color: var(--color-riddle-red);
}

.background-ora {
  background-color: var(--color-riddle-ora);
}

.background-yel {
  background-color: var(--color-riddle-yel);
}

.background-tea {
  background-color: var(--color-riddle-tea);
}

.background-dbl {
  background-color: var(--color-riddle-dbl);
}

.background-red-lighter {
  background-color: var(--color-riddle-red-lighter);
}

.background-ora-lighter {
  background-color: var(--color-riddle-ora-lighter);
}

.background-yel-lighter {
  background-color: var(--color-riddle-yel-lighter);
}

.background-tea-lighter {
  background-color: var(--color-riddle-tea-lighter);
}

.background-dbl-lighter {
  background-color: var(--color-riddle-dbl-lighter);
}

.background-grey-dark {
  background-color: var(--color-grey-dark);
}

.background-grey-light {
  background-color: var(--color-grey-light);
}

.background-grey-lighter {
  background-color: var(--color-grey-lighter);
}

.background-black {
  background-color: black;
}

.background-green {
  background-color: limegreen;
}

.background-green-dark {
  background-color: green;
}

/* DIFFICULTY SYMBOL */

.level {
  position: relative;
  width: 4em;
  height: 4em;
  border-radius: 10%;
  background-color: #c3bfa1;
  overflow: hidden;
  text-align: left;

  margin: 0 auto;
}

.level::after,
.level::before {
  content: "";
  position: absolute;
  border-radius: 10%;
  border: 2em solid transparent;
}

.level.lvl1::after {
  border-top: 2em solid transparent;
  border-left: 2em solid transparent;
  border-right: 2em solid transparent;
  border-bottom: 2em solid #02d6a4;
}

.level.lvl2::after {
  border-top: 2em solid transparent;
  border-left: 2em solid #00ac99;
  border-right: 2em solid transparent;
  border-bottom: 2em solid #02d6a4;
}

.level.lvl3::after {
  border-top: 2em solid #e27161;
  border-left: 2em solid #00ac99;
  border-right: 2em solid transparent;
  border-bottom: 2em solid #02d6a4;
}

.level.lvl4::after {
  border-top: 2em solid #e27161;
  border-left: 2em solid #00ac99;
  border-right: 2em solid #cd002f;
  border-bottom: 2em solid #02d6a4;
}

.modal {
  position: fixed;
  z-index: 1;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: auto;
}

.modal-content {
  max-width: 800px;
  background-color: white;
  padding: 20px;
  margin: 20px auto 0;
  border-radius: 15px;
}

.modal-close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

[x-cloak] {
  display: none !important;
}
