
:root {
    --primary-color: #293241; 
    --secondary-color: #3d5a80; 
    --accent-color: #ee6c4d; 
}
body::before {
    content: '';
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/back8.webp') center center / cover no-repeat fixed;
    opacity: .78; 
    z-index: -1; 
}

body {
    margin: 0;
    padding: 0;
    /* font-family: 'Lato', sans-serif; */
    background: linear-gradient(180deg, #ffffff, #000000);
    position: relative; 
}

h1, h2, h3, h4, h5, h6, p, a, footer p {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: var(--text-color);
}



@media (min-width: 769px) {
    header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
    }
    header.neu-element {
        display: flex; 
        align-items: center; 
        justify-content: space-between; 
        padding: 0 30px; 
    }
    .header-logo {
        margin-right: 30px; 
        height: auto; 
        width: 100px; 
    }
    .header-text {
        text-align: right; 
        flex-grow: 1; 
    }
    #three-js-sphere {
        position: relative;
        display: flex;
        margin: 0 auto;
        align-items: center;
        justify-content: space-between;
        width: 1200px;
        height: 400px;
        box-sizing: border-box; 
        overflow: hidden;
        border: 3px solid #fff; 
        border-radius: 20px; 
        box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.5); 
        background: black; 
    }
    .neu-element {
        position: relative;
    }
    #sphere-container {
        width: 110%;
        height: 105%;
        flex-grow: 1;
    }
    .stats-container {
        flex: 1;
        padding: 20px;
        background-color: transparent;
        z-index: 1;
    }
    .trending h3, .trending ul, .statistics p {
        font-family: 'Orbitron', sans-serif;
        color: #fff; 
        text-align: left;
    }
    .trending ul {
        list-style-type: disc;
        margin: 0;
        padding: 0;
    }
    .trending li {
        margin-bottom: 10px;
    }
    .statistics p {
        margin-bottom: 5px;
        font-size: 1.2em;
    }
    .neu-element {
        font-size: 20px;
    }
}

/* nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5em 1em;
    display: inline-block;
    margin: 0 10px;
} */

main {
    padding: 2em;
    box-sizing: border-box; 
}

.container { 
    width: 100%;
    max-width: 100%;
    margin: 0 auto; 
}

.interpretation-container {
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-top: 10px;
}
.title-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    text-align: center;
    font-size: 1.5vw; 
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 0.5vw; 
    color: #ffffff;
    text-shadow: 0 0 6px #ffffff9e, 0 0 15px #2e1d41, 0 0 20px;
}
.card-user {
    text-align: center;
    font-size: 1.618vw; 
    font-weight: bold;
    margin: -.8vw;
    color: #ffffff;
    text-shadow: 0 0 6px #ffffff9e;
}

.date {
    text-align: center;
    font-size: 1.1vw; 
    margin-bottom: .5vw; 
    color: #9db9e3; 
    text-shadow: 0 0 6px #ffffff9e, 0 0 15px #2e1d41, 0 0 20px;
}

@media (max-width: 768px) {
    .card-title {
        font-size: 1vw; 
    }
    .card-user {
        font-size: 1.33vw;
    }
    .date {
        font-size: .8vw; 
    }
}


