@font-face {
    font-family: trattatello;
    src: url('../Trattatello-Font/Trattatello/Trattatello.ttf');
}

@font-face {
    font-family: siyuan;
    src: url('../SiYuanHeiTi-Regular/SourceHanSansSC-Regular-2.otf');
}

@font-face {
    font-family: yuanrou;
    src: url('../yuanrouHeavy/yuanrou-Heavy.ttf');
}

html {
    overflow-x: hidden;
}

body {
    margin: 0 auto;
    background-color: #212226;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #212226;
}

.flex {
    display: flex;
    justify-content: space-between;
    position: relative;
    height: 80px;
    margin-top: 40px;
}

.flex a img {
    width: 150px;
    filter: brightness(0) invert(1);
    padding-left: 50px;
}

h1 {
    font-family: 'yuanrou';
    letter-spacing: 5px;
    font-size: 1.5rem;
    color: #f5f5f5;
    margin-left: 50px;
}

.mainmenubtn {
    width: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
    margin-left: 140px;
}

.mainmenubtn:hover {
    cursor: pointer;
    filter: brightness(0) invert(0.9) drop-shadow(7px 7px 5px #f5f5f5);
}

nav {
    position: relative;
    display: inline-block;
    width: 200px;
    right: 60px;
}

.dropdown {
    display: none;
    position: absolute;
    background-color: rgba(33, 34, 38, 0.7);
    margin-top: 0;
    border-radius: 2px;
    margin-left: 42px;
}

.dropdown li {
    position: relative;
    list-style-type: none;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: -20px;
}

.dropdown li a {
    position: relative;
    font-family: 'siyuan';
    font-size: 1rem;
    text-decoration: none;
    line-height: 1em;
    letter-spacing: 5px;
    padding-right: 15px;
    margin-right: 20px;
    text-transform: uppercase;
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    display: block;
}

.dropdown li a::before {
    content: attr(data-text);
    position: absolute;
    color: var(--clr);
    width: 0;
    overflow: hidden;
    transition: 1s;
    border-right: 5px solid var(--clr);
    -webkit-text-stroke: 1px var(--clr);
}

ul li a:hover::before {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 25px var(--clr));
}

nav:hover .dropdown {
    display: block;
}

nav:hover .mainmenubtn {
    display: block;
    filter: brightness(0) invert(0.9) drop-shadow(7px 7px 5px #f5f5f5);
    margin-left: 140px;
}

main {
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 12px;
    background-image: url(../img/bg.jpg);
    background-size: 100%;
    background-repeat: repeat;
    background-position: center;
    background-attachment: fixed;
    width: 100%;
}

.container {
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 12px;
    background-attachment: fixed;
    background-color: #21222681;
    width: 100%;
}

.full-screen {
    display: none;
    position: absolute;
    left: 50%;
    top: 49%;
    transform: translate(-50%, -50%);
    background-color: #212226;
    width: 100%;
    height: 102vh;
}

.bg {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    background-image: url(../img/postcard.jpg);
    background-size:  100%;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 5px;
    width: 1106px;
    height: 620px;
}

.code-box {
    width: 30%;
    margin-left: 55%;
    margin-top: 37%;
    padding: 1%;
    background-color: rgba(33, 34, 38, 0.5);
    border-radius: 2px;
}

#code-icon {
    width: 50%;
    margin-left: 25%;
    margin-bottom: 21px;
}

#password {
    max-width: 190px;
    height: 40px;
    background-color: #05060f0a;
    border-radius: .5rem;
    padding: 0 1rem;
    border: 5px solid #f5f5f5;
    margin-left: 19%;
    font-size: 1rem;
    transition: border-color .3s cubic-bezier(.25,.01,.25,1) 0s, color .3s cubic-bezier(.25,.01,.25,1) 0s,background .2s cubic-bezier(.25,.01,.25,1) 0s;
}

#password:hover, #password:focus #password {
    outline: none;
    border-color: rgba(155, 27, 27, 0.9);
}

#ok {
    padding: 10px;
    font-family: "yuanrou";
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 500;
    color: rgba(155, 27, 27, 0.9);
    background-color: #f5f5f5;
    border: none;
    border-radius: 45px;
    box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
    margin-left: 26%;
    margin-top: 20px;
    margin-bottom: 5px;
}
  
#ok:hover {
    background-color: rgba(155, 27, 27, 0.9);
    box-shadow: 0px 15px 15px rgba(0, 0, 0, 0.9);
    color: #f5f5f5;
    transform: translateY(-7px);
}
  
#ok:active {
    transform: translateY(-1px);
}

.close {
    margin-left: 104%;
    margin-top: -56%;
    width: 100px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: rgba(188, 25, 25, 0.9);
    border: none;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}
   
.close, .close span {
    transition: 200ms;
}
   
.close .c-text {
    transform: translateX(0px);
    color: white;
    font-weight: bold;
}
   
.close .c-icon {
    position: absolute;
    border-left: 1px solid #9b2525;
    transform: translateX(60px);
    height: 33px;
    width: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
}
   
.close svg {
    width: 15px;
    fill: #eee;
}
   
.close:hover {
    background: #e61111;
}
   
.close:hover .c-text {
    color: transparent;
}
   
.close:hover .c-icon {
    width: 90px;
    border-left: none;
    transform: translateX(0);
}
   
.close:focus {
    outline: none;
}
   
.close:active .c-icon svg {
    transform: scale(0.8);
}

#postcard {
    cursor: pointer;
}

.leftflex,
.rightflex {
    display: flex;
    justify-content: space-between;
    color: #f5f5f5;
}

.leftflex {
    margin-top: 150px;
}

.rightflex {
    height: 500px;
    padding-top: 50px;
    margin-top: 70px;
    padding-bottom: 50px;
    position: relative;
}

.leftpic,
.rightpic {
    width: 50%;
}

.leftpic img,
.rightpic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lefttext,
.righttext {
    font-family: 'yuanrou';
    line-height: 1.7rem;
}

.lefttext {
    width: 600px;
}

.righttext {
    width: 520px;
    margin-top: 10%;
}

.text { 
    display: flex;
    justify-content: space-between;
    padding-right: 90px;
}

h2 {
    font-family: 'yuanrou';
    letter-spacing: 5px;
    white-space: nowrap;
    font-size: 2.9rem;
    color: #f5f5f5;
    /* display: flex;
    justify-content: space-between; */
}

.text p {
    font-family: 'yuanrou';
    letter-spacing: 5px;
    font-size: 3rem;
    color: #ec0c0c;
    margin-top: 40px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: 0.5s;
}

.lefttext svg {
    margin-left: 88%;
    margin-top: -25%;
}

.text p:hover {
    letter-spacing: 0.25em;
}

footer {
    height: 40px;
    background-color: #212226;
}

.footer {
    display: flex;
    justify-content: space-between;
    position: relative;
    width: 100%;
    bottom: 0;
    background-color: #212226;
}

.social-media {
    display: flex;
    margin-top: 15px;
}

.social-media img {
    margin-left: 45px;
    height: 25px;
    filter: brightness(0) invert(1);
}

.footer p {
    color: #f5f5f5;
    margin-right: 5%;
}
