@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');

:root {
  --primary: #fc00ff;
  --secondary: #00dbde;
  --dark: #212121;
  --light: #f3f3f3;
}

* {
  margin: 0;
  padding: 0;
}

body {
    font-family: "Caveat", cursive;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
background-color:#fbd9d8; 
    
}

.cardFlip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 709px; /* 70% viewport width */
    height: 1000px; /* 70% viewport height */
    perspective: 1000px;
}
    .cardFlip h2 {
        color: #d32e35;
        font-size: 32px;
        text-align:center;
        margin-bottom:20px;
        
    }
.cardFlip-content {
  width: 100%;
  height: 100%;
  transition: transform 1s;
  transform-style: preserve-3d;
  cursor: pointer;
  position: relative;
}

.cardFlip-content.is-flipped {
  transform: rotateY(180deg);
}

.cardFlip-inside {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0px 3px 18px 3px rgba(0, 0, 0, 0.4);
}

.cardFlip-inside--front {
    background-image: url("./image/Card2025.jpg");
    );
    background-size: contain;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cardFlip-inside--front h2 {
  color: #fff;
  font-size: 32px;
}

.cardFlip-inside--back {
  background-color: var(--light);
  transform: rotateY(180deg);
}

.cardFlip-back-content {
  width: 100%;
  height: 100%;
  color: #000;
  background-color: white;
  display: flex;
  flex-direction:column;
  align-items: center;
  justify-content: center;
}

p {
    text-align: center;
    margin: 50px;
    font-size: 60px;
}
.code {
    text-align:center;
    font-size:30px!important;
}
.buttons-container {
   margin-bottom:30px;
    margin-top:30px;
    display: flex; /* Используем flexbox для размещения кнопок в одной строке */
    gap: 10px; /* Расстояние между кнопками */
    justify-content: center;
}
.button-link {
    display: inline-block; /* Делаем ссылку блочным элементом */
    padding: 10px 20px; /* Внутренние отступы для кнопок */
    background-color: #d32e35; /* Цвет фона кнопок */
    color: white; /* Цвет текста кнопок */
    text-decoration: none; /* Убираем подчеркивание */
    border: none; /* Убираем границу */
    border-radius: 5px; /* Закругляем углы */
    cursor: pointer; /* Курсор в виде указателя */
    text-align: center; /* Выравниваем текст по центру */
    font-family: Arial;
}
.rules {
    text-align: center; /* Выравниваем текст по центру */
    font-family: Arial;
}
    .rules a {
        text-decoration: none;
        color: #d32e35;
    }
        .rules a:visited {
            text-decoration: none;
            color: #d32e35;
        }

.hidden {
    display: none;
}

svg {
    width: 20px;
    height: 20px;
    margin-right: 7px;
}

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    color: #777;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: capitalize;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
}

    button:hover, .button:hover {
        border-color: #cdd;
    }

 .copy-link {
    padding-left: 30px;
    padding-right: 30px;
}

.share-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.share-dialog {
    display: none;
    width: 95%;
    max-width: 500px;
    box-shadow: 0 8px 16px rgba(0,0,0,.15);
    z-index: -1;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 4px;
    background-color: #fff;
}

    .share-dialog.is-open {
        display: block;
        z-index: 2;
    }

header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.targets {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    margin-bottom: 20px;
}

.close-button {
    background-color: transparent;
    border: none;
    padding: 0;
}

    .close-button svg {
        margin-right: 0;
    }

.link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    background-color: #eee;
}

