* {
  margin: 0;
  padding: 0;
  border: 0;
}

@font-face {
  font-family: 'proxima_nova_rgbold';
  src: url('../fonts/proxima-nova/proximanova-bold-webfont.eot');
  src: url('../fonts/proxima-nova/proximanova-bold-webfont.eot?#iefix') format('embedded-opentype'),
    url('../fonts/proxima-nova/proximanova-bold-webfont.woff') format('woff'),
    url('../fonts/proxima-nova/proximanova-bold-webfont.ttf') format('truetype'),
    url('../fonts/proxima-nova/proximanova-bold-webfont.svg#proxima_nova_rgbold') format('svg');
  font-weight: normal;
  font-style: normal
}

a {
  text-decoration: none;
}

blockquote {
  margin-left: 2em
}

:root {
  --bg-main: rgb(255, 228, 253);
  --menu-main: rgb(112, 0, 97);
  --menu-main-50: rgba(182, 43, 124, 0.3);
  --menu-lit: rgb(242, 98, 182);
  --menu-current: rgb(212, 76, 230);
  --main-link: rgb(212, 72, 126);
  --main-link-hoover: rgb(80, 60, 177);
  --main-th: rgba(94, 45, 61, 0.7);
  --main-input-back: rgba(91, 75, 80, 0.3);
  --main-button-back: rgb(236, 144, 209);
  --main-input-border: rgba(91, 75, 80, 1);
}

body {
  background-color: var(--bg-main);
  color: #000;
  font-size: 16px;
  line-height: 1em;
  font-family: 'Cairo', sans-serif;
}

input,
button {
  font-family: 'Cairo', sans-serif;
}

#header {
  height: 130px;
  margin-left: 40px;
  line-height: 1em;
}

#headlogo {
  margin: 22px 13px;
}

#headlogo img {
  position: relative;
  width: 690px;
  z-index: 1000;
}

#year {
  position: absolute;
  left: 460px;
  top: 26px;
  z-index: 900;
  font-size: 230px;
  color: var(--menu-main);
  opacity: 0.3;
  font-family: proxima_nova_rgbold, sans-serif;
  font-weight: bold;
  line-height: 1em;
  text-shadow: 0 1.5px 1px #000;
}

.countdown {
  left: 620px;
  position: absolute;
  display: flex;
  width: 400px;
  height: 120px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#general {
  margin-top: 70px;
}

#menu {
  top: 0;
  left: 1050px;
  right: 0px;
  z-index: 2000;
  position: fixed;
  height: 1400px;
  font-family: 'proxima_nova_rgbold', sans-serif;
  background-attachment: fixed;
  background-image: linear-gradient(to right, var(--menu-main), var(--bg-main));
  color: #000;
  text-align: left;
  font-size: 16px;
  padding: 0px 0px;
  line-height: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 1px 1px #000;
  overflow: hidden;
}

#menu ul {
  margin-top: 20px;
  margin-left: 20px;
}

#menu ul li {
  display: block;
  cursor: pointer;
}

#menu ul li a {
  display: block;
  padding: 10px 0px 10px 20px;
  color: #fff;
}

#menu ul li a:hover {
  color: var(--bg-main);
  background-color: var(--menu-lit);
}


#menu ul li.current a {
  color: var(--menu-current);
}

#menu ul li.archivename {
  text-indent: 20px;
  font-size: 12px;
  margin-top: 40px;
  margin-bottom: 10px;
  color: var(--back-main);
  opacity: 0.5;
}


#content {
  position: absolute;
  width: 950px;
  margin-left: 30px;
  margin-right: 30px;
  padding: 2em 1em 3em 1em;
  color: #444;
  line-height: 1.4em;
  text-align: justify;
  z-index: 3000;
}

#content a {
  color: var(--main-link);
}

#content a:hover {
  color: var(--main-link-hoover);
}

#content h1,
#content h2,
#content h3,
#content h4 {
  font-weight: normal;
  color: #000;
  line-height: 1.3em;
  clear: both;
}

#content h3 {
  text-transform: uppercase;
  padding: 1em 0;
}

#content h1 {
  padding: 0 0 1em 0;
}



#content ul,
#content ol ul {
  margin: 0.6em 0;
  list-style: none;
}

#content>ul>li {
  background-image: url('../img/bullet.png');
  background-repeat: no-repeat;
  background-position: 0px 4px;
  margin-bottom: .4em;
  margin-left: 0px;
  padding-left: 34px;
}

#content ol li {
  margin-bottom: .4em;
}

#content table {
  width: 800px;
}

#content table th {
  background: rgba(91, 75, 80, 0.3);
}

#content table th,
#content table td {
  padding: 2px 5px;
}

#content table td {
  font-size: 14px;
}

#content table td a {
  color: rgba(0, 100, 133, 1);
  text-decoration: underline;
}

.blue {
  color: #0558b4;
}

.guestname {
  color: var(--main-link);
  font-weight: bold;
}

.form_field {
  margin-bottom: 1em;
}

