@charset "utf-8";

:root {
    --primary: #e9e9e9;
    --accent: #26A69A;
    --background: #ffffff;
    --text: #000000;
    --container-bg: #e9e9e9;
    --border: #000000;
    --overlay: rgba(0, 0, 0, 0.4);
}

body.light-mode {
    --background: #ffffff;
    --text: #000000;
    --container-bg: #e9e9e9;
    --border: #000000;
    --overlay: rgba(0, 0, 0, 0.4);
    --linear-background: linear-gradient(135deg, #ffffff 0%, #c5c5c5 100%);
    --cards-background: rgba(0, 0, 0, 0.2);
}

body.dark-mode {
    --background: #000000;
    --text: #ffffff;
    --container-bg: #1a1a1a;
    --border: #ffffff;
    --overlay: rgba(0, 0, 0, 0.2);
    --linear-background: linear-gradient(135deg, #3a3a3a 0%, #000000 100%);
    --cards-background: rgba(255,255,255,0.4);
}

body {
    margin: 0;
    font-family: 'Inter', 'Noto Sans SC', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.8;
    transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
}

body.dark-mode .header {
    background-color: rgba(0, 0, 0, 0.45);
}

.header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 95%;
    margin: 0 auto;
}

.header a {
    color: var(--text);
    text-align: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header a:hover, 
.header a:focus {
    color: var(--accent);
    outline: none;
}

.header a:focus {
    outline: 0.125rem solid var(--accent);
    outline-offset: 0.125rem;
}

.img-logo {
    width: 4rem;
    height: 2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media screen and (max-width: 768px) {
    .header nav {
        flex-direction: column;
        gap: 0.75rem;
    }
    .header a {
        display: block;
        text-align: left;
    }
    .header-right {
        flex-direction: column;
        align-items: flex-start;
    }
}

.main {
    width: 100%;
    margin: 0 auto;
}

.space {
    height: 2rem;
}

h1 {
    color: var(--text);
    font-size: 2.5rem;
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.2;
}

p {
    color: var(--text);
    font-size: 1.25rem;
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.5;
}

.blank {
    height: 4rem;
}

.container {
    position: relative;
    width: 100%;
    height: 60vh;
}

.contain {
    position: relative;
    width: 100%;
    height: 60vh;
}

.container img {
    object-fit: cover;
    overflow: hidden;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container-text {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container-text p,
.container-text h1 {
    color: #fff;
}

.fill {
    width: 75%;
}

.fill h1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.fill p {
    text-align: center;
}

.explore {
    background: transparent;
    border: 0.1rem solid white;
    color: #fff;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2rem;
}

.explore:hover {
    background-color: #fff;
    color: #000;
}

a {
    text-decoration: none;
    color: white;
    font-weight: 600;
}

a:hover {
    color: #000000;
}

.content {
    width: 95%;
    margin: 0 auto;
}

.opening {
    width: 95%;
    height: 20rem;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    margin: 0 auto;
    background: var(--linear-background);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opening:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0.2rem 0.2rem 1rem rgba(0,0,0,0.4);
    border-radius: 1rem;
}

.opening-left {
    flex: 80%;
    display: flex;
    align-items: center;
    margin: auto 0;
    padding: 3rem;
}

.opening-right {
    flex: 20%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 3rem;
}

.opening-left-text {
    height: 50%;
    text-align: left;
}

.opening-right-button {
    background: transparent;
    border: 0.1rem solid white;
    color: white;
    padding: 0.8rem 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.opening-right-button:hover {
    color: #000;
    background-color: white;
}

.highlighted {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.back {
    text-align: center;
    padding: 1rem 0;
    width: 100%;
    height: auto;
}

button {
    background: transparent;
    border: 0.1rem solid var(--text);
    color: var(--text);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--text);
    color: var(--background);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 30%;
    height: 0;
    overflow: hidden;
    margin: 0 auto;
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.clicking-card {
    height: 70vh;
}

.top-notification {
    background-color: var(--text);
    color: var(--background);
    padding: 15px 20px;
    font-size: 14px;
    text-align: center;
}

.card-stack-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    min-height: 122vh;
    overflow: hidden;
}

.stacked-card-base {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1 !important;
}

.card-1 {
    transform: translateY(10px) scale(0.8);
    opacity: 0.9;
}

.card-2 {
    transform: translateY(5px) scale(0.98);
    opacity: 0.95;
}

.swipe-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateX(100%);
    width: 90%;
    background-color: var(--background);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 16px var(--cards-background);
    min-height: 400px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease-out;
    transform: translateX(100%); 
    opacity: 0;
    pointer-events: none;
    z-index: 5; 
    margin: 0 auto;
}

.swipe-card.active {
    transform: translateX(-50%) translateX(0);
    opacity: 1;
    pointer-events: all;
    z-index: 10; 
}

.swipe-card.leaving {
    transform: translateX(-50%) translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
}

.card-header h1 {
    font-size: 3rem;
    color: var(--text);
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    max-width: 80%;
}

.timestamp {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: 0.75rem;
}

.card-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 2rem;
}

.nature, 
.culture, 
.american,
.meaning,
.now,
.cards-image-nature,
.cards-image-culture,
.cards-image-american,
.cards-image-meaning,
.cards-image-now {
    flex: 1;
}

.card-content h2 {
    font-size: 1rem;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 1rem;
}

.card-content p {
    text-align: justify;
}

.cards-image-nature,
.cards-image-american,
.cards-image-now {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 3rem;
    height: 40rem;
    width: 80rem;
}

.cards-image-culture,
.cards-image-meaning {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: 3rem;
    height: 40rem;
    width: 80rem;
}

.cards-image-nature img,
.cards-image-culture img,
.cards-image-american img,
.cards-image-meaning img,
.cards-image-now img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discuss-button {
    background-color: #ff6a00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
}

.discuss-button.secondary {
    background-color: #666;
}

.email-link {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 600px) {
    .card-content {
        flex-direction: column;
    }
    .follow-us {
        margin-bottom: 30px;
    }
}

.foot {
    width: 95%;
    margin: 0 auto;
}

.footer-title {
    text-align: center;
}

.footer-text p {
    width: 65%;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
}
