﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1d273d;
    color: #333;
}

a {
    color: inherit;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phase {
    display: none;
    width: 100%;
}

.phase.active {
    display: block;
}

.content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #6d96e9;
}

.logo-container {
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    height: auto;
}

.logo-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.character-container {
    position: absolute;
    right: 30px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.character-container img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.desktop-character {
    display: block;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.mobile-character {
    display: none;
}

.logo-container, .result-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

#phase1 .content, #phase3 .content {
    padding-right: 40%;
    text-align: left;
}

.start-button, .tweet-button, .restart-button {
    background-color: #6d96e9;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.start-button:hover, .restart-button:hover {
    background-color: #4371e0;
}

.tweet-button {
    background-color: #1da0f1;
    color: white;
}

.tweet-button:hover {
    background-color: #1778b4;
}

.question-container {
    font-size: 1.5rem;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    background-color: #f9f9f9;
    max-width: 60%;
}

.choices-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 60%;
}

.choice-button {
    background-color: #6d96e9;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.choice-button:hover {
    background-color: #4371e0;
}

.progress-container {
    margin-top: 30px;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    max-width: 60%;
}

.progress-bar {
    height: 100%;
    background-color: #6d96e9;
    width: 0%;
    transition: width 0.3s;
}

.result-container {
    margin: 30px auto;
    text-align: center;
}

.result-container img {
    max-height: 150px;
    width: auto;
}

.result-text {
    margin: 20px 0;
}

.result-text h1 {
    font-size: 3rem;
    color: #6d96e9;
    margin: 20px 0;
}

#resultImage {
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 870px) {
    .character-container {
        position: static;
        transform: none;
        margin: 20px auto;
        height: auto;
        width: 100%;
    }

    #phase1 .content, #phase3 .content {
        padding-right: 30px;
        text-align: center;
    }

    .question-container, .choices-container, .progress-container {
        max-width: 100%;
    }

    .desktop-character {
        display: none;
    }

    .mobile-character {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
}
