@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);

* {
    font-family: "Noto Sans TC";
}

body {
    margin: 0;
    overflow: hidden;
    background-color: lightgreen;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

h1 {
    color: rgb(25, 77, 16);
}

a {
    color: rgb(38, 119, 23);
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 12px;
    margin: 0 10px; 
    font-weight: bold;
    font-size: 35px;
    transition: .3s;
}

a:hover {
    transform: scale(1.1);
    background-color: rgba(37, 119, 23, 0.2);
    color: rgb(190, 255, 177); 
}

.ribbon {
    position: absolute;
    top: -50px;
    width: 5px;
    height: 20px;
    background-color: red; 
    animation: fall linear infinite;
    transform-origin: top center;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.shape1 {
    width: 10px;
    height: 30px;
}
.shape2 {
    width: 8px;
    height: 25px;
    transform: rotate(30deg);
}
.shape3 {
    width: 6px;
    height: 20px;
    transform: skew(20deg);
}

.cake {
    position: relative;
    width: 200px;
    height: 150px;
    background-color: #ffcc80; 
    border-radius: 0 0 30px 30px;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transform: scale(.5);
}

.cake:before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 50px;
    background-color: #ffe0b2; 
    border-radius: 0 0 20px 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.cake:after {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background-color: #ffeb3b; 
    border-radius: 0 0 15px 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.candle {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 40px;
    background-color: #ff4081; 
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.candle:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #ff9800; /* 火焰顏色 */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.8);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

@media screen and (max-device-width: 480px) {
    .title {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .title {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}
