/* Font */
@font-face {
    font-family: Font1;
    src: url("CalligraphRuss-Regular.ttf");
}
@font-face {
    font-family: Font2;
    src: url("CormorantGaramond-Regular.ttf");
}
@font-face {
    font-family: Font4;
    src: url("CormorantGaramond-SemiBold.ttf");
}
@font-face {
    font-family: Font5;
    src: url("CormorantInfant-Regular.ttf");
}

/*  */
@media (max-width: 600px) {
    .screen{
        width: 100%;
    }
    .panel{
        width: calc(100% - 60px);
    }
    .place_block{
        width:100%;
    }
}
@media (min-width: 600px) {
    .screen{
        width: 450px;
    }
    .panel{
        width: 430px;
    }
    .place_block{
        max-width: 420px;
    }
}
*{
    touch-action: manipulation;
}
html{
    overflow-x: hidden;
}
body{
    margin: 0;
    padding: 0;
    background-color: #fff;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-family: Font1;
    color: #a16868;
}
.screen {
    align-items: center;
    justify-content: flex-start;
    overflow-x: clip;
    touch-action: manipulation;
    min-height: 200vh;
}
.flex{
    display: flex;
}
.icenter{
    align-items: center;
}
.tcenter{
    text-align: center;
}
.center{
    justify-content: center;
}
.between{
    justify-content: space-between;
}
.around{
    justify-content: space-around;
}
.col{
    flex-direction: column;
}
.row{
    flex-direction: row;
}
.w{
    width: 100%;
}
.h{
    height: 100vh;
}
.bg {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}
.contain{
    background-size: contain !important;
}
/* flex */

/* FadersIN */
.hidden{
    transition: 2s;
    opacity: 0;
}
.visible{
    opacity: 1;
}

.fadein-left.hidden{
    transform: translateX(-99%);
}
.fadein-left.visible{
    
    transform: translateX(0);
}
.fadein-right.hidden{
    transform: translateX(99%);
}
.fadein-right.visible{
    
    transform: translateX(0);
}
.fadein-scale0.hidden{
    scale: 0;
}
.fadein-scale05.hidden{
    scale: 0.5;
}
.fadein-scale0.visible{ 
    scale: 1;
}
.fadein-scale05.visible{ 
    scale: 1;
}
.fadein-bottom.hidden{
    transform: translateY(99%);
}
.fadein-bottom.visible{
    
    transform: translateY(0);
}


.h1.title1 {
    font-size: 53px;
    margin-top: 100px;
    line-height: 38px;
    padding-left: 30px;
    padding-right: 30px;
}

.h1 {
    font-size: 50;
    text-align: center;
    color: #a16868;
}

