:root {
    /* COLORS */

    --header: #5EACF5;
    --header-box: #dd132086;

    --header-text-1: #fff;
    --header-text-2: #fff;

    --site-background: linear-gradient(165deg, #0A4D8C 19.57%, #DD1321 75.05%);    


    --main-title: #fff;
    --main-under-title: #fff;

    --main-line-text: #fff;

    --comment-title: #fff;
    --comment-name: #243F70;
    --comment-shadow: 0px 4px 6.1px 0px #088FE3;

    --welcome-popup: #FF2433;
    --welcome-popup-title: #fff;
    --welcome-popup-message: #fff;
    --welcome-popup-button: #6EC02C;
    --welcome-popup-button-text: #fff;
    --welcome-popup-button-shadow: 3px 4px 4.8px 0px rgba(255, 255, 255, 0.23) inset, 0px 4px 5.7px 0px rgba(16, 62, 155, 0.24);
 
    --popup-line-text: #fff;

    --first-popup: #FF2433;
    --price-colo: #52ABFF;
    --first-popup-title: #fff;
    --first-popup-message: #fff;

    --second-popup: #FF2433;
    --second-popup-title: #fff;
    --second-popup-message: #fff;
    --second-popup-list: #ffffffaa;
    --second-button: #fff;

            

    /* SRC */

    --close: url(./image/white_close.svg);
    --back: url(./image/white_back.svg);


    --logo: url(./image/logo.png);


    --main-image: url(./image/main_Image.png);

    --card: url(./image/card.png);
    --card-up: url(./image/card_up.png);
    --card-down: url(./image/card_down.png);

    --vector: url(./image/vector.svg);
    --main-line: url(./image/main_line.svg);
    --popup-line: url(./image/popup_line.svg);

}





*{
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.wrapper{
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.b_color{
    color: var(--b-color);
}


.header{
    height: 54px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 11px 0 5px;
    background: var(--header);
}

.close_icon{
    background-image: var(--close);
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

.back_icon{
    background-image: var(--back);
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
}

.header_block{
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.logo{
    background-image: var(--logo);
    width: 67px;
    height: 28px;
    background-repeat: no-repeat;
    background-size: contain;
}

.flex{
    display: flex;
    flex-direction: column;
    align-items: start;
}

.header_double_text{
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    padding: 3px 15px 3px 6px;
}

.header_double_text_item1{
    color: var(--header-text-1);
    font-size: 14px;
}
.header_double_text_item2{
    color: var(--header-text-2);
    font-size: 13px;
}

.main{
    width: 100%;
    height: 100%;
    background: var(--site-background);
    padding: 0;
}

.main_image{
    width: 100%;
    height: 189px;
    background-image: var(--main-image);
    background-size: contain;
    background-repeat: no-repeat;
}

.welcome_text{
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-top: 15px;
    color: var(--main-title);
}

.welcome_small_text{
    width: 100%;
    padding: 0 23px;
    font-size: 16px;
    font-weight: 500;
    line-height: 17px;
    margin-top: 6px;
    color: var(--main-under-title);
    text-align: center;
}

.cards_container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    row-gap: 17px;
    column-gap: 11px;
    justify-content: center;
    margin-top: 13px;
    perspective: 1000px; 

}

.card{
    width: 156px;
    height: 95px;
    cursor: pointer;
    transition: transform 0.8s;
    transform-style: preserve-3d; 
    position: relative;
}

.card_front, .card_back{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
}

.card_front{
    background-image:var(--card);
    background-size:cover;
}

.card_back{
    transform: rotateY(180deg);
    background-image:var(--card-up);
    background-size:cover;
}

.flipped {
    transform: rotateY(180deg);
}



.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    border-radius: 26px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 20px 0;
    width: 100%;
    max-width: 330px;
    width: 100%;
}


.popup-button {
    width: 216px;
    height: 51px;
    background: var(--welcome-popup-button);
    border-radius: 25.5px;
    border: none;
    color: var(--welcome-popup-button-text);
    box-shadow: var(--welcome-popup-button-shadow);
    text-align: center;
    font-size: 32px;
    font-style: normal;
    font-weight: 800;
    line-height: 21px; 
    margin-top: 9px;
}

.main_line{
    width: 100%;
    height: 59px;
    background-image: var(--main-line);
    margin-top: 25px;
    margin-bottom: -6px;
    position: relative;
    padding-top: 18px;
}

.main_line_vector{
    background-image: var(--vector);
    width: 41px;
    height: 41px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -20px;
}

.main_line_text{
    color: var(--main-line-text);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: 21px;
}

.comment_title{
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    color: var(--comment-title);
    margin-top: 19px;
}






.welcome-popup .popup-content {
    padding: 21px 0px 7px 0px;
    max-width: 320px;
    background: var(--welcome-popup);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 26px;
}

.popup-title {
    margin-top: 17px;
    color: var(--welcome-popup-title);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; 
    max-width: 288px;
}

.popup-message{
    color: var(--welcome-popup-message);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 900;
    line-height: 22px;
    margin-top: 11px;
    max-width: 317px;
}

.popup_line{
    background-image: var(--popup-line);
    width: 100%;
    height: 59px;
    color: var(--popup-line-text);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: 21px; 
    padding: 14px 0px 0 0px;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-top: 11px;
    
}

.popup {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup[style*="flex"] {
    opacity: 1;
}

.welcome-popup-image{
    width: 144px;
    height: 86px;
    border-radius: 12px;
    background-image: var(--card-up);
    background-repeat: no-repeat;
    background-size: cover;
    border: 2px solid white;
    box-shadow: 0px 4px 5.3px #900EAD;
}

.welcome-popup-button{
    width: 216px;
    height: 51px;
    background: var(--welcome-popup-button);
    border-radius: 25.5px;
    border: none;
    color: var(--welcome-popup-button-text);
    box-shadow: var(--welcome-popup-button-shadow);
    text-align: center;
    font-size: 32px;
    font-style: normal;
    font-weight: 800;
    line-height: 21px; 
    margin-top: 9px;
}


.first-prize-content{
    background: var(--first-popup);
    position: relative;
}


.popup-smile{
    background-image: url(./image/smile.png);
    width: 96px;
    height: 96px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -35px;
}

.first-prize-title{
    margin-top: 79px;
    text-align: center;
    color: var(--first-popup-title);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: 22px;
}

.first-prize-message{
    color:var(--first-popup-message);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
}

.first-prize-button{
    margin-top: 14px;
}


.second-prize-content{
    background: var(--second-popup);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.second-prize-title{
    color: var(--second-popup-title);
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: 22px; 
    margin-top: 19px;
    white-space: nowrap;
}

.second-prize-image{
    background-image: var(--card-up);
    box-shadow: 0px 4px 5.3px #900EAD;
    width: 154px;
    height: 96px;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 12px;
    margin-top: 11px;
    border: 2px solid white;
}
.second-prize-message{
    text-align: center;
    color: var(--second-popup-message);
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 22px; 
}

.second-prize-list{
    display: flex;
    padding-left: 41px;
    padding-right: 15px;
    flex-direction: column;
    align-items: start;
    margin-top: 8px;
    gap: 6px;
}

.second-prize-list li{
    color: var(--second-popup-list);
    text-align: start;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

.second-prize-button {
    color: #FFFFFF;  /* Білий текст */
    text-align: center;
    font-size: 24px;
    font-style: normal;
    font-weight: 800;
    line-height: 21px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    animation: winButtonGreen 1.5s infinite;
    box-shadow: 0 0 10px rgba(105, 240, 174, 0.5);
    background-color: #4CC278;  /* Базовий зелений колір для кнопки */
    border-radius: 25.5px;  /* Щоб співпадало з іншими кнопками */
  }
  
  /* Пульсація зеленої кнопки */
  @keyframes winButtonGreen {
    0% {
      transform: scale(1);
      box-shadow: 0 0 10px rgba(76, 194, 120, 0.5);
    }
    50% {
      transform: scale(1.05);
      box-shadow: 0 0 20px rgba(76, 194, 120, 0.8);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 10px rgba(76, 194, 120, 0.5);
    }
  }
  
  /* Світіння краю кнопки в зелених тонах */
  .second-prize-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, #4CC278, #A9E70C, #06D6A0, #4CC278);
    background-size: 400% 400%;
    animation: glowBorderGreen 3s ease infinite;
    border-radius: inherit;
  }
  
  @keyframes glowBorderGreen {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  /* Ефект блиску при наведенні */
  .second-prize-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
  }
  
  .second-prize-button:hover::after {
    animation: shineGreen 1s;
  }
  
  @keyframes shineGreen {
    100% {
      left: 150%;
    }
  }
  
  /* Ефект натискання */
  .second-prize-button:active {
    transform: scale(0.95);
    background-color: #3AAE64;  /* Дещо темніший зелений при натисканні */
  }

@media screen and (max-width: 425px){
    .header_double_text_item1{
        font-size: 12px;
    }
    .header_double_text_item2{
        font-size: 11px;
    }
    .header_double_text{
        padding: 3px 8px 3px 6px;
    }
}

@media screen and (max-width: 379px) {
    .phone{
        display: none;
    }
}

@media screen and (max-width: 365px) {
    .welcome_text{
        margin-top: 0px;
    }
    .logo{
        width: 67px;
        height: 28px;
    }
    .header_double_text_item1{
        font-size: 12px;
    }
    .header_double_text_item2{
        font-size: 11px;
    }
}

.comment_container{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(314deg, #FFF 5.61%, #94D8CC 74.67%);
    padding-bottom: 20px;
}

.commentImage{
    width: 115px;
    height: 30px;
}

.logoRate{
    width: 69px;
    height: 13px;
}

.comment_head{
    display: flex;
    gap: 7px;
}

.comment_head__content{
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.comment{
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 0 auto;
    margin-top: 21px;

}

.rateing{
    width: 77px;
    height: 14px;
    margin-top: 9px;
}

.userName{
    color: #474552;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 85.6%;
    margin-top: 7px;
}

.date{
    color: #7F7E92;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 85.6%; 
    margin-top: 6px;
}

.comment_hr{
    width: 100%;
    height: 1px;
    background-color: #EEEEEE;
    margin: 0 auto;
    margin-top: 11px;
}


.user_message{
    color: #000;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-top: 13px;
}