input,
button {
  padding: 3px;
  border: 2px solid #888;
  margin: 0.3em 0 0 0;
}

input[type=text] {
  width: 400px;
  background-color: var(--main-input-back);
  border: 0px;
  box-shadow: 0 1px 1px var(--main-input-border);
}

button {
  background-color: var(--main-button-back);
  padding: 2px 20px 2px 20px;
  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
  border-right: 1px solid #666;
  border-bottom: 1px solid #666;
  cursor: pointer;
  font-size: 28px;
  line-height: 46px;
  font-family: 'proxima_nova_rgbold', sans-serif;
  text-transform: uppercase;
  box-shadow: 0 2px 3px var(--main-input-border);
}

button:active {
  background-color: #999;
  border-top: 2px solid #666;
  border-left: 2px solid #666;
  border-right: 2px solid #eee;
  border-bottom: 2px solid #eee;

}

.form_alert {
  background-color: #fbb;
  border-color: #f33;
}

#status {
  color: #080;
}

.ulist {
  margin-top: 1.5em;
  margin-left: .5em;
}

.ulist div {
  margin-bottom: .2em;
  border-bottom: dotted 1px #aaa;
  overflow: hidden;
}

hr {
  background-color: var(--menu-main);
  height: 2px;
  width: 100%;
  margin: 1.5em 0 1em 0;
}

.rmargin {
  margin-right: 2em;
}

.media {
  float: left;
  width: 40%;
  height: auto;
  margin: 0 30px 30px 0;
}

#logo_x {
  float: right;
  width: 300px;
  height: 300px;
  overflow: hidden;
}

#logo_x>img {
  width: 400px;
  margin-top: -50px;
  margin-left: -45px;
}

.sticky {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
}

#fb_main {
  margin: 10px 74px;
  display: none;
}

#fb_main img {
  margin-top: 2em;
  width: 30px;
  box-shadow: 0 2px 4px #000;
}

.gallery_image {
  margin: 10px 0px;
  width: 960px;
  height: auto;
}

#menuimg {
  margin: 20px 0 0 20px;
}

.backstar {
  opacity: 0.1;
  position: absolute;
  z-index: 100;
  color: var(--menu-main);
  transform-origin: 50% 50%;
  pointer-events: none;
  line-height: 1;
}

#regform {
  z-index: 3000;
}

.nomargin {
  margin: 0 !important;
  padding: 0 !important;
}

.fameblock {
  float: left;
  margin-right: 10px;
}

.famebar {
  clear: both;
  padding: 5px 20px;
  background-color: var(--menu-main-50);
  margin: 10px 0;
  box-shadow: 0 2px 3px var(--main-input-border);
  width: 400px;
}

.famebar a {
  font-weight: bold;
  color: var(--main-link) !important;
}

.famebar img {
  margin: 5px 20px 5px 0px;

  height: 60px;
  width: auto;
  float: left;

}

.focus {
  padding: 1em 2em;
  background-color: var(--menu-main-50);
  font-weight: bold;
}

.orgpic {
  position: absolute;
  left: 700px;
  width: 270px;
  height: auto;
  margin-top: 15px;
  box-shadow: 0 2px 8px var(--main-input-border);
  border: 1px solid var(--main-input-border);
  opacity: 0.8;
}

#menuspacer {
  height: 10px;
}


.flip-clock {
  text-align: center;
  perspective: 400px;
  margin: 20px auto;
}

.flip-clock *,
.flip-clock *:before,
.flip-clock *:after {
  box-sizing: border-box;
}

.flip-clock__piece {
  display: inline-block;
  margin: 0 5px;
}

.flip-clock__slot {
  font-size: 16px;
}

.card {
  display: block;
  position: relative;
  padding-bottom: 0.72em;
  font-size: 40px;
  line-height: 0.95;
}

.card__top,
.card__bottom,
.card__back::before,
.card__back::after {
  display: block;
  height: 0.72em;
  color: #ccc;
  background: #222;
  padding: 0.25em 0.25em;
  border-radius: 0.15em 0.15em 0 0;
  backface-visiblity: hidden;
  transform-style: preserve-3d;

  transform: translateZ(0);
}

.card__bottom {
  color: #FFF;
  position: absolute;
  top: 50%;
  left: 0;
  border-top: solid 1px #000;
  background: #393939;
  border-radius: 0 0 0.15em 0.15em;
  pointer-events: none;
  overflow: hidden;
}

.card__bottom::after {
  display: block;
  margin-top: -0.72em;
}

.card__back::before,
.card__bottom::after {
  content: attr(data-value);
}

.card__back {
  position: absolute;
  top: 0;
  height: 100%;
  left: 0%;
  pointer-events: none;
}

.card__back::before {
  position: relative;
  z-index: -1;
  overflow: hidden;
}

.flip .card__back::before {
  -webkit-animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
  animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.31.85);
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  transform-origin: center bottom;
}

.flip .card__back .card__bottom {
  transform-origin: center top;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
  animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
}

