/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 */

require_tree .
require_self

div {

}

:root {
  --green: rgba(108, 169, 101, 1); 
}

.center {
  margin: auto;
  text-align: center;
}

.right {
  display: inline-flex;
  align-items: center;
  position: absolute;
  right: 10px;
}

.align-left {
  text-align: left;
}

.margin-top {
  margin-top: 12px;
}

.bold {
  font-weight: bold;
}

.touch-action {
  touch-action: manipulation;
}

.game {
  all: unset;
  position: relative;
  box-sizing: border-box;
  display: inline-block;
  color: rgba(48, 48, 48, 1);
  margin-right: 5px;
  margin-top: 7px;
  padding: 1.0rem 1.0rem;
  text-align: center;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  font-weight: 650;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.accent {
  color: rgba(83, 144, 76, 1);
  font-weight: 650;
}

.border-box {
  margin-top: 3px;
  display: inline-block;
  width: 17rem;
  border-radius: 0.5rem;
}

.solutions {
  font-size: 0.5rem;
}

.inline-flex {
  display: inline-flex;
  align-content: center;
  align-items: center;
  gap: 0.5rem;
}

.clue-box {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  line-height: 1.5rem;
  font-weight: bold;
  font-size: 1.5rem;
}

.big-box {
  height: 1.5rem;
  width: 3rem;
  padding: 5px 0;
}

.small-box {
  height: 1.5rem;
  width: 1.5rem;
}

#example-numbers {
  margin: auto;
  width: 17rem;
}

.title {
  font-size: 40px;
  margin-bottom: 0rem;
  margin-top: 0.75rem;
}

.target {
  font-size: 40px;
  color: var(--green);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

.stats {
  background-color: rgba(108, 169, 101, 0.7);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
  padding: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  width: 10rem;
}

button:not(:disabled) {
  cursor: pointer;
}

a:hover:not(:disabled) {
  cursor: pointer;
}

.number {
  background-color: rgba(120, 124, 127, 0.5);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.6);
  width: 5rem;
}

.number:active:not(:disabled), .number.used {
  transform: translate3d(0, 0.0625rem, 0);
  background-color: rgba(99, 105, 105, 1);
  color: rgba(253, 253, 253, 1);
  box-shadow: -0.0625rem 0rem 0.0625rem 0rem rgba(26, 26, 26, 0.3) inset, 0.0625rem 0rem 0.0625rem 0rem rgba(26, 26, 26, 0.3) inset, 0rem 0.125rem 0.0625rem 0rem rgba(26, 26, 26, 0.35) inset;
}

.new-number {
  margin-right: 6px;
}

.operator {
  background-color: rgba(108, 169, 101, 0.75);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.6);
  width: 5rem;
}

.operator:active:not(:disabled), .stats:active:not(:disabled), .operator.used {
  transform: translate3d(0, 0.0625rem, 0);
  background-color: rgba(74, 125, 59, 1);
  box-shadow: -0.0625rem 0rem 0.0625rem 0rem rgba(26, 26, 26, 0.3) inset, 0.0625rem 0rem 0.0625rem 0rem rgba(26, 26, 26, 0.3) inset, 0rem 0.125rem 0.0625rem 0rem rgba(26, 26, 26, 0.35) inset;
  color: rgba(253, 253, 253, 1);
}

.reset {
  background-color: rgba(245, 245, 245, 0.8);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.6);
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  margin-right: 0.5rem;
  margin-left: 0.5rem;
}

.reset:active:not(:disabled) {
  transform: translate3d(0, 0.0625rem, 0);
  background-color: rgba(227, 227, 227, 1);
  box-shadow: -0.0625rem 0rem 0.0625rem 0rem rgba(26, 26, 26, 0.122) inset, 0.0625rem 0rem 0.0625rem 0rem rgba(26, 26, 26, 0.122) inset, 0rem 0.125rem 0.0625rem 0rem rgba(26, 26, 26, 0.2) inset;
}

@media (hover: hover) and (pointer: fine) {
  .number:hover {
    background-color: rgba(115, 119, 122, 0.6);
  }

  .number.used:hover {
    background-color: rgba(105, 109, 112, 1);
  }

  .operator:hover, .accept:hover, .stats:hover {
    background-color: rgba(103, 164, 96, 0.8);
  }

  .operator.used:hover {
    background-color: rgba(82, 133, 67, 1);
  }

  .reset:hover {
    background: rgba(235, 235, 235, 1);
  }

  .deny:hover {
    background-color: rgba(229, 229, 229, 1);
  }

  a:hover {
    color: rgba(84, 84, 84, 1);
  }
}

.modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.transition-modal {
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 800ms;
}

.no-transition-modal {
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  margin-top: 4.5rem;
  border: 1px solid #888;
  border-radius: 0.5rem;
  width: fit-content;
  max-width: 85%;
}

.high-modal {
  margin-top: 2rem;
}