.panel {
    background: #fff5f5;
    border-radius: 30px;
    margin-top: 130px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.stamp {
    background: url(4.png) no-repeat;
    width: 100px;
    height: 160px;
    background-position: center;
    background-size: contain;
}

.stamp.start {
    position: absolute;
    top: 50px;
}

.tripple {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin-top: 61px;
}

.left{
    font-family: font2;
    font-size: 16px;
}

.updown{
    border-top: 1px #aa886b solid;
    border-bottom: 1px #aa886b solid;
    height: 25px;
    align-items: center;
    display: flex;
}

.tripple .center {
    justify-content: center;
    align-items: center;
    font-family: 'Font3';
    width: 80px;
}

.day {
    font-size: 40px;
}

.year {
    font-size: 21px;
}

.right.updown {
    font-family: 'Font3';
    font-size: 18px;
    width: 84px;
    justify-content: center;
}

.aleft, .aright {
    width: 31px;
    height: 1px;
    background: #a16868;
}

.aleft {
    transform: rotateZ(45deg);
    margin-left: -12px;
}

.aright {
    transform: rotateZ(-45deg);
    margin-left: 10px;
}

.arrow-area {
    width: 100%;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
}

.arrow {
    margin-left: 20px;
    animation-name: pulse1;
    animation-duration: 1s;
    animation-fill-mode: linear;
    animation-iteration-count: infinite;
    animation-direction:normal;
}
.arrow.al{
    animation-delay: 0.1s;
}

@keyframes pulse1{
     0%{
        transform: translateY(0px)
     }   
    50%{
        transform: translateY(10px)
    }
    100%{
        transform: translateY(0px)
    }
}

p {
    text-align: center;
    font-family: 'Font2';
    font-size: 17px;
    line-height: 20px;
}

.photo_area {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
}

.photo {
    background-image: url(1.jpg);
    background-repeat: no-repeat;
    background-position: center;
    width: 210px;
    height: 240px;
    background-size: contain;
}
.photo_back.hidden {
    transition: 1s;
    transform: translateX(100px)
}
.photo_back.visible {
    transform: translateX(0px)
}

.photo_back {
    background-color: white;
    width: 197px;
    height: 270px;
    justify-content: center;
    align-items: center;
    display: flex;
    z-index: 0;
}

.bantik {
    background: url("3.png") no-repeat;
    width: 140px;
    height: 140px;
    background-position: center;
    background-size: contain;
    position: absolute;
    margin-left: -150px;
    margin-top: -210px;
    z-index: 1;
    transition:2s;
    transform: translateX(-500px);
}

.bantik.hidden{
    
}
.bantik.visible{
   transform:translateX(0px);
}
.bantik2 {
    background: url("6.png") no-repeat;
    width: 140px;
    height: 140px;
    background-position: center;
    background-size: contain;
    position: absolute;
    margin-left: 170px;
    margin-top: 300px;
    transform: rotateZ(351deg);
}
.bantik2.hidden{
    transform: translateY(-150px);
    transform: rotateZ(25deg);
}
.bantik2.visible{
   transform:translateY(0px);
   /* transform:rotateZ(0deg); */
}
.h1.title3 {
    margin-top: 100px;
}

.calendar {
    background: url(Calendar.png) no-repeat;
    width: 250px;
    height: 209px;
    background-size: contain;
}

.place_block {
    /* margin-top: 60px; */
    width: 100%;
    height: 390px;
    background: url(5.png) no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 2;
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.place_area {
    width: 100%;
    height: 427px;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.h1.place {
    margin-top: 60px;
    font-size: 45px;
}

.h2 {
    font-family: 'Font2';
    font-size: 19px;
    margin-top: 20px;
}

.street {
    font-family: 'Font2';
    font-size: 18px;
}

button {
    font-family: 'Font4';
    border: 2px #a16868 solid;
    color: #a16868;
    background: none;
    height: 35px;
    width: 80%;
    font-size: 19px;
}

.photo2 {
    background: url(2.jpeg) no-repeat;
    width: 100%;
    background-size: contain;
    height: 248px;
    background-position: center;
}

.bant {
    background: u;
}

.photo2_area {
    background: #fff;
    width: 210px;
    height: 280px;
    margin-top: 59px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotateZ(9deg);
}

.h1 {}

.h1.anket {
    margin-top: 120px;
}
.h1.anket > span{white-space: normal;letter-spacing: -20px;}

input[type="text"] {
    background: none;
    border: 1px #a16868 solid;
    width: 100%;
    height: 40px;
    border-radius: 7px;
    font-family: 'Font3';
    font-size: 15px;
    padding: 10px;
}

.h3 {
    font-family: 'Font2';
    font-weight: 600;
    font-size: 19px;
    margin-top: 12px;
    width: 100%;
    /* text-align: center; */
    color: #a16868;
    margin-left: 5px;
}

.form {
    width: 88%;
}

label {
    font-family: 'Font2';
    font-size: 21px;
}

.form input{
    margin-top: 10px;
}

.count_btn {
    background: none;
    border: none;
    font-family: 'Font3';
    font-size: 30px;
    width: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
}

span#counter_text {
    width: 70px;
    /* background: red; */
    font-family: 'Font5';
    border-bottom: 1px #a16868 solid;
    text-align: center;
    font-size: 30px;
}

.counter {
    margin-top: 20px;
}

button.send {
    margin-top: 20px;
    background: #fdebeb;
}
button:disabled{
    opacity: .4;
}
.h3.happy {
    margin-top: 22px;
    text-align: center;
    margin-left: 0;
}

.h1.waiting {
    font-size: 38px;
    margin-top: 40px;
}

.timer {
    font-size: 66px;
    font-family: 'Font1';
    width: 100%;
    height: 200px;
    justify-content: center;
    display: flex;
    flex-direction: row;
}

.clock {
    display: flex;
    gap: 4px;
    z-index: 1;
}


.countdown-item {
    max-height: 60px;
    width: 53px;
    text-align: center;
    display: flex;
    flex-flow: column;
}
.countdown-item p, .countdown-item span{
    padding: 0px;
    margin: 0px;
}

div#countdown {
    width: 100%;
}

.letter {
    background: url(7.png) no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    width: 170px;
    height: 180px;
    z-index: -0;
    margin-top: 50px;
}

.h1.seeya {
    /* line-height: 40px; */
    z-index: 2;
    margin-top: 60px;
    font-size: 52px;
    z-index: 5;
}

.stamp.end {
    position: absolute;
    margin-top: 10px;
}

.stamp_area {
    width: 100%;
    display: flex;
    justify-content: center;
    height: 99px;
}

.clouds {
    position: absolute;
    background: url(head.png) no-repeat;
    background-size: cover;
    height: 300px;
    width: 100%;
    background-position: center;
    top: 0;
    max-width: 430px;
}

.baloon {
    background: url(8.png) no-repeat;
    background-position: center;
    background-size: contain;
    height: 180px;
    width: 150px;
    position: absolute;
    animation: 2s infinite alternate baloon_rotator;
}

@keyframes baloon_rotator{
    0%{
        transform: rotateZ(-15deg) 
    }
    100%{
        transform: rotateZ(15deg)
    }
}
@keyframes fallup{
    0%{
        transform: translateY(0px);
    }
    100%{
        transform: translateY(-3000px);
    }
}
.baloon.left {
    height: 210px;
    width: 150px;
    left: -30px;
    animation-delay: 1s;
    margin-left: -54px;
    margin-top: 280px;
}
.baloon.right {
    height: 210px;
    width: 120px;
    right: 0;
    margin-right: -35px;
}

.baloons {
    width: 100%;
    max-width: 430px !important;
    position: relative;
}
.baloons.fallup{
    animation: 60s fallup;
}


.closed{
    /* opacity: 0; */
    z-index:-2;
    overflow: hidden !important;
    max-height: 100% !important;
    position: absolute;
    width: 100%;
}

.mainletter {
    width: 100%;
    min-height: 100vh;
    max-width: 460px;
    background: url(letter.jpeg) no-repeat;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    transition: 1s;
    transform: translateY(0px);
    transform: rotateY(0deg);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mainletter.opened{
    transform: translateY(-1000px);
    /* transform: rotateY(-20deg); */
    opacity: 0;
    z-index: 5;
}

.spacer {
    height: 220px;
}

.info {
    font-size: 25px;
    font-family: 'Font2';
    animation: 2s infinite alternate info_warn;
    margin-top: 260px;
}
@keyframes info_warn{
        0%{
        transform: rotateZ(-5deg) 
    }
    100%{
        transform: rotateZ(5deg)
    }
}