@media (max-width: 480px) {
    .card-title {
        font-size: .8vw; 
    }
    .card-user {
        font-size: 1vw;
    }
    .date {
        font-size: .5vw; 
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: red;
    font-size: 20px;
    font-weight: bold;
}

.card {
    transition: opacity 0.3s ease;
    position: relative; 
    width: 28vw; 
    height: 50vw;
    background: #1f1f58ec;
    border: 5px solid #000000; 
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat';
    color: white;
    overflow: hidden;
    z-index: 1; 
    display: flex; 
    flex-direction: column;
}

.keywords {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 1vw; 
    padding: .3vw; 
    margin-top: .7vw;
}

.keyword {
    background-color: #4b9cdb; 
    border-radius: 10px; 
    padding: .3vw; 
    font-size: 1vw; 
    white-space: nowrap; 
}
.social-icons {
    text-align: center;
    display: flex;
    justify-content: center; 
    gap: 2vw; 
    margin-top: 1vw; 
}

.social-icon {
    width: 3vw; 
    height: auto; 
}

@media (max-width: 768px) {
    .keyword {
        font-size: 1.1vw; 
        padding: .4vw; 
    }
    .social-icon {
        width: 2vw; 
    }
}


@media (max-width: 480px) {
    .keyword {
        font-size: 1vw; 
        padding: .2vw; 
    }
    .social-icon {
        width: 1.5vw; 
    }
}

.keyword:hover, .social-icon:hover{
    transform: scale(1.2); 
}
.keyword:active, .social-icon:active{
    transform: scale(0.8); 
    transition: transform 0.1s ease-in-out; 
}

.keyword:hover, .social-icon:hover,
.keyword:active, .social-icon:active{
    transition: transform 0.1s ease-in-out; 
}

.image-container {
    position: relative;
    border: 2px solid #ede9a4;
    border-radius: 15px;
    margin: auto;
    overflow: hidden;
    width: 98%;
}

.dream-image-container {
    position: relative;
    border: 2px solid #ede9a4;
    border-radius: 15px;
    margin: auto;
    overflow: hidden;
    width: 98%;
}

.dream-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.dream-interpretation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
}

.text-overlay {
    position: absolute;
    border-radius: 15px;
    color: white; 
    opacity: .7;
    display: none;
    line-height: 1.33;
    align-items: center; 
    justify-content: center; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; 
    max-height: 60%; 
    background: rgba(0, 0, 0, 0.4); 
    padding: .2vw;
    box-sizing: border-box;
    font-size: 1em; 
    text-align: center; 
    z-index: 10;
}

.dream-input-container {
    display: flex;
    margin-top: 10px;
    align-items: center;
    text-align: center;
    flex-direction: column;
    justify-content: space-between; 
}

.neu-input-dream {
    font-size: 16px; 
    width: 95%; 
    height: 20px;
    overflow: auto; 
    display: block; 
    align-items: center;
    text-align: center;
    justify-content:center;
}

.button-container {
    display: flex;
    justify-content: center; 
}
#our-mission, #about, #contact {
    opacity: 0.96;
}

.neu-element, .neu-card, .neu-button {
    background: linear-gradient(145deg, #cee6ff, #8197da); 
    border-radius: 20px;
    box-shadow: 
        10px 10px 20px #9b9eab, 
        -10px -10px 20px #b7b5b5, 
        inset 1px 1px 2px rgba(255, 255, 255, 1), 
        inset -1px -1px 2px rgba(255, 255, 255, 1); 
    padding: 20px;
    margin: 10px 0;
    transition: all 0.3s ease-in-out;
}

.neu-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    border-radius: 30px;
    font-weight: bold;
}

