:root {
    --main-bg-color: brown;
}
@font-face {
    font-family: "titleFont";
    src: url("./fonts/CKTKingkong.ttf");
}
@font-face {
    font-family: "songFont";
    src: url("./fonts/DreamHanSerifCN-W1.ttf");
}
@font-face {
    font-family: "xiaocangFont";
    src: url("./fonts/xiaocang.ttf");
}
@font-face {
    font-family: "kaiFont";
    src: url("./fonts/TW-Kai-98_1.ttf");
}
@font-face {
    font-family: "englishFont";
    src: url("./fonts/OpenSans-Bold.ttf");
}
html {
    background: white;
    font-size: 62.5%;
}
@media (max-width: 17.1rem) {
    html {
        font-size: 40%;
    }
}
@media (min-width: 27.1875rem) and (max-width: 37.1rem) {
    html {
        font-size: 76%;
    }
}
@media (min-width: 37.1875rem) and (max-width: 47.1rem) {
    html {
        font-size: 106%;
    }
}
@media (min-width: 47.1875rem) and (max-width: 67.1rem) {
    html {
        font-size: 130%;
    }
}
@media (min-width: 67.1875rem) and (max-width: 87.1rem) {
    html {
        font-size: 180%;
    }
}
@media (min-width: 87.1875rem) {
    html {
        font-size: 250%;
    }
}
.flex {
    display: flex;
}
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.flex-justify-space-between {
    justify-content: space-between;
}
.flex-justify-flex-end {
    justify-content: flex-end; 
}
.flex-justify-space-evenly {
    justify-content: space-evenly;
}
.flex-direction-column{
    flex-direction: column;
}
.warp{
    width: 90vw;
    border: 0.1rem solid var(--main-bg-color);
    margin: 3rem auto;
}
main, header {
    width: 100%;
    padding: 1.5rem 1rem;
    position: relative;
}
header {
    margin-top: 0.1rem;
    border-bottom: 0.1rem solid var(--main-bg-color);
    border-top: 0.1rem solid var(--main-bg-color);
}
header::before, header::after {
    content: "";
    width: 100%;
    height: .3rem;
    background: var(--main-bg-color);
    position: absolute;
}
header::before {
    top: -.1rem;
    left: 0;
}
header::after {
    bottom: -.5rem;
    left: 0;
}

.alphabetic {
    font-size: 1rem;
    font-family: "englishFont";
    margin-left: 1.5rem;
    color: var(--main-bg-color);
}
.hieroglyph {
    font-size: 4.5rem;
    line-height: 1;
    font-family: 'titleFont';
    font-style: italic;
    color: var(--main-bg-color);
}
.content-topic {
    padding-bottom: 1.5rem;
    font-family: 'songFont';
    font-weight: bolder;
}
.content-topic > * {
    flex: 1;
}
.content-topic .topic-tips > div{
    background: var(--main-bg-color);
    color: white;
    text-align: center;
    line-height: normal;
    font-family: 'songFont';
    font-size: 3rem;
}
.content-topic .topic-explain {
    color: var(--main-bg-color);
    font-family: "xiaocangFont";
    font-size: 2.3rem;
    font-weight: bolder;
    margin-left: 2rem;
}
.content-topic .topic-explain > div { 
    line-height: 1;
}
.content-topic .topic-say {
    font-size: 2.3rem;
    color: var(--main-bg-color);
    font-family: 'kaiFont';
    font-weight: bolder;
    position: relative;
    padding-right: 1.4rem;
}
.content-topic .topic-say::after {
    content: "！";
    font-size: 1.8rem;
    position: absolute;
    right: 0;
    bottom: .2rem;
}
.photo {
    width: 100%;
    min-height: 55vw;
    background: var(--main-bg-color);
    position: relative;
}

.photo img {
    display: block;
    width: 100%;
}

.explain {
    padding-top: 1.5rem;
}
.explain-date, .explain-name {
    width: 7.5rem;
    height: 7.5rem;
    background: var(--main-bg-color);
}
.explain .explain-date {
    color: white;
    line-height: 1;
}
.explain-date .date-predict {
    font-size: 3rem;
    padding-right: .6rem;
    font-family: 'songFont';
}
.date-predict-time {
    padding-right: 1.3rem;
    padding-bottom: 1rem;
}
.explain .date-time {
    position: relative;
    font-size: 1rem;
}
.explain-date .date-time span:first-child {
    margin-bottom: .8rem;
}
.explain-date .date-time::before {
    content: "";
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    border: 1px solid white;
    position: absolute;
    right: -1.6rem;
    bottom: 0rem;
}
.explain-date .date-time::after {
    content: "月";
    font-family: 'songFont';
    font-size: .9rem;
    position: absolute;
    right: -1.4rem;
    bottom: .3rem;
}
.explain-date .date-words {
    padding-top: .5rem;
    font-size: 1.4rem;
    font-family: 'songFont';
    position: relative;
}
.explain-date .date-words::before{
    content: "·";
    position: absolute;
    top: .1rem;
    left: 45%;
    font-size: 2rem;
}
.explain-date .date-words::after {
    content: "";
    position: absolute;
	left: 0;
	top: -.3rem;
	width: 200%;
	height: 2px;
    transform: scale(.5);
	transform-origin: 0 0;
	background: #f5f5f5;
}
.explain .explain-text {
    height: 7rem;
    color: var(--main-bg-color);
    font-family: 'songFont';
    font-size: 1.3rem;
    font-weight: bolder;
}
.explain .explain-name {
    font-family: 'songFont';
    font-size: 1.5rem;
    font-weight: bolder;
    line-height: 1.3;
    color: white;
}

nav {
    width: 100%;
    color: var(--main-bg-color);
    padding:0 1rem 1rem;
}
.english, footer {
    width: 100%;
}
.english .dot {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--main-bg-color);
    position: relative;
}
.english .dot:first-child {
    margin-left: 1.7rem;
}
.english .dot:first-child::before,
.english .dot:last-child::before {
    content: "";
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: 1px solid var(--main-bg-color);
    position: absolute;
    top: -.18rem;
    left: -.18rem;
}

.english .dot:first-child::after {
    content: "喜";
}
.english .dot:last-child::after { 
    content: "嫁";
}
.english .dot:first-child::after,
.english .dot:last-child::after {
    position: absolute;
    top: .35rem;
    left: .7rem;
    font-size: 1.1rem;
    color: white;
    line-height: 1;
    padding-top: .24rem;
}
.english .dot:last-child {
    margin-right: 1.7rem;
}
.english .english-sentence {
    text-transform: uppercase;
    font-size: 1.4rem;
    font-family: "englishFont";
    font-weight: 400;
}

footer {
    padding-top: 1.5rem;
}
footer .pre-words, footer .end-words {
    padding-top: .8rem;
    font-size: 1rem;
    font-family: "songFont";
    line-height: 1;
}
footer .happy-word {
    font-size: 3rem;
    line-height: 1;
    font-family: "songFont";
    font-weight: bolder;
    position: relative;
}
footer .red-heart svg {
    width: 2rem;
    height: 2rem;
    position: absolute;
    fill: var(--main-bg-color);
}

footer .red-heart:first-child svg {
    top: .8rem;
    left: -5rem;
    rotate: 90deg;
}
footer .red-heart:nth-child(2) svg {
    top: .8rem;
    left: -3.7rem;
    rotate: 90deg;
}
footer .red-heart:nth-child(3) svg {
    top: .8rem;
    left: 4.7rem;
    rotate: -90deg;
}
footer .red-heart:last-child svg {
    top: .8rem;
    left: 6rem;
    rotate: -90deg;
}