:root {
  --orange: rgb(249,181,82);
  --green: rgb(136,151,57);
}

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Encode Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: medium;
  font-style: normal;
  font-variation-settings:
        "wdth" 100;
}

.saira {
  font-family: "Saira Stencil One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.orange-link {
  color: var(--orange);
}

.orange-link:hover {
    text-decoration: underline;
}

/* a
{
    color: var(--orange) !important;
}

a:hover
{
    text-decoration: underline !important;
} */

/* td
{
    text-align: center !important;
    border-width: 1px !important;
    border-color: black !important;
} */

/* obfuscation of addresses against web crawlers */
.nene {
    display: none !important;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
}

.status-table th,
.status-table td {
  padding: 8px 12px;
  border: 1px solid black;
}

.status-table th:first-child,
.status-table td:first-child {
  width: 100%;
}

.status-table th:last-child,
.status-table td:last-child {
  width: 1%;
  white-space: nowrap;
  text-align: left;
}

/* scaling font sizes */
/* for use when removing tailwinds */
/* 3xl */
.large-heading {
  font-size: 1.875rem;
  line-height: 2.25rem; 
}

.medium-heading {
  font-size: 1.5rem;
  line-height: 2rem;
}

/* xl */
.small-heading {
  font-size: 1.25rem;
  line-height: 1.75rem; 
}

/* xs */
.bullet-points {
  font-size: 0.75rem;
  line-height: 1rem; 
}

/* index cards */
.index-wrapper {
  width: 90vmin;
  aspect-ratio: 1/1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
  width: 100%;
  gap: 2vmin;
}

.index-card {
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
}

.index-card:hover {
  background: var(--orange);
}


/* new layout */