.floating-button {
  background-color: rgba(234, 234, 234, 1);
  color: rgba(0, 0, 0, 1);
  text-align: center;
  border: none;
  border-radius: 0.5rem;
  padding: 0.25rem;
  width: 5rem;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25)
}

.floating-button:hover {
  background-color: rgba(227, 227, 227, 1);
}

.floating-button:active:not(:disabled) {
  box-shadow: -0.0625rem 0rem 0.0625rem 0rem rgba(26, 26, 26, 0.122) inset, 0.0625rem 0rem 0.0625rem 0rem rgba(26, 26, 26, 0.122) inset, 0rem 0.125rem 0.0625rem 0rem rgba(26, 26, 26, 0.2) inset;
}

.wide {
  width: 7rem;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover, .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.cookies-modal {
  position: absolute;
  left: 50%;
  top: 68%;
  width: 60%;
  transform: translate(-50%, -50%);
  opacity: 1;
  transition: opacity 1s ease;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem;
  border: 2px solid rgba(10, 10, 10, 0.5);
  border-radius: 0.5rem;
}

.subtitle {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.cookies {
  gap: 0.125rem;
  text-align: center;
  border: none;
  border-radius: 0.25rem;
  color: rgba(0, 0, 0, 1);
  display: flex;
  justify-content: left;
  padding: 0.5rem;
}

.accept {
  background-color: rgba(108, 169, 101, 0.75);
  margin-right: 0.75rem;
}

.deny {
  background-color: rgba(234, 234, 234, 1);
}

.switch {
  position: absolute;
  display: inline-block;
  width: 50px;
  height: 24px;
  right: 10px;
}

.switch-label {
  margin-block-start: 0.5rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--green);
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.flash-success {
  background-color: rgba(108, 169, 101, 0.5);
  animation: hide 1s linear 2s 1 forwards;
}

@keyframes hide {
  to {
    opacity: 0;
  }
}

a {
  color: rgba(64, 64, 64, 1);
}

.hidden {
  visibility: hidden;
}

.no-display {
  display: none;
}

.inline-block {
  display: inline-block;
}

.mini-header {
  font-size: 19px;
}

.header {
  font-size: 32px;
}

.green {
  color: var(--green);
}

.result {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.big-result {
  font-size: 34px;
  font-weight: bold;
}

@media (max-width: 40rem) {
  .number-buttons {
    margin: auto;
    width: 20rem;
  }

  .cookies-modal {
    width: 20rem;
  }

  .modal-content {
    padding: 20px;
  }

  .streak {
    width: 8.25rem;
  }
}

@media (max-width: 22rem) {
  .operator-buttons {
    margin: auto;
    width: 20rem;
  }
}

@media (min-width: 40rem) {
  .number-buttons {
    margin: auto;
    width: 35rem;
  }

  .cookies-modal {
    width: 35rem;
  }

  .modal-content {
    padding: 25px 45px;
  }

  .streak {
    width: 10rem;
  }
}

.noHover {
  pointer-events: none;
}

.number:disabled, .operator:disabled, .reset:disabled {
  background-color: rgba(0, 0, 0, 0.05);
  color: rgba(181, 181, 181, 1);
  box-shadow: none;
}

.number.solved:disabled {
  background-color: rgba(120, 124, 127, 0.5);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.6);
  color: rgba(48, 48, 48, 1);
}

.operator.solved:disabled {
  background-color: rgba(108, 169, 101, 0.75);
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.6);
  color: rgba(48, 48, 48, 1);
}

.next-step {
  box-shadow: -1px 0 4px 6px rgba(169, 128, 101, 0.8)
}

.next-step:active:not(:disabled), .next-step.used {
  box-shadow: -1px 0 4px 6px rgba(169, 128, 101, 0.8)
}

.thumbs-up {
  font-size: 3rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.icon-button {
  padding: 5px 5px 0px;
  border-radius: 0.5rem;
}

.icon-button:hover {
  background-color: rgba(234, 234, 234, 1);
  cursor: pointer;
}

.icon-button:active:not(:disabled) {
  background-color: rgba(234, 234, 234, 1);
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(248, 248, 248, 1);
  min-width: 140px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  right: 0;
  border-radius: 0.5rem;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-radius: 0.5rem;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a:hover {
  background-color: rgba(236, 236, 236, 1);
}

.dropdown:hover .drop-button {
  background-color: rgba(234, 234, 234, 1);
}

.highlight {
  background-color: rgba(103, 164, 96, 0.8);
}

.dropdown .highlight:hover {
  background-color: rgba(103, 164, 96, 1);
}

.dropdown:hover .drop-button.highlight:hover {
  background-color: rgba(103, 164, 96, 1);
}

.dropdown:hover .drop-button.highlight {
  background-color: rgba(103, 164, 96, 0.8);
}

.dropdown-content .higlight:hover {
  background-color: rgba(103, 164, 96, 1)
}

.disabled {
  background-color: rgba(0, 0, 0, 0.01) !important;
  color: rgba(221, 221, 221, 1) !important;
  cursor: default !important;
}

.block {
  display: block;
}
