html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

@font-face {
    font-family: "Grtsk Peta";
    src: url(/local/templates/new_year/fonts/Grtsk-Peta-Regular.woff2) format("woff2"),url(/local/templates/new_year/fonts/Grtsk-Peta-Regular.ttf) format("truetype"),url(/local/templates/new_year/fonts/Grtsk-Peta-Regular.otf) format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Grtsk Peta";
    src: url(/local/templates/new_year/fonts/Grtsk-Peta-Medium.woff2) format("woff2"),url(/local/templates/new_year/fonts/Grtsk-Peta-Medium.ttf) format("truetype"),url(/local/templates/new_year/fonts/Grtsk-Peta-Medium.otf) format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Grtsk Peta";
    src: url(/local/templates/new_year/fonts/Grtsk-Peta-SemiBold.woff2) format("woff2"),url(/local/templates/new_year/fonts/Grtsk-Peta-SemiBold.ttf) format("truetype"),url(/local/templates/new_year/fonts/Grtsk-Peta-SemiBold.otf) format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: "Grtsk Peta";
    src: url(/local/templates/new_year/fonts/Grtsk-Peta-Bold.woff2) format("woff2"),url(/local/templates/new_year/fonts/Grtsk-Peta-Bold.ttf) format("truetype"),url(/local/templates/new_year/fonts/Grtsk-Peta-Bold.otf) format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap
}
html {
    font-family: "Grtsk Peta",Arial,sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -ms-scroll-chaining: none;
    overscroll-behavior: none;
    scroll-behavior: smooth;
}




.logo{
    position: absolute;
    top:30px;
    z-index: 999;
    left: calc(50% - 6vw);
    width: 12vw;
}
.logo img{
    width: 100%;
}
.logoleft{
    left:100px;
}
@media (max-width: 1600px){
    .ice{
        width: 340px;   
        left: calc(50% - 240px);
        top: 10%;
    }
}
.ice{
    position: absolute;
    width: 600px;
    z-index: 9999;
    left: calc(50% - 300px);
    top: 3%;
}

.text{
    font-size: 2.4vw;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}
.year{
    font-size: 3vw;
    font-size: 4vw;
    margin-bottom: 10px;
}
.yearright{
    position: absolute;
    color: #ffffff;
    font-weight: bold;
    z-index: 99;
    top:30px;
    right: 100px;
    font-size: 2.5vw;
}
@media (max-width: 1200px){
    .year{
        font-size: 4vw;
        margin-bottom: 10px;
    }
}
.main{
    display: flex;
    
    height: fit-content;
    /* min-height: 650px; */
}
.footer{
    height: 300px;
    position: relative;
}

.card{
    width: 50%;
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 5px;
    
}
@keyframes snow {
    0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
    100% {background-position: 500px 1000px, 400px 400px, 300px 300px;}
}
@keyframes snowleft {
    0% {background-position: 0px 0px, 0px 0px, 0px 0px;}
    100% {background-position: 1000px 200px, 400px 100px, 300px 100px;}
}
.snow{
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('/local/templates/new_year/img/snowflake.png'), url('/local/templates/new_year/img/snowflake3.png'), url('/local/templates/new_year/img/snowflake2.png');
    animation: snow 20s linear infinite;
    z-index: 88;
}
.snowl{
    animation: snowleft 20s linear infinite;
}
.onsnow{
    opacity: 1;
    transition: 2s;
}

.postcard{
    margin: 150px auto 0;
    padding: 40px;
    width: 24vw;
    max-width: 520px;
    height: fit-content;
    border-radius: 30px;
    z-index: 9999;
}
@media (max-width: 1400px){
    .postcard{
        width: 28vw;
        
    }   
}
@media (max-width: 1200px){
    .postcard{
        padding: 20px;
        margin-top: 110px;
    }   
}
.red{
    background-color: #DE000A;
}
.blue{
    background-color: #013F76;
}
.title{
    color: white;
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0px 0;
}
@media (max-width: 1400px){
    .title{
        font-size: 3vw;
        margin: 0px auto 2vw;
    }
}
@media (max-width: 1200px){
    .title{
        font-size: 30px;
        margin: 0px auto 2vw;
    }
}

.pic img{
    display: block;
    margin: 70px auto 0;    
    width: 80%;
    max-width: 397px;
}
.hand{
    display: block;
    margin: 35px auto 0;
    width: fit-content;
}
.hand img{
    width: 6.845vw;
    max-width: 100px;
}
.hand{
    animation: shake 1s;
    animation-iteration-count: infinite;

}
.postcard{
    box-shadow: none;
    transition: 0.5s;   
}
.postcard:has(.hand :hover){
    box-shadow: 0px 0px 10px 10px rgba(244, 244, 244, 0.35);
    transition: 0.5s;   
}
.active{
    transform: scaleY(-1);
    transition: 1s;
    /* box-shadow: 0px 0px 10px 10px rgba(244, 244, 244, 0.35); */
}
.video{
    position: absolute;
    z-index: 9999;
    /* width: calc(100% - 80px); */
    width: 80%;
    height: calc(100% - 80px);
    height: 0;
    padding-top: 143%;
    margin:  auto;
    transform: scaleY(-1);
    display: none;
    opacity: 0;
    
}
@media (max-width: 1200px){
    /* .video{
        width: calc(100% - 40px);
        height: calc(100% - 40px);    }    */
}
.active .video{
    /* display: block; */
    
    opacity: 1;
    transition: 1s;
}

