:root {
    --primary-color: #fab527;
    --background-color: #000000;
    --text-color: #ffffff;
    --card-color: #fab527;
}
p{
    font-size: 12px;
}
#survey-content{
    height: auto;
    min-height: 90vh;
    overflow-y: auto;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    background-image: url('bg-pattern.png');
    background-repeat: repeat;
}

header {
    background-color: transparent;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#radarChart{
    margin-top: -30px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.social-btn i {
    font-size: 1.2rem;
}

.banner {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    animation: bannerColorChange 2s infinite alternate;
}

@keyframes bannerColorChange {
    0% {
        background-color: #fab527;
    }
    50% {
        background-color: #95fc5b;
    }
    100% {
        background-color: #fab527;
    }
}

.banner-text {
    color: var(--background-color);
    text-decoration: none;
    font-weight: bold;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
}

.card {
    background-color: var(--card-color);
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: visible;
    height: 70vh;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('card-pattern.png');
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
    color: #000000;
}

.survey-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #000000;
}

.survey-subtitle {
    text-align: center;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.7);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #000000;
    transition: width 0.3s ease;
}

.question-container {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: none;
}

.question-container.active {
    opacity: 1;
    transform: translateX(0);
    display: block;
}

.question-container.prev {
    transform: translateX(-100%);
}

.question {
    margin-bottom: 2rem;
}

.question h3 {
    color: #000000;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option {
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.5);
}

.option:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.option.selected {
    background-color: #000000;
    color: var(--primary-color);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.nav-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 30px;
    background-color: #000000;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button:hover:not(:disabled) {
    opacity: 0.8;
}

.start-screen {
    text-align: center;
    position: relative;
}

.name-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.start-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    background-color: #000000;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 300px;
}

.start-button:hover {
    opacity: 0.8;
}

#result-container {
    position: relative;
    width: 100%;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow-y: visible;
    padding: 1rem 0;
    max-height: none;
}

#result-container.active {
    opacity: 1;
    transform: translateY(0);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.save-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background-color: #000000;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-button:hover {
    opacity: 0.8;
}

.result-content-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-top: 1rem;
    gap: 2rem;
}

.result-content-wrapper.capturing {
    background-color: var(--card-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.radar-chart-container {
    width: 48%;
    max-width: 300px;
    height: 300px;
    margin: 0;
    position: relative;
}

.result-description {
    width: 48%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.result-type-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 1rem auto;
    display: block;
}

@media (max-width: 768px) {
    .main-container{
        padding: 0 20px;
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem;
    }

    .logo span {
        display: inline;
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 30px;
    }

    .header-right {
        flex-direction: row;
        align-items: center;
    }
    
    .social-buttons {
        order: 2;
    }
    
    .banner {
        position: absolute;
        top: 13%;
        transform: translateY(-50%);
        left: 20vw;
    }
    
    .card {
        width: 95%;
        padding: 1.5rem;
        height: auto;
        min-height: 71vh;
        margin-top: 1rem;
        margin-bottom: 2rem;
        overflow: visible;
    }
    
    .survey-title {
        font-size: 1.5rem;
    }
    
    .survey-active .survey-title,
    .survey-active .survey-subtitle {
        display: none;
    }
    
    #result-container {
        position: relative;
        height: auto;
        padding: 0 0 2rem 0;
        overflow-y: visible;
        max-height: none;
    }
    
    .result-header {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .save-button {
        width: 100%;
        justify-content: center;
    }
    
    .result-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }
    
    .result-description {
        width: 100%;
        margin: 0;
        order: -1;
    }
    
    .radar-chart-container {
        width: 100%;
        max-width: 300px;
        height: 300px;
        margin: 1rem 0;
        padding: 10px;
    }
    
    canvas#radarChart {
        width: 100% !important;
        height: 100% !important;
    }
    
    .result-description h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .result-description p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .result-type-image {
        width: 80px;
        height: 80px;
        margin-bottom: 0.8rem;
    }
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.lang-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn-active {
    background-color: #000000;
    color: var(--primary-color);
    border-color: #000000;
}

.lang-btn:hover:not(.lang-btn-active) {
    background-color: rgba(0, 0, 0, 0.1);
}

.card-image {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1;
    width: 200px;
    height: auto;
    opacity: 0;
    display: none;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.survey-active ~ .card-image {
    opacity: 1;
}

.start-screen-bg {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    display: block;
    transition: opacity 0.3s ease;
}

.survey-active ~ .start-screen-bg {
    opacity: 0;
}

@media (max-width: 768px) {
    .card-image {
        width: 60px;
        bottom: 0px;
        right: 5px;
        width: 150px;
    }
    
    .start-screen-bg {
        max-width: 350px;
    }
}
