body {
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #FFFFFF;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 1200px;
}

.left-container {
    width: 100%;
    height: 490px;
    background-color: #FFFFFF80;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 80px;
    border-radius: 30px;
    color: #000000;
    text-align: center;
}

.user img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    overflow: hidden;
    padding-bottom: 0px;
}

.right-container {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(4, 150px);
    grid-auto-rows: 150px;
    grid-gap: 20px;
    box-sizing: border-box;
    justify-content: right;
    padding-top: 80px;
    margin-bottom: 0px;
}

.card {
    width: 100%;
    height: 100%;
    display: flex;
    background-color: #FFFFFF80;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
    cursor: default;
    overflow: hidden;
    transition: transform 0.3s ease;
}

a.card:hover {
    transform: translateY(-5px);
}

.card-wrapper {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-wrapper:nth-child(1) { animation-delay: 0.1s; }
.card-wrapper:nth-child(2) { animation-delay: 0.2s; }
.card-wrapper:nth-child(3) { animation-delay: 0.3s; }
.card-wrapper:nth-child(4) { animation-delay: 0.4s; }
.card-wrapper:nth-child(5) { animation-delay: 0.5s; }
.card-wrapper:nth-child(6) { animation-delay: 0.6s; }
.card-wrapper:nth-child(7) { animation-delay: 0.7s; }
.card-wrapper:nth-child(8) { animation-delay: 0.8s; }
.card-wrapper:nth-child(9) { animation-delay: 0.9s; }
.card-wrapper:nth-child(10) { animation-delay: 1s; }
.card-wrapper:nth-child(11) { animation-delay: 1.1s; }
.card-wrapper:nth-child(12) { animation-delay: 1.2s; }

.card-tittle {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
}

.card-content {
    display: flex;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-direction: column;
    white-space: nowrap;
    width: 120px;
    max-width: 100%;
    text-align: left;
    margin-top: 10px;
}

.center {
    align-items: center;
    justify-content: flex-start;
}

.h40 {
    height: 40%;
}

.h50 {
    height: 50%;
}

.h60 {
    height: 60%;
}

.card img {
    width: 40px;
    height: auto;
    border-radius: 8px;
}

.card p {
    font-weight: bold;
}

.usernumber {
    padding-top: 0px;
    font-size: 12px;
    color: #757575;
    font-weight: bold;
}

.remark {
    padding-top: 0px;
    font-size: 12px;
    color: #757575;
}

.card .remark {
    font-weight: normal;
}

p {
    margin: 0px;
}

a {
    text-decoration: none;
    color: #000000;
}

a:hover {
    color: #000000;
}

.btn {
    display: flex;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 10px;
}

button {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #50505080;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #30303080;
}


.left-container .btn {
    margin-bottom: 0px;
    gap:25px;
    margin-right: auto;
} 

.btn .logo {
    background-color: #FFFFFF00;
}



/*----------twitter----------*/
.twitter {
    background-color: #d8ebff80;
}

.twitter button {
    background-color: #74a2d3;
}

.twitter button:hover {
    background-color: #5888bf;
}

/*----------twitter----------*/



/*----------spotify----------*/
.spotify {
    background-color: #f6fff4cc;
}

.spotify button {
    background-color: #89d6b4;
}

.spotify button:hover {
    background-color: #64a89a;
}

.marquee {
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
}

.marquee-content {
    display: inline-block;
    padding-right: 10%;
    animation: marquee 10s linear infinite;
}

.marquee-content p {
    display: inline-block;
    padding-left: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/*----------spotify----------*/


/*----------instagram----------*/
.instagram {
    background-color: #fff6f4CC;
}

.instagram button {
    background-color: #eeb8e9;
}

.instagram button:hover {
    background-color: #e0a6e4;
}

/*----------instagram----------*/





/*----------clock----------*/
.clock .card-content {
    overflow: visible;
}

.date {
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    color: #000000;
}

.time {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}
/*----------clock----------*/


/*----------手機----------*/
@media (max-width: 1024px) {
    body {
        height: 100%;
    }

    .container {display: grid;
    }
    
    .left-container {
        width: 100%;
        height: 390px;
        position: static;
        margin-top: 40px;
    }

    .user img {
        width: 120px;
        height: 120px;
    }
    
    .right-container {
        grid-template-columns: repeat(2, 150px);
        padding-top: 0px;
        margin-bottom: 100px;
    }

}
/*----------手機----------*/



/*----------深色模式----------*/


body.dark-mode::before {
    content: '';
    position: fixed; /* 固定在視窗，無論捲動與否都能全屏顯示 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 覆蓋整個視窗高度 */
    background-color: rgba(0, 0, 0, 0.2); /* 深色模式下的黑色疊加層 */
    z-index: -1; /* 保持在背景圖片上，但在內容下 */
}

body.dark-mode .left-container{
    background-color: #50505080;
    color: #FFFFFF;
}

body.dark-mode {
    background-color: #252525;
    color: #101010;
}

body.dark-mode a.card {
    background-color: #50505080;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .card .usernumber{
    color: #CCCCCC;
}

body.dark-mode .card .remark {
    color: #CCCCCC;
}

body.dark-mode a {
    color: #FFFFFF;
}

body.dark-mode a:hover {
    color: #000000;
}

body.dark-mode a.card p {
    color: #FFFFFF;
}

body.dark-mode .card button {
    color: #fff;
    background-color: #30303080;
}

body.dark-mode .card button:hover {
    background-color: #10101080;
}



/*----------spotify----------*/
/*body.dark-mode a.card.spotify {
    background-color: #f6fff4cc;
}*/

body.dark-mode .card.spotify button {
    background-color: #89d6b4;
}

body.dark-mode .card.spotify button:hover {
    background-color: #64a89a;
}

/*----------spotify----------*/



/*----------instagram----------*/
/*body.dark-mode .instagram {
    background-color: #fff6fc;
}*/

body.dark-mode .instagram button {
    background-color: #eeb8e9;
}

body.dark-mode .instagram button:hover {
    background-color: #e0a6e4;
}

/*----------instagram----------*/



/*----------clock----------*/
body.dark-mode .date {
    color: #FFFFFF;
}

body.dark-mode .time {
    color: #FFFFFF;
}

/*----------clock----------*/


.flip-card {
    background-color: transparent;
    width: 100%;
    height: 100%;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 30px;
}

.flip-card-front {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.flip-card-back {
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.flip-card-inner.flipped {
    transform: rotateY(180deg);
}