body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F0EAD6;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8f8f8;
    padding: 20px;
    text-align: center;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#clearLogo {
    width: 500px; /* Adjust width as needed */
    height: auto;
}


section {
    width: 80%;
    max-width: 800px;
    margin: 20px 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

canvas {
    margin-top: 20px;
}

.key-dem {
    background-color: blue;
    color: white;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
}

.key-rep {
    background-color: red;
    color: white;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
}

#candidates {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

#candidates #harris {
    position: absolute;
    left: 10%;
}

#candidates #trump {
    position: absolute;
    right: 10%;
}

#candidates img {
    width: 150px;
    height: 150px;
    position: absolute;
    transform: scale(0); /* Start at scale 0 */
    transition: transform 2s ease; /* Adjust timing for slower scaling */
}

#candidates img.scale-up {
    transform: scale(1); /* Scale to full size */
}


/* Add to styles.css */
@media (max-width: 768px) {

    #candidates {
        bottom: 0; /* Aligns to the bottom of the screen */
        left: 0;
        right: 0;
        display: flex;
        box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); /* Optional: shadow for a floating effect */
    }

    #candidates img {
        width: 0.5px;
        height: 0.5px;
    }

    
.key-dem {
    background-color: grey;
    color: white;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
}

    body {
        padding: 0 10px;
        background-color: grey;
    }

    header h1 {
        font-size: 1.5em; /* Smaller header font size */
    }

    section {
        width: 100%;
        padding: 10px;
        box-shadow: none; /* Optional: reduce shadowing for cleaner mobile look */
    }
}


