body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 1rem;
}

.card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    padding: 0.5rem 1.5rem;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.progress-bar {
    background-color: #3498db;
}

#scoreValue {
    font-weight: bold;
    color: #2c3e50;
}

#scoreDetails .card {
    transition: transform 0.2s;
}

#scoreDetails .card:hover {
    transform: translateY(-2px);
}

#map {
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.footer {
    margin-top: auto;
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-top: 1px solid #dee2e6;
}

.team-images-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    padding-bottom: 10%;
}

.team-images-wrapper .slide img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-images-wrapper .slide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    flex-wrap: wrap;
    transition: all 1s ease;
    padding-top: 10%;
}

.team-images-wrapper .slide img,
.code-block code {
    max-width: 45%;
    min-width: 300px;
    flex: 1 1 300px;
}


.code-block code {
    background-color: lightgray;
    color: #27ae60;
    font-family: 'Courier New', Courier, monospace;
    font-size: 25px;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    display: block;
    line-height: 1.4;
    text-align: left;
    transition: all 1s ease;
    transform: translateY(0);
    opacity: 1;
}

.code-block {
    transform: translateY(0);
    opacity: 1;
}

.code-block span {
    font-weight: bold;
}

.keyword {
    color: #999;
}

.property {
    color: #999;
}

.value {
    color: #27ae60;
}

.left-shift {
    text-align: left;
    align-items: flex-start;
    transition: transform 0.5s ease;
}

.right-shift {
    text-align: right;
    align-items: flex-end;
    flex-direction: row-reverse;
    transition: transform 0.5s ease;
}

h1.mb-4 {
    padding-top: 10%;
    display: flex;
    justify-content: center;
    font-size: 50px;
    font-family: 'Open Sans';
}

.home-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.home-image img {
    width: 400px;
    height: auto;
}

/* Responsive Animation on Resize */
@media (max-width: 1248px) {
    .left-shift,
    .right-shift {
        transform: translateX(0);
        text-align: center;
        align-items: center;
    }

    .team-images-wrapper .slide {
        flex-direction: column;
        text-align: center;
    }

    .code-block code {
        transform: translateY(20px);
        opacity: 1;
        margin-top: 20px;

}
}

#carbonCalculator {
    max-width: 800px;
    margin: 0 auto;
}

#carbonCalculator .form-label {
    font-weight: 500;
    color: #2c3e50;
}

#carbonCalculator .form-control,
#carbonCalculator .form-select {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem;
}

#carbonCalculator .form-control:focus,
#carbonCalculator .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

#results {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

#results h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

#results .alert {
    margin-bottom: 0;
}

#results p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

#results span {
    font-weight: bold;
    color: #27ae60;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f5f5f5;
}

.form-group {
    position: relative;
}

.score-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.score-circle, .gemini-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.score-circle {
    background: linear-gradient(45deg, #2196F3, #9C27B0);
}

.gemini-score-circle {
    background: linear-gradient(45deg, #FF9800, #F44336);
}
