html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #2b3052;
    color: white;
    position: relative;
    z-index: 0; /* Ensure body content appears above the background */
}

body::before {
    content: "";
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure the background appears behind the body content */
    background: url('/assets/img/design/background_index.png') no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.header {
    display: flex;
    position: fixed;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box; /* Include padding in total width */
    left: 0; /* Fix header to the left edge of the window */
    z-index: 1;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    font-family: "Montserrat", sans-serif;
    text-shadow: 0px 4px 8.9px rgba(0, 0, 0, 0.50);
    text-decoration: none;
    color: #fff;
}

.button {
    background-color: #ffc107;
    border: none;
    padding: 10px 20px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    border-radius: 5px;
    background: linear-gradient(180deg, #FEB603 0%, #E88A1C 100%);
    text-decoration: none;
}

.button.orange {
    background-color: #ffc107;
    color: white;
    background: linear-gradient(180deg, #FEB603 0%, #E88A1C 100%);
}

.button.red {
    background-color: #ff0707;
    color: white;
    background: linear-gradient(180deg, #ff5656 0%, #e81c1c 100%);
}

.button.green {
    background-color: #2aa716;
    color: white;
    background: linear-gradient(180deg, #4ce03d 0%, #2aa716 100%);
}

.main-content {
    text-align: center;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

.hero-child {
    width: fit-content;
    height: fit-content;
    margin: auto;
}

.hero-image {
    padding-top: 70px;
    width: 500px;
    height: auto;
}

.hero-text {
    transform: translate(0%, -60%);
    text-align: center;
}

.hero-text h1 {
    font-size: 48px;
    margin: 0;
}

.hero-text p {
    margin: -10px 10px 10px;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    text-shadow: 0px 4px 8.9px rgba(0, 0, 0, 0.50);
    font-weight: bold;
    font-size: 30px;
    font-style: normal;
    line-height: normal;
}

.start-button {
    padding: 15px 15px 12px 15px;
    font-size: 30px;
    margin-top: 20px;
    color: white;
    cursor: pointer;
    background-color: #00d084;
    border-radius: 10px;
    border: 0px solid #3E858B;
    background: linear-gradient(180deg, #24E2BE 0%, #1BAE92 100%);
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
}

.intro {
    padding: 200px 20px;
}

.intro p {
    color: #FFF;
    text-align: center;
    text-shadow: 0px 0px 8.9px rgba(0, 0, 0, 0.50);
    font-family: "Yanone Kaffeesatz";
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.color-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.color-card {
    width: 150px;
    height: 250px; /* Adjusted height to accommodate content */
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    transition: 0.1s;
    cursor: pointer;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.05), 0 0.2em 0.3em rgba(0, 0, 0, 0.05), 0 0 0.2em inset rgba(255, 255, 255, 0.5);
}

.color-card:hover {
    transform: translate(0px, -10px) scale(105%, 105%);
    transition: 0.3s;
}

.card1 {
    background: radial-gradient(50% 50% at 50% 50%, #45F2D4 44.1%, #3DC9A7 100%);
}

.card2 {
    background: radial-gradient(50% 50% at 50% 50%, #FFAA4E 0%, #FFA34A 30%, #FD8436 69%, #FC6221 100%);
}

.card3 {
    background: radial-gradient(56.71% 56.71% at 50% 50%, #96E6F2 0%, #88DCEE 30.5%, #5DBDE3 68%, #2494D5 100%);
}

.card4 {
    background: radial-gradient(56.71% 56.71% at 50% 50%, #C365EB 0%, #C365EB 12%, #A852E3 62.5%, #7C32D6 100%);
}

.card-image {
    margin: 16px;
    width: 90%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

.card-title {
    position: absolute;
    bottom: 0;
    font-size: 24px;
    font-weight: bold;
    padding: 5px;
    width: 100%;
    background: #031b50b5;
    font-family: 'Yanone Kaffeesatz', sans-serif;
}

.card-subtitle {
    font-size: 12px;
}

.footer {
    padding: 20px;
    text-align: center;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 18px;
    gap: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly;
}

.footer-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

.footer-icons a {
    margin: 0 10px;
}

.footer-icons img {
    width: 32px;
    transition: 0.2s;
    cursor: pointer;
}

.footer-icons img:hover {
    transform: translate(0px, -5px);
    transition: 0.5s;
}

.footer-copy {
    margin-top: 10px;
}

#arrow-down {
    cursor: pointer;
    transition: 0.2s;
}

#arrow-down:hover {
    transform: translate(0px, 5px);
    transition: 0.5s;
}

.character-poly {
    position: fixed;
    height: 400px;
    left: 100px;
    bottom: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.character-chris {
    position: fixed;
    height: 400px;
    right: 100px;
    bottom: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 400px; 
    border-radius: 10px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal h2 {
    color: #1d1d1d;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    text-transform: uppercase;
    font-size: 28px;
}

.modal input {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-size: 18px;
}

.modal button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #ffc107;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    border-radius: 5px;
    background: linear-gradient(180deg, #FEB603 0%, #E88A1C 100%);
}

.modal form {
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.modal button:hover {
    background-color: #00a86b;
}

.modal a {
    color: #FF6300;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
}

.password-container {
    position: relative;
    display: flex;
}

.password-container input {
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}

.hero-logo {
    width: 600px;
}

.options {
    display: flex;
    align-items: center;
    gap: 10px;
}

#character-name {
    font-family: 'Yanone Kaffeesatz', sans-serif;
    font-weight: bold;
    color: #ffc400;
    cursor: pointer;
    font-size: 24px;
    height: 100%;
    text-decoration: none;
    padding-top: 5px;
}



@media (max-width: 1000px) {
    .header {
        position: relative;
    }

    .hero-child {
        transform: translate(0px, -80px);
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
    }

    .hero-logo {
        width: 90%;
        max-width: 700px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 20px;
    }

    .start-button {
        font-size: 20px;
        padding: 10px 15px;
    }

    .intro {
        padding: 100px 10px;
    }

    .intro p {
        font-size: 18px;
    }

    .color-card {
        width: 120px;
        height: 200px;
    }

    .card-title {
        font-size: 18px;
    }

    .footer {
        font-size: 16px;
    }

    .footer-icons img {
        width: 48px;
    }

    .character-chris {
        height: 30%;
    }

    .character-poly {
        height: 30%;
    }

    .fade-out {
        opacity: 0; /* Class to make characters transparent */
    }
}

@media (max-width: 480px) {
    .header {
        flex-direction: row;
        align-items: center;
    }

    .login-button {
        font-size: 14px;
        padding: 8px 15px;
    }

    .character-poly {
        display: none;
    }

    .character-chris {
        display: none;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .start-button {
        font-size: 16px;
        padding: 8px 12px;
    }

    .intro {
        padding: 80px 10px;
    }

    .intro p {
        font-size: 16px;
    }

    .color-card {
        width: 100px;
        height: 160px;
    }

    .card-title {
        font-size: 14px;
    }

    .footer {
        font-size: 14px;
    }

    .footer-icons img {
        width: 48px;
    }
}