.neu-menu a{
    background: linear-gradient(145deg, #cee6ff, #8197da); 
    border-radius: 30px;
    font-size: 24px;
}
.neu-menu > li {
    position: relative;
}

.neu-link {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    background: #e0e5ec;
    border-radius: 10px;
    box-shadow: 4px 4px 8px #a3b1c6, /* Outer shadow */
                -4px -4px 8px #ffffff; /* Inner light */
}

.dropdown {
    position: relative;
    text-align: center; 
}

.dropdown-content {
    position: absolute;
    left: 50%; 
    transform: translateX(-50%); 
    width: .618*max-content;
    min-width: 100%;
    text-align: left;
    white-space: nowrap;
    list-style-type: none;
    padding: 0;
    background: #0000003d;
    font-weight: bold;
    display: none;
    border-radius: 30px;
    z-index: 1;
}

.dropdown-content a {
    color: black;
    font-size: 20px;
    background: linear-gradient(145deg, #cee6ff, #8197da); 
    padding: 12px 16px;
    margin: 8px 0;
    text-decoration: none;
    text-align: center;
    display: block;
    box-shadow: inset 2px 2px 5px #a3b1c6,
                inset -2px -2px 5px #ffffff;
}

.dropdown-content a:hover {
    background: #cfd9df;
}
.neu-menu a:hover {
    background: #cfd9df;
}


.neu-button {
    display: block;
    align-items: center;
    justify-content: center;
    width: auto; 
    margin: 0 auto; 
    border-radius: 50%; 
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    transition: all 0.1s ease-in-out;
}

.neu-button.disabled {
    background-color: #cccccc; 
    pointer-events: none; 
    animation: none; 
    box-shadow: none; 
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    }
}

#dream_art, #dream_interpretation {
    animation: pulse 1s infinite;
    background: linear-gradient(145deg, #b0d1f5, #70a1ca);
}

/* .neu-button:hover, .neu-menu a:hover, .neu-menu a:focus {
    box-shadow: 
        4px 4px 8px #babecc, 
        -4px -4px 8px #ffffff, 
        inset 2px 2px 4px rgba(255, 255, 255, 0.7), 
        inset -2px -2px 4px rgba(255, 253, 253, 0.2); 

} */

.neu-form .neu-input,
.neu-form textarea.neu-input {
    width: 100%; 
    padding: 15px; 
    margin-bottom: 20px; 
    font-size: 1rem; 
    line-height: 1.5; 
    box-sizing: border-box; 
}

.neu-form textarea.neu-input {
    height: 50px; 
    resize: none; 
}

.neu-input, .neu-switch .toggle {
    border: none;
    outline: none;
    border-radius: 5px;
    box-shadow: inset 2px 2px 4px #babecc, inset -2px -2px 4px #ffffff;
}
.neu-input {
    margin: 10px; 
    padding: 10px; 
    resize: none; 
    overflow: auto; 
    display: block; 
    align-items: center;
    text-align: center;
    width: calc(100% - 20px); 
    height: 100px; 
    
}

.neu-switch {
    display: inline-block;
    position: relative;
}

.toggle {
    width: 50px;
    height: 25px;
    background: var(--background-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 6px 6px 10px #babecc, 
                inset -6px -6px 10px #ffffff;
}

.toggle:after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 21px;
    height: 21px;
    background: #fff;
    border-radius: 21px;
    transition: 0.3s;
}

/* .neu-menu a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 20px;
    display: inline-block;
    margin: 0 10px;
    border-radius: 30px;
    background: var(--background-color);
    box-shadow: 
        4px 4px 8px #babecc, 
        -4px -4px 8px #ffffff, 
        inset 1px 1px 2px rgba(255, 255, 255, 0.3), 
        inset -1px -1px 2px rgba(0, 0, 0, 0.1); 
    transition: all 0.1s ease;
} */

/* .neu-menu a:hover, .neu-menu a:focus {
    box-shadow: 
        2px 2px 4px #babecc,
        -2px -2px 4px #ffffff,
        inset 2px 2px 4px rgba(255, 255, 255, 0.5),
        inset -2px -2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #cbdff4, #e0fbfc);
} */

/* .neu-menu {
    margin: 0; 
    padding: 0 10px; 
    font-weight: bold
}

.neu-menu li {
    margin-right: 20px; 
} */

input[type="checkbox"]:checked + .toggle:after {
    transform: translateX(26px);
}

.side-by-side-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; 
    padding: 50px; 
    z-index: -1;
}

.side-by-side-container .neu-element {
    flex: 1; 
    margin: 0 25px; 
}

#community {
    position: relative;
    overflow-x: visible; 
    overflow-y: hidden;
    width: 50%;
    height: 50vw;
}

.card-container {
    position: relative;
    overflow-x: auto; 
    overflow-y: hidden; 
    display: flex;
    min-height: calc(2 * [height of expanded card]);
    white-space: nowrap;
    height: 80%;
    width: 100%; 
    scroll-behavior: smooth;
    background: linear-gradient(145deg, #494198, #bdc1f7);
}

.neu-card {
    opacity: 1;
    display: inline-block;
    vertical-align: top;
    flex: 0 0 auto; 
    margin: 0 10px; 
    border: 5px solid #000000; 
    border-radius: 25px;
    text-align: center;
    max-width: 300px;
    background: #1f1f58ec;
    transition: transform 0.3s ease;
}

.neu-card.expanded {
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 2000; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); 
}

