@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    overflow-x: hidden;
    font-family: "Figtree", sans-serif;
    color: white;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #05010f;
    overflow: hidden;
}

.threads-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#root {
    height: 100svh;
    display: flex;
    align-items: center;
    transition: opacity 1000ms;
}

section {
    height: 100svh;
    width: 100%;
    position: relative;
}

.land {
    top: 0;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8%;

    font-size: 48px;
    font-weight: 700;
    text-align: center;
}

.land > div {
    opacity: 0;
    animation: fadeIn 1s ease-in-out 700ms;
    animation-fill-mode: forwards;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.land a {
    display: block;
    background: white;
    outline: none;
    border: none;
    font-size: 20px;
    padding: 16px 100px;
    border-radius: 50px;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    text-decoration: none;
    color: black;
}

.land a:first-child {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.cards {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.cards > div:first-child {
    width: 100%;
    display: flex;
    justify-content: center;
}

.cards > div:first-child > div {
    text-align: center;
    padding: 0 20px;
    max-width: 450px;
}

.cards > div:first-child h2 {
    font-size: 44px;
}

.cards > div:first-child p {
    font-size: 24px;
    font-weight: 500;
    color: #bbb;
}

.cards > div:last-child {
    width: 100%;
    height: 400px;
}

.cards > div:last-child > div {
    height: 100%;
    position: relative;
}

@keyframes fadeIn {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Disclaimer container */
#disclaimer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #333; /* dark background for visibility */
    color: #fff; /* white text */
    padding: 15px 20px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
    z-index: 1000;
    flex-wrap: wrap; /* allow wrapping on small screens */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#disclaimer p {
    margin: 0;
    font-size: 14px;
    flex: 1 1 70%; /* take available space but allow shrink */
}

/* Dismiss button */
#disclaimer button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s, transform 0.2s;
}

#disclaimer button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

/* Language selector */

.language-selector {
    position: absolute;
    right: 16px;
    top: 32px;
    display: block;
    width: 70px;
    user-select: none;
}
        
.selected-language {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #ddd;
    font-size: 16px;
    transition: background-color .2s ease;
    width: 100%;
}
        
.caret {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: rotate(45deg) translateY(-4px);
    transition: transform .2s ease;
}

.language-options {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    visibility: hidden;
    opacity: 0;
    z-index: 10;
    transition: opacity .2s ease;
}
        
.language-option {
    text-align: left;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    color: #ddd;
}
        
.language-selector.open .language-options {
    visibility: visible;
    opacity: 1;
}

/* Responsive for small screens */
@media (max-width: 480px) {
    #disclaimer {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 15px;
    }

    #disclaimer {
        align-self: flex-end;
        margin-top: 10px;
    }
}

@media only screen and (min-width: 700px) {
    .land {
        font-size: 54px;
        gap: 7%;
    }

    .land > div {
        flex-direction: row;
    }

    .land a {
        padding: 16px 80px;
    }

    .selected-language:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .language-option:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

@media only screen and (min-width: 900px) {
    .cards > div:first-child > div {
        text-align: left;
    }
}

@media only screen and (min-width: 1000px) {
    .land {
        font-size: 60px;
    }

    .land > div {
        gap: 50px;
    }
}

@media only screen and (min-width: 1100px) {
    .cards > div:first-child {
        margin-top: -100px;
    }     
    
    .cards > div:first-child > div {
        max-width: 500px;
        margin-left: 50px;
    }

    .cards > div:first-child h2 {
        font-size: 50px;
    }

    .cards > div:first-child p {
        font-size: 26px;
    }
}

@media only screen and (min-width: 1200px) {
    .land {
        font-size: 64px;
    }
}