:root {
  --blue: #2ca0d9;
  --red: #f46527;
  --beige: #c39e42;
  --background: #fff;
}
html,
body {
  font-size: unset !important;
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: var(--background);
  color: var(--blue);
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
  font-style: normal;

}

#terminal, .sponsor-bar  {
  max-width: 800px;
  margin: auto;
}

#terminal{
  padding: 30px;
}

.line {
  margin-bottom: 10px;
  font-size: 1.3rem;
}
.input-line{
  margin-bottom: 60px;
}
.input-line input {
  all: unset !important; 
  background: none;
  border: none;
  color: inherit;
  width: 90%;
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
  font-size: 1em;
}
.input-line input:focus {
  outline: none;
}

table,
th,
td {
  border: 1px solid;
  border-collapse: collapse;
  text-align: left;
  padding: 0.3rem;
}
tr.double-top td {
  border-top: 3px double;
}
td:first-child {
  font-weight: bold;
}

.suggestions {
  margin-top: 0.5rem;
}

.suggestion {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.2rem 0.5rem;
  background-color: var(--beige);
  color: var(--background);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

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




/* Basic style */


h1{
  font-size: 2rem;
  color: var(--red);
  text-transform: uppercase;
}
h2{
  font-size: 1.8rem;
  color: var(--red);
  text-transform: uppercase;
}
p a, h1 a, td a{
  text-decoration: none;
  font-weight: bold;
  color: var(--beige);
}
p a:hover, h1 a:hover, td a:hover {
  background-color: var(--beige);
  color: var(--background);
}

.red-text div{
  background-color: var(--red) !important;
  color: var(--background) !important;
  width: max-content;
  padding: 0 10px;
}

/*korabbiak*/
.korabbi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  align-content: flex-start;
  flex-flow: row wrap;
  justify-content: space-around;
}
.image_container {
  position: relative;
  width: 100%;
  display: flex;
}
.image_container a {
  width: 100%;
}
.korabbi-kep {
  display: block;
  width: 100%;
  height: auto;
}
.image_overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 0.1s;
  background-color: var(--beige);
  top: 0;
}
.image_container:hover .image_overlay,
.image_container:active .image_overlay {
  opacity: 1;
}

.image_text {
  font-size: 2rem;
  color: var(--background);
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

/* kontakt */

.ccc {
  max-width: 400px;
  width: 100%;
}
.logo {
  position: relative;
  display: inline-block;
  width: 180px;
  padding: 10px;
  min-height: 80px;
  vertical-align: middle;
  text-align: center;
}

.logo img{
  width: 100%;
}

.logo img:hover, .ccc:hover{
  opacity: 0.6;
}
/* gyik */

.gyik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1rem !important;
  z-index: 1;
  position: relative;
}

.korabbi-grid,
.gyik-grid {
  width: 100%;
}

.question,
.mobile-answer {
  background-color: var(--blue);
  color: var(--background);
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-answer {
  margin-top: -15px;
  border: 5px solid var(--red);
  color: var(--blue);
  background: var(--background);
}

#answer-area {
  background: var(--background);
  color: var(--blue);
  padding: 20px;
  padding-top: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  border: 5px solid var(--red);
  border-top: 20px solid var(--red);
  min-height: 200px;
  position: fixed;
  right: 0;
  bottom: 0;
  width: calc(48vw - 400px);
  margin:10px;
  display: none;
}

#question-display {
  font-size: 1.5em;
  color: var(--red);
  margin-bottom: 10px;
}

#answer-display {
  font-size: 1.1em;
}
.question.selected {
  background-color: var(--red);
}



/* left and right panels */


#binary-sidebar {
  top: 0;
  height: 100vh;
  color: var(--blue);
  overflow: hidden;
  white-space: pre-wrap;
}
#ascii-art, #ascii-art-horizontal {
  top: 0;
  color: var(--red);
  white-space: pre;
}
#ascii-art pre, #ascii-art-horizontal pre{
  margin: 0;
  font-family: "Ubuntu Mono", monospace;
  font-weight: 400;
  z-index: 100;
}

#binary-sidebar, #ascii-art, #binary-sidebar-horizontal, #ascii-art-horizontal{
  letter-spacing: .4ch;
  position: fixed;
  left: 2ch;
  line-height: 16px;
}

#binary-sidebar-horizontal, #ascii-art-horizontal{
  position: absolute;
  left: 0;
  display: none;
  top:2ch
}
#ascii-art-horizontal{
  margin-top: -16px;
}

.hangman-panel pre{
  position: fixed;
  font-family: "Ubuntu Mono", monospace;
  line-height: 16px;
  letter-spacing: .4ch;
  top: 0;
  color: var(--red);
  font-weight: bold;
  right: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  top: 0;
}



/* NEVEZES */

#login_nevezes{
  border: 10px solid var(--blue);
  padding: 10px;
}

/* SPONSOR BAR */

.sponsor-bar {
  background: var(--background);
  padding: 0 30px;
  width: 100%;
  overflow: hidden;
  height: 50px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center; /* center content horizontally */
  position: fixed;
  bottom: 0;
  margin-left: calc(50vw - 400px);
}

.sponsor-track {
  display: flex;
  justify-content: space-evenly; /* evenly distribute logos */
  align-items: center;
  width: 800px; /* adjust this as needed */
}

.sponsor-logo {
  flex: 1; /* each sponsor takes equal width */
  display: flex;
  justify-content: center; /* center the image inside */
}

.sponsor-logo img {
  height: 40px;
  max-height: 40px;
  width: auto;
  vertical-align: middle;
}

.sponsor-logo img:hover {
  opacity: 0.6;
}



.workshop-pic{
  width: 100%;
  max-width: 500px;
  margin:auto;
}