@-webkit-keyframes flipTop {
  0% {
    transform: rotateX(0deg);
    z-index: 2;
  }

  0%,
  99% {
    opacity: 0.99;
  }

  100% {
    transform: rotateX(-90deg);
    opacity: 0;
  }
}

@keyframes flipTop {
  0% {
    transform: rotateX(0deg);
    z-index: 2;
  }

  0%,
  99% {
    opacity: 0.99;
  }

  100% {
    transform: rotateX(-90deg);
    opacity: 0;
  }
}

@-webkit-keyframes flipBottom {

  0%,
  50% {
    z-index: -1;
    transform: rotateX(90deg);
    opacity: 0;
  }

  51% {
    opacity: 0.99;
  }

  100% {
    opacity: 0.99;
    transform: rotateX(0deg);
    z-index: 5;
  }
}

@keyframes flipBottom {

  0%,
  50% {
    z-index: -1;
    transform: rotateX(90deg);
    opacity: 0;
  }

  51% {
    opacity: 0.99;
  }

  100% {
    opacity: 0.99;
    transform: rotateX(0deg);
    z-index: 5;
  }
}

#sticker {
  position: absolute;
  top: 16px;
  left: 810px;
  width: 128px;
  height: 128px;
  background-image: url("../img/8edycja.png");
  transform: rotate(15deg);
  background-size: cover;
  z-index: 1100;
  image-rendering: smooth;
}

#menuToggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 14px 16px;
  width: 100%;
  background: var(--menu-main);
  color: #fff;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'proxima_nova_rgbold', sans-serif;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

#menuToggle span {
  display: inline-block;
}

#menuToggle:focus-visible {
  outline: 2px solid var(--menu-lit);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  html {
    overflow-x: hidden;
  }

  body {
    font-size: 15px;
    overflow-x: hidden;
  }

  #header {
    height: auto;
    margin: 20px 16px 10px;
  }

  #headlogo {
    margin: 0 auto;
    text-align: center;
  }

  #headlogo img {
    width: min(90vw, 360px);
    margin: 0 auto;
  }

  #year {
    position: static;
    font-size: clamp(60px, 22vw, 110px);
    opacity: 0.2;
    text-align: center;
    margin-bottom: 12px;
  }

  #sticker {
    position: static;
    margin: 20px auto 0;
    width: 96px;
    height: 96px;
    transform: rotate(10deg);
  }

  #menuToggle {
    display: flex;
  }

  #menu {
    position: static;
    height: auto;
    left: 0;
    right: 0;
    width: 100%;
    padding: 20px 0 10px;
    text-align: center;
    display: none;
  }

  #menu.menu-open {
    display: block;
  }

  #menu ul {
    margin: 0 auto;
    padding: 0 16px;
  }

  #menu ul li a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 14px;
  }

  #menu ul li:last-child a {
    border-bottom: none;
  }

  .sticky {
    position: static;
    width: 100%;
  }

  #menuspacer {
    display: none;
  }

  #content {
    position: static;
    max-width: none;
    width: auto;
    margin: 0 auto;
    padding: 1.5em 1.2em 2.5em;
  }

  #general {
    margin-top: 20px;
  }

  .countdown {
    position: static;
    width: 100%;
    height: auto;
    margin: 20px auto;
  }

  .gallery_image,
  #content img {
    width: 100%;
    height: auto;
  }

  #content table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-spacing: 0;
  }

  #content table thead,
  #content table tbody,
  #content table tr {
    display: table;
    width: 100%;
  }

  #content table td,
  #content table th {
    font-size: 13px;
    word-break: break-word;
  }

  #fb_main {
    margin: 20px auto;
    display: block;
    text-align: center;
  }

  #fb_main img {
    width: 40px;
  }

  .famebar {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
  }

  #content .famebar img {
    height: 42px;
    width: auto;
    margin: 5px 10px 5px 0;
    float: none;
    display: inline-block;
  }

  .backstar {
    display: none !important;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  #menu ul li a {
    font-size: 13px;
    padding: 10px 0;
  }

  #content {
    padding: 1.2em 1em 2em;
  }

  #headlogo img {
    width: min(92vw, 320px);
  }

  .countdown {
    padding: 10px 0;
  }

  #content .famebar img {
    float: none;
    margin: 0 auto 10px;
    display: block;
    height: 30px;
    width: auto;
  }

  .famebar {
    text-align: center;
    padding: 12px;
  }
}

#chat {
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  background-color: #121212;
  color: #85d6eb;
  padding: 20px;
  margin-top: 20px;
  border-radius: 8px;
  border: 2px solid #222;
  text-shadow: 0 0 5px #54b4c5;
  white-space: pre-wrap;
  overflow-y: auto;
  height: 60vh;
  box-shadow: inset 0 0 15px #000;

  /* CRT Scanlines */
  background-image: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(255, 255, 255, 0.1) 50%);
  background-size: 100% 4px;
}

.realtime_img {
  float: right;
  width: 20%;
  margin-left: 20px;
  margin-bottom: 20px;

}