.card-image {
    flex: 0 0 100%;
    width: 100%; 
    height: auto; 
    border-radius: 25px; 
    margin-bottom: 10px; 
}

.card-placeholder {
    display: inline-block; 
    visibility: hidden; 
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px; 
    color: #333; 
    background-color: #fff; 
    border-radius: 50%;
    width: 40px; 
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3); 
    z-index: 10;
}

.left-arrow {
    left: 0px; 
}

.right-arrow {
    right: 0px; 
}

@media screen and (max-width: 768px) { /* Adjusts styles for screens up to 768px width */
    .neu-menu a {
        font-size: 18px; /* Smaller font size for mobile */
        padding: 10px 15px; /* Adjust padding to fit smaller screens */
    }

    .neu-menu > li {
        /* On mobile, you might not want any margin to the right */
        margin-right: 0;
    }

    .dropdown-content {
        /* Override the width for mobile to prevent overflow */
        width: auto;
        min-width: 100%; /* Ensures the dropdown is at least as wide as its parent */
        left: 0;
        transform: none;
        z-index: 1000;
    }

    .dropdown-content a {
        font-size: 14px; /* Smaller font size for mobile */
        padding: 8px; /* Adjust padding for a neater appearance on mobile */
    }
}

@media screen and (max-width: 768px) {
    body::before {
        content: '';
        position: fixed; 
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: .8; 
        z-index: -1;
        background: url('../images/back8-mobile.png') center center / cover no-repeat fixed; 
    }
    body {
        margin: 0;
        padding: 0;
        background: linear-gradient(180deg, #ffffff, #000000);
        position: relative; 
    }

    .header-logo {
        display: none; 
    }
    
    .header-text {
        display: none; 
    }
    header.neu-element {
        justify-content: center;
        padding: 5px; 
    }

    /* .neu-menu {
        justify-content: center;
        padding: 5px;
        margin: 0;
        font-weight: bold;
    }

    .neu-menu li a {
        padding: 5px; 
        font-size: 14px; 
        font-weight: bold;
    }

    .neu-menu li {
        margin-right: 10px; /
    } */

    .neu-element,
    .neu-card,
    .button-container {
        flex: 1;
        flex-direction: column;
    }
   
    .neu-button {
        font-size: 10px;
    }
    .neu-element {
        font-size: 14;
        justify-content: center;
        /* overflow: hidden; */
    }

    .neu-card {
        max-width: 100%; 
    }

    .side-by-side-container {
        flex-direction: column;
        flex: 1;
        padding: 10px;
        justify-content: center;
        align-items: center;
    }

    .side-by-side-container .neu-element {
        margin: 10px 0;
        flex: 1;
    }
    #community {
        position: relative;
        overflow: hidden;
        width: 80vw;
        padding: 20px;
        
    }
    .card-container {
        width: 100%;
        padding-bottom: 10px;
        overflow: hidden;
    }

    .neu-input-dream {
        font-size: 16px; 
        width: 65vw;
        height: 20px;
        overflow: auto; 
        display: block; 
        align-items: center;
        text-align: center
    }

    #three-js-sphere {
        position: relative;
        display: flex;
        flex: 1;
        align-items: center;
        justify-content: center;
        width: 90vw;
        height: 400px;
        box-sizing: border-box; 
        overflow: hidden;
        border: 3px solid #fff; 
        border-radius: 20px; 
        box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.5); 
        background: black; 
    }
    
    #sphere-container {
        width: 110%;
        height: 105%;
        flex-grow: 1;
        align-content: center;
    }
    
    .stats-container {
        display: none;
    }
    
    .trending h3, .trending ul, .statistics p {
        font-family: 'Orbitron', sans-serif;
        color: #fff; 
        text-align: left;
    }
    
    .trending ul {
        list-style-type: disc;
        margin: 0;
        padding: 0;
    }
    
    .trending li {
        margin-bottom: 10px;
    }
    
    .statistics p {
        margin-bottom: 5px;
        font-size: 1.2em;
    }
}

img {
    max-width: 100%;
    height: auto;
}

.overlay-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; 
    cursor: pointer; 
    background-color: transparent; 
}