.wrapper {
  width: 720px;
  margin: 2rem auto;
  box-sizing: border-box;
  position: relative;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.content-navbar {
  gap: 1rem;
}

.content-navbar > div {
  background-color: white;
  margin-bottom: 1rem;
}

.content-navbar > div:last-child {
  margin-bottom: 0px;
}

.content-wall, .cipher-wall{
  grid-column: span 3 / span 3;
}

.content-wall > div { 
  background-color: white;
  padding: 2.5rem;
  margin-bottom: 1rem;
}

.content-wall-black > div {
  background-color: black;
}

.content-wall > div:last-child {
  margin-bottom: 0px;
}

/* side bar and navbar */

.side-bar {
  width: 200px;
  position: absolute;
  left: 734px;
}

.navbar-card {
  font-size: 1.25rem;
  line-height: 1.5rem;
  padding: 1rem;
  display: block;
  text-align: center;
  background: var(--orange);
}

.mobile-navbar {
  height: 4.1rem;
  display: none;
}

.mobile-navbar-links {
  height: 4.1rem;
  display: none;
}


/* new menu */

.menu-list {
  font-size: 1.5rem;
  line-height: 1.75rem; 
  background: var(--orange);
  position: absolute;
  top: 5.1rem;
  width: 12.5rem;
}

.menu {
  aspect-ratio: 1 / 1;
  position: relative;
  width: 4.1rem;
  cursor: pointer;
}

.menu-toggle {
  width: 4.1rem;
  aspect-ratio: 1 / 1;
  background-color: #000000;
}

.menu-toggle:hover {
  background-color: var(--orange);
}

.menu img {
  position: absolute;
}

.hover-parent .hover-show, .hover-parent:hover .hover-hide {
  opacity: 0;
}

.hover-parent:hover .hover-show, .hover-parent .hover-hide {
  opacity: 1;
}

.menu-card {
  display: flex;
  align-items: center;
  width: 100%;
  height: 4.1rem;
}

.menu-card > div {
  aspect-ratio: 1 / 1; 
  display: inline-block; 
  position: relative; 
  height: 100%; 
}

.menu-card img {
  position: absolute;
}

.menu-card:hover {
  color: white;
}

.mobile-icon {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  background-color: white;
  width: 100%;
  padding-left: 0.5rem;
}

.mobile-icon > div {
  aspect-ratio: 1 / 1; 
  display: inline-block; 
  position: relative; 
  height: 100%; 
}

/* sifrovacka */

.collapsible {
  width: 100%;
  background-color: var(--orange);
  font-size: 1.875rem;
  line-height: 2.25rem;
  text-align: left;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-content: center;
}

.collapsible > span {
  flex: 1 1 auto;
}

.collapsible > img {
  height: 2.5rem;
  flex: 0 0 auto;
}


.collapsed-content {
  display: none;
  width: 100%;
  margin-bottom: 1rem;
}

.cipher {
  background-color: white;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}

.cipher > img {
  margin-bottom: 0.5rem;
}

.cipher-text {
  height: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.cipher-text > span {
  align-content: center;
  flex: 1 1 auto;
}


.cipher-interact {
  display: flex;
  height: 2.5rem;
  gap: 0.5rem;
}

.cipher-interact input {
  border: var(--orange) solid 2px;
  flex: 1 1 auto;
  padding: 0.3rem 0.5rem;
  width: 0;
}

.cipher-interact form {
  display: flex;
  flex: 1 1 auto;
  gap: 0.5rem;
}

.cipher-interact form button {
  box-sizing: border-box;
  padding: 0.3rem 0.6rem;
  background-color: var(--green);
  color: white;
}

.cipher-interact > div {
  display: flex;
  flex: 1 1 auto;
  height: inherit;
  gap: inherit;
}

.cipher-interact > span {
  vertical-align: middle;
  flex: 1 1 auto;
  height: inherit;
  align-content: center;
}

.cipher-interact > div > button, .cipher-interact > a, .cipher-text > a {
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 3px;
  background-color: var(--orange);
}

.cipher-interact > div > button:disabled {
  background-color: lightgray;
}

.cipher-interact .green-button, .cipher-text > .green-button {
  background-color: var(--green);
}

.napoveda {
  background-color: white;
  padding: 1.5rem 0;
  margin-bottom: 1rem;
  padding: 1.5rem 2.5rem 0 2.5rem;
  display: block;
  overflow-y: auto;
}

.napoveda > div {
  margin-bottom: 1.5rem;
}

.hidden-napoveda {
  display: none;
}

/* results */

.result-wall {
  grid-column: span 3 / span 3;
}

.result-wall > div { 
  background-color: white;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.result-wall h1 {
  margin-bottom: 0.75rem;
}

.table-container {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.result-table, .stats-table {
  width: 100%;
}

.result-table th, .stats-table th {
  text-align: center;
  background-color: var(--orange);
}

.result-table th:nth-child(2), .stats-table th:first-child {
  text-align: left;
}

.result-table th:first-child, .result-table td:first-child {
  width: 1%;
  padding: 2px;
}

.result-table td, .stats-table td {
  padding: 1px;
  text-align: center;
  cursor: default;
}

.result-table td:first-child, .result-table td:nth-child(2), .stats-table td:first-child {
  text-align: left;
  padding: 2px;
}

.result-table th:nth-child(2), .result-table td:nth-child(2) {
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-table .numbers{
  min-width: 0.5rem;
}

.result-table col:nth-child(2n + 2), .stats-table col:nth-child(2n + 2) {
  background-color: #f9b65220;
}

.stats-table td:first-child {
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-table td:nth-child(n+2) {
  white-space: nowrap;
  min-width: 2rem;
}

/* feedback */
.feedback-form {
  margin-top: 1rem;
  width: 100%;
}

.feedback-form textarea, .feedback-form input {
  border: var(--orange) solid 1px;
  padding: 0.3rem 0.6rem;
}

.feedback-form textarea {
  width: 100%;
  resize: none;
}

.feedback-form input {
  width: 33%;
}

.feedback-form label {
  display: inline-block;
  width: 100%;
  margin-bottom: 0.2rem;
}

.feedback-form > div {
  margin-bottom: 1rem;
}

.feedback-form button {
  box-sizing: border-box;
  padding: 0.3rem 0.6rem;
  background-color: var(--green);
  color: white;
}




@media only screen and (max-width: 1150px) {

  html {
    font-size: 130%;
  }

  .content-navbar {
    display: none;
  }

  .side-bar {
    display: none;
  }

  .content-wall, .cipher-wall, .result-wall{
    grid-column: span 4 / span 4;
  }

  .wrapper {
    width: 92%;
  }

  .mobile-navbar {
    display: flex;
    margin-bottom: 1rem;
  }

  .mobile-navbar-links {
    display: flex;
    flex: 1 1 0px;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .mobile-navbar-card {
    font-size: 1.25rem;
    line-height: 1.5rem;
    padding: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    background: var(--orange);
  }

  .menu {
    margin-left: auto;
  }

  .menu-list {
    left: -8.4rem;
    top: 5.1rem;
  }
}

@media only screen and (min-height: 1800px) {
  html {
    font-size: 165%;
  }

  .mobile-navbar-card {
    font-size: 1rem;
  }
}