.active .title,.active .pic, .active .hand{
    opacity: 0;
    transition: 0.5s;
}
.activehide .title,.activehide .pic, .activehide .hand{
    /* display: none; */
    opacity: 0;
}
.activehide .video{
    display: block;
    border-radius: 30px;
    overflow: hidden;
}
.activevideohide {
    opacity: 0;
    transition: 1s;
}
.card .video iframe{

    height: 102%;
    width: 104%;
    position: absolute;
    top: -2%;
    left: -2%;
    margin: 0 auto;
    display: block;
    border-radius: 30px;
}
.message{
    display: none;
    width: 420px;
    padding: 30px;
    border-radius: 30px;
    /* background-color: #ffffff3a; */
    position: absolute;
    z-index: 9999;
    top:200px;
    left:calc(50% - 240px);
    opacity: 0;
}
.mlogo img{
    display: block;
    margin: 30px auto;
}
.showmessage{
    display: block;
    opacity: 1;
    transition: opacity 1s;
}
.message h1{
    font-size: 30px;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}
.message p{
    font-size: 16px;
    text-align: center;
    color: #ffffff;
    line-height: 20px;
    margin-bottom: 5px;
}

.mainthanks .red{
    width: 0;
} 
.mainthanks .logo{
    display: none;
}
.mainthanks .blue{
    width: 100%;
}
.mainthanks .ice .year+.text{
    display: none;
}
@media screen and (max-width: 1024px) and (orientation: portrait){
    .message{
        left:calc(50% - 175px);   
        width: 330px;
        padding: 30px 10PX;
    }
    .message p{
        margin-bottom: 15px;
    }
    .main{
        height: calc(100vh - 150px);
    }
    
    .card{
        /* padding-top: 200px; */
        padding-top: 150px;

    }
    .logo{
        left: 20px;
        /* bottom:20%; */
        width:130px;
        /* left: calc(50% - 15vw); */
        /* top: 100px;  */
    }
    .yearright{
        right: 20px;
        font-size: 20px;
        top:45px;
    }
    .title{
        font-size: 19px;
        height: 50px;
    }
    .postcard{
        margin: auto;
        width: initial;
    }
    
    .hand img{
        /* margin-top: 50px; */
        width: 50px;
    }
    .pic img {
        margin: 50px auto 0;
        width: 100%;
    }
    .activehide{
        padding: 0;
        /* width: 37vw; */
        transition:
        padding 0ms,
        width 0ms, 
        transform 1ms;
    }
    .activehide .video{
        left: calc(50% - 40%);
        border-radius: 30px;
        width: 80%;
        overflow: hidden;
        /* height: 100%; */
        height: initial;
        padding-top:142%;
        bottom: 0;
    }
    .activehide .video iframe{
        position: absolute;
        height: 104%;
        width: 104%;
        top:-4%;
        left: -2%;

    }
    .ice{
        width: 400px;
        left: calc(50% - 200px);
        top: 110px;
    }
    .text{
        font-size: 25px;
        height: 30px;
    }
    .year{
        font-size: 36px;
    }
    .fw{width: 100%;transition: 1s;}
    .zfw{width: 0%;overflow: hidden; transition: 1s;}
    .postcard:has(.hand :hover){
        box-shadow: none;       
        transition: 0.5s;   
    }
    .icehide{
        display: none;
    }
}
@media screen and (max-width: 490px) and (orientation: portrait){
    .title{font-size: 15px;}
}
@keyframes shake {
0% { transform: translate(1px, 1px) rotate(0deg); }
/* 10% { transform: translate(-1px, -2px) rotate(-1deg); } */
20% { transform: translate(-3px, 0px) rotate(1deg); }
/* 30% { transform: translate(3px, 2px) rotate(0deg); } */
40% { transform: translate(1px, -1px) rotate(1deg); }
/* 50% { transform: translate(-1px, 2px) rotate(-1deg); } */
60% { transform: translate(-3px, 1px) rotate(0deg); }
/* 70% { transform: translate(3px, 1px) rotate(-1deg); } */
80% { transform: translate(-1px, -1px) rotate(1deg); }
/* 90% { transform: translate(1px, 2px) rotate(0deg); } */
/* 100% { transform: translate(1px, -2px) rotate(-1deg); } */
}