/* Update CSS to include image styling */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
}

.header {
    background-image: url('images/vatican.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-top: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav {
    background-color: #8B0000;
    display: flex;
    justify-content: center;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav a:hover {
    background-color: #6B0000;
}

.section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #8B0000;
    font-size: 2.2rem;
}

.section h3 {
    color: #8B0000;
    font-size: 1.8rem;
    margin-top: 30px;
}

.intro {
    background-color: white;
    padding: 50px 20px;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.conclave-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 40px;
}

.step {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 15px;
    width: 200px;
    text-align: center;
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    background-color: #8B0000;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-weight: bold;
}

.candidates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.candidate-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s;
}

.candidate-card:hover {
    transform: translateY(-10px);
}

.candidate-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.candidate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-info {
    padding: 20px;
}

.candidate-name {
    font-size: 1.5rem;
    margin: 0 0 5px;
    color: #8B0000;
}

.candidate-title {
    font-size: 1rem;
    color: #666;
    margin: 0 0 10px;
}

.candidate-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.candidate-detail {
    text-align: center;
}

.detail-label {
    font-size: 0.8rem;
    color: #999;
}

.detail-value {
    font-weight: bold;
    color: #333;
}

.candidate-stance {
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.progressive {
    background-color: #e6f7ff;
    color: #0066cc;
}

.moderate {
    background-color: #f0f0f0;
    color: #666666;
}

.conservative {
    background-color: #fff0f0;
    color: #cc0000;
}

.view-profile {
    display: block;
    text-align: center;
    background-color: #8B0000;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.view-profile:hover {
    background-color: #6B0000;
}

.prediction {
    background-color: white;
    padding: 50px 20px;
}

.prediction-content {
    max-width: 800px;
    margin: 0 auto;
}

.prediction-chart {
    display: flex;
    flex-wrap: wrap;
    margin: 40px 0;
}

.prediction-bar {
    height: 40px;
    margin-bottom: 15px;
    background-color: #8B0000;
    color: white;
    display: flex;
    align-items: center;
    padding-left: 10px;
    border-radius: 5px;
    position: relative;
}

.prediction-bar span {
    position: absolute;
    right: 10px;
}

.factors {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
}

.factor {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 15px;
    width: calc(50% - 60px);
}

.factor h3 {
    color: #8B0000;
    margin-top: 0;
}

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header h2 {
        font-size: 1.3rem;
    }
    
    .nav {
        flex-wrap: wrap;
    }
    
    .step {
        width: calc(50% - 50px);
    }
    
    .factor {
        width: 100%;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    .step {
        width: 100%;
    }
    
    .candidate-card {
        width: 100%;
    }
}
