/*
	Based upon Jakub Hampl's "Designing a departures board with CSS3".
	https://gampleman.eu/post/1488470623/designing-a-departures-board-with-css3
*/

.departure-board {
  margin-right: 10px;
  padding: 0.36em;
  display: inline-block;
  line-height: 1.3em;
  background: rgb(30, 30, 30);
  -webkit-border-radius: 0.21em;
  -moz-border-radius: 0.21em;
  border-radius: 0.21em;
  color: #eee;
  font-family: Helvetica;
}

.departure-board span.letter {
  display: inline-block;
  width: 1em;
  margin: 0 0.1em;
  height: 1.3em;
  text-align: center;
  position: relative;
}

.departure-board span.letter {
  -webkit-box-shadow: inset 0 -0.07em 0 rgba(50, 50, 50, 0.7),
    inset 0 -0.14em 0 rgba(0, 0, 0, 0.7),
    inset 0.14em 0 0.28em rgba(0, 0, 0, 0.9),
    inset -0.14em 0 0.28em rgba(0, 0, 0, 0.9),
    0 0.07em 0 rgba(255, 255, 255, 0.2);

  -moz-box-shadow: inset 0 -0.07em 0 rgba(50, 50, 50, 0.7),
    inset 0 -0.14em 0 rgba(0, 0, 0, 0.7),
    inset 0.14em 0 0.28em rgba(0, 0, 0, 0.9),
    inset -0.14em 0 0.28em rgba(0, 0, 0, 0.9),
    0 0.07em 0 rgba(255, 255, 255, 0.2);

  -o-box-shadow: inset 0 -0.07em 0 rgba(50, 50, 50, 0.7),
    inset 0 -0.14em 0 rgba(0, 0, 0, 0.7),
    inset 0.14em 0 0.28em rgba(0, 0, 0, 0.9),
    inset -0.14em 0 0.28em rgba(0, 0, 0, 0.9),
    0 0.07em 0 rgba(255, 255, 255, 0.2);

  box-shadow: inset 0 -0.07em 0 rgba(50, 50, 50, 0.7),
    inset 0 -0.14em 0 rgba(0, 0, 0, 0.7),
    inset 0.14em 0 0.28em rgba(0, 0, 0, 0.9),
    inset -0.14em 0 0.28em rgba(0, 0, 0, 0.9),
    0 0.07em 0 rgba(255, 255, 255, 0.2);
}

.departure-board span.letter:before {
  border-top: 0.07em solid rgba(0, 0, 0, 0.4);
  border-bottom: 0.07em solid rgba(255, 255, 255, 0.08);
  height: 0;
  position: relative;
  width: 100%;
  left: 0;
  top: 0.62em;
  content: " ";
  display: block;
  z-index: 2;
  -moz-transform: translate(0, -0.05em);
  -o-transform: translate(0, -0.1em);
}

.departure-board span.fold {
  display: block;
  position: absolute;
  height: 0;
  top: 0.65em;
}

.departure-board span.flap {
  display: block;
  position: absolute;
  top: 0em;
  width: 1em;
  height: 0.65em;
  margin: 0;
  overflow: hidden;
}

.departure-board span.text {
  width: 100%;
}

.departure-board span.bottom {
  top: 0.65em;
}

.departure-board span.bottom span.text {
  position: relative;
  top: -0.65em;
}

.departure-board span.flap.falling {
  display: none;
  bottom: 0;
  top: auto;
}

.departure-board span.flap.falling span.text {
  -webkit-backface-visibility: hidden;
  border-top: 0.03em solid #444;
  border-bottom: 0.03em solid #444;
  background: #000;
  display: block;
  position: relative;

  -webkit-transform: scaleY(1);
  -moz-transform: scaleY(1);
  -o-transform: scaleY(1);
  transform: scaleY(1);

  -webkit-transition: -webkit-transform linear;
  -moz-transition: -moz-transform linear;
  -o-transition: -o-transform linear;
  transition: transform linear;
}

/*Custom Code*/
body {
  background-color: #565656;
  display: flex;
  flex-direction: column; /* h1 felül, boards-container alatta */
  align-items: center; /* minden vízszintesen középen */
  margin: 0;
}

#board1 {
  margin-bottom: 20px;
  box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.35),
    0 6px 20px 0 rgba(0, 0, 0, 0.35) !important;
}

#board2 {
  margin-bottom: 20px;
  box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.35),
    0 6px 20px 0 rgba(0, 0, 0, 0.35) !important;
}

.header {
  margin: auto;
  width: 100%;
  background-color: #1e1e1e;
  font-family: Helvetica, sans-serif;
  text-align: center;
  color: #ffc320;
  border-radius: 5px;
  margin-top: 20px;
  margin-bottom: 30px;
}

h1 {
  margin-top: 10px;
  margin-bottom: 10px;
}

#boards-container {
  align-items: center;
}

.board-header {
  background-color: #1e1e1e;
  width: 970px;
  height: 60px;
  font-family: Helvetica;
  font-size: 2rem;
  font-weight: 700;
  color: #ffc320;
}

.clock {
  font-family: Helvetica, sans-serif;
  font-size: 1.1rem;
  color: #eee;
  background-color: #1e1e1e;
  vertical-align: middle;
  margin-right: 10px;
  float: right;
  margin-top: 10px;
}

.plane-icon {
  background-color: #ffc320;
  padding: 5px 5px 5px;
  margin: 5px 5px 5px;
  border-radius: 5px;
  vertical-align: middle;
}

ul {
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
  background-color: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center; /* középre igazítja a tartalmat */
  gap: 1rem;
  border-radius: 5px;
}

ul li a {
  font-family: Helvetica, sans-serif;
  display: block;
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: 700;
  margin-left: 80px;
  margin-right: 80px;
}

ul li a:hover {
  background-color: #ffc320;
  color: black;
  border-radius: 5px;
}

/* A cím stílusa középen */
ul li.title {
  font-family: Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: #ffc320;
  margin: 0 2rem;
}

#muteButton {
  color: aqua;
  margin-right: 40px;
  margin-top: 23px;
}

.depboardtime {
  margin-bottom: 10px;
  font-family: Helvetica, sans-serif;
  color: #ffc320;
  font-weight: 700;
  margin-bottom: 10px;
}

.timetext {
  color: #eee;
  font-weight: 700;
  margin-bottom: 10px;
}

.note {
  color: #d9d9d9;
  font-family: Helvetica, sans-serif;
  text-align: center;
}

.version {
  text-align: right;
  padding-right: 10px;
  color: #000;
  font-weight: 600;
}

.board-contact {
  text-align: right;
  padding-right: 10px;
  color: #d9d9d9;
  font-weight: 500;
}

.board-contact-link {
  text-decoration: none;
  color: #ffc320;
}

.issues {
  text-align: right;
  color: #d9d9d9;
}
