.floatLeft { float: left; }
.floatRight { float: right; }
.clear { clear: both; line-height: 0; height: 0; }
.alignCenter { text-align: center; }

body {
  font: 14px Helvetica, Arial, sans-serif;
  color: black;
  margin: 0;
  padding: 0;
  background-color: white;
}

a {
  color: #00B7FF;
}

header {
  background-color: black;
  position: relative;
  margin: 0;
  padding: 0;
}

header img {
  width: 100%;
  margin: 0;
  padding:0;
}

.attention {
	position: fixed;
	bottom: 0;
	width: 100%;
}

.attention-text {
	background: red;
	padding: 18px 0;
  color: white;
  font-weight: bold;
  font-size: 16pt;
  text-align: center;
  width: 100%;
}

.pressrelease {
  font-size: 24px;
  background-color: black;
  color: white;
  padding: 100px 15% 12px 15%;
  margin: 0; 
}

.buy-ticket-button-long {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  text-align: center;
  z-index: 2;
}

#container {
  display: flex;
  flex-direction: row;     /* make main axis horizontal (default setting) */
  justify-content: center; /* center items horizontally, in this case */
  align-items: center;     /* center items vertically, in this case */
  /* height: 300px; */
}

.box {
  /* width: 300px; */
  margin: 5px;
  text-align: center;     /* will center text in <p>, which is not a flex item */
}

.buy-ticket-button-long-attention a {
  font-size: 14px;
  color: red;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  background: white;
  padding: 6px 20px;
  border: 5px solid white;
  border-radius: 28px;
  font-weight: bold;
  margin-left: 30px;
}

.buy-ticket-button-long-attention2 a {
  font-size: 15px;
  color: red;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  background: white;
  padding: 6px 10px;
  border-radius: 18px;
  font-weight: bold;
}

.buy-ticket-button-long a {
  display: inline-block;
  font-size: 21px;
  color: #131313;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  background: #ffd21f;
  padding: 14px 30px 12px;
  border: 3px solid #131313;
  border-radius: 999px;
  font-weight: bold;
  margin-right: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.03em;
}

.buy-ticket-button-long a:hover {
  background: #ffe669;
}

.buy-ticket-button-simple {
  margin: 0px auto 60px auto;
  text-align: center;
  width: 100%;
}

.buy-ticket-button-simple a {
 font-size: 14px;
 color: black;
 text-decoration: none;
  text-align: center;
  background: white;
 padding: 12px 21px;
 border: 4px solid white;
 border-radius: 28px;
  font-weight: bold;
}

.videos {
  width: 100%;
  text-align: center;
  background-color: black;
}
.videos iframe {
  width: 80%;
  height: 50vh;
  margin-bottom: 40px;
}

.video {
  width: 46%;
  text-align: center;
  float: left;
}

.video:nth-child(even) {
  margin: 30px 4% 30px 0;
}

.video:nth-child(odd) {
  margin: 30px 0 30px 4%;
}

/* Появление блоков. Разметка ставит .reveal, скрипт добавляет .reveal-visible.
   Тайминги — в переменных, чтобы отдельные блоки настраивались без дублирования правил. */
:root {
  --reveal-duration: 420ms;
  --reveal-distance: 24px;
  --reveal-easing: ease-out;
}

.reveal {
  opacity: 0;
  translate: 0 var(--reveal-distance);
  transition:
    opacity var(--reveal-duration) var(--reveal-easing),
    translate var(--reveal-duration) var(--reveal-easing);
}

.reveal-visible {
  opacity: 1;
  translate: none;
}

/* Ниже переопределяются только переменные: если задавать здесь opacity и translate,
   правило перебьёт .reveal-visible по специфичности и потребует !important. */
header img.reveal {
  --reveal-duration: 540ms;
  --reveal-distance: 6px;
}

.buy-ticket-button-long.reveal {
  --reveal-duration: 480ms;
  --reveal-distance: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-visible {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

/* Всплывающее окно с iframe */
.popover {
  width: 800px;
  max-width: calc(100% - 40px);
  height: 90vh;
  max-height: calc(100% - 40px);
  padding: 0;
  margin: auto;
  border: none;
  border-radius: 4px;
  background: white;
  overflow: hidden;
}

.popover:focus {
  outline: none;
}

.popover::backdrop {
  background: rgba(0, 0, 0, 0.87);
}

.popover-frame {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 40px;
  border: none;
  background: white;
}

.popover-close {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: black;
  font-size: 28px;
  line-height: 36px;
  cursor: pointer;
}

.popover-close:focus-visible {
  outline: 2px solid #999;
  outline-offset: -2px;
}

/* фон не должен скроллиться под открытым окном */
html.popover-open,
html.popover-open body {
  overflow: hidden;
}

.socialLink {
  height: 40px;
  margin: 4px;
}

.map {
  margin-top: 50px;
}

#messageMobile {
  display: none;
}

@media (max-width : 1366px) and (max-height: 1024px) {
  /* .buy-ticket-button-long {
    bottom: 10vh;
    text-align: right;
  } */

  /* .buy-ticket-button-long a {
    margin-left: 60%;
  } */
}

@media (max-width : 1366px) and (max-height: 768px) {
  
}

@media (max-width : 640px) {
  #messageMobile {
    display: block;
  }
  #message {
    display: none;
  }

	.attention-text {
		display: none;
	}
  
	.pressrelease {
		/* width: 90%; */
		margin: 0 auto;
    font-size: 16px;
    padding: 16px;
	}

  .buy-ticket-button-simple {
  margin: 8px auto 40px auto;
  text-align: center;
  width: 100%;
}

.buy-ticket-button-simple a {
  font-size: 14px;
  color: white;
  text-decoration: none;
  text-align: center;
  background: black;
  padding: 8px 14px;
  border: 3px solid white;
  border-radius: 28px;
  font-weight: bold;
}

	.buy-ticket-button-long {
		/* margin: 0px auto;
		position: absolute;
		text-align: center;
		top: 6vh;
    width: 100%; */
    display: none;
	}

	.buy-ticket-button-long a {
		/* margin-left: 30%;
	  font-size: 14px;
    padding: 6px 20px;
	  border-radius: 28px;
	  font-weight: bold; */
	}

	.buy-ticket-button-long a:hover {
		transition: none;
	  }
  
  /* .videos { width: 92%; } */
  .video {
    /*border: 1px solid #ccc;*/
    width: 100%;
    margin: 10px 0 !important;
    text-align: center;
    background-color: black;
  }

  .popover {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .popover-frame {
    padding: 36px 10px 10px 10px;
  }
}
