*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: 'Roboto', sans-serif;
}
body{
    background-color:#825cff;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
}
/* Sidebar styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 180px;
    height: 100vh;
    background: #222;
    padding-top: 40px;
    z-index: 100;
    box-shadow: 2px 0 10px rgba(0,0,0,0.08);
}
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar li {
    margin: 30px 0;
    text-align: center;
}
/* Menu button styles */
.menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 200;
    background: #222;
    color: #fff;
    border: none;
    font-size: 2rem;
    border-radius: 5px;
    padding: 5px 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.menu-btn:hover {
    background: #444;
}

/* Sidebar hidden by default */
.sidebar {
    position: fixed;
    top: 0;
    left: -200px;
    width: 180px;
    height: 100vh;
    background: #222;
    padding-top: 40px;
    z-index: 150;
    box-shadow: 2px 0 10px rgba(0,0,0,0.08);
    transition: left 0.3s;
}
/* Voting and result buttons */
.candidate-card button,
#showResults,
#reset {
    background-color: #2980b9;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin: 8px 0;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.candidate-card button:hover,
#showResults:hover,
#reset:hover {
    background-color: #3498db;
    transform: translateY(-2px) scale(1.03);
}

/* Transparent menu button */
.menu-btn {
    background: transparent;
    color: #222;
    border: none;
    font-size: 2rem;
    border-radius: 5px;
    padding: 5px 12px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: none;
}
.menu-btn:hover {
    background: rgba(34,34,34,0.08);
}
.sidebar.active {
    left: 0;
}
.results-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
    text-align: center;
}

.vote-breakdown {
    background: #eaf6ff;
    border-radius: 10px;
    padding: 20px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(41, 128, 185, 0.07);
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.results-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px 20px 10px 20px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.07);
    text-align: center;
}

.vote-breakdown {
    background: #eaf6ff;
    border-radius: 14px;
    padding: 24px 18px 10px 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(41, 128, 185, 0.10);
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.result-card {
    background: linear-gradient(135deg, #fff 60%, #d0e6ff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(41,128,185,0.10);
    padding: 18px 24px;
    min-width: 140px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.result-card:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 6px 24px rgba(41,128,185,0.18);
}
.vote-breakdown {
    background: #eaf6ff;
    border-radius: 14px;
    padding: 24px 18px 24px 18px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(41, 128, 185, 0.10);
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 40px; /* Increased spacing between cards */
    max-width: 90vw; /* Responsive to viewport width */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.home-section {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 36px 28px 28px 28px;
    margin: 32px auto 24px auto;
    max-width: 800px;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.08);
    text-align: center;
}
.home-info h1 {
    color: #2980b9;
    margin-bottom: 16px;
}
.home-info p {
    font-size: 1.15rem;
    color: #34495e;
    margin-bottom: 18px;
}
.home-info ul {
    list-style: disc inside;
    color: #2980b9;
    font-size: 1.05rem;
    margin: 0 auto;
    display: inline-block;
    text-align: left;
}

.result-card {
    background: linear-gradient(135deg, #fff 60%, #d0e6ff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(41,128,185,0.10);
    padding: 24px 32px;
   min-width: 1000px;
    flex: 1 1 0;
    max-width: 350px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0; /* Remove default margin */
}
.result-card h3 {
    color: #2980b9;
    margin-bottom: 8px;
    margin-top: 0;
    font-size: 1.2rem;
    letter-spacing: 1px;
}
.result-card p {
    font-size: 1.1rem;
    color: #34495e;
    margin: 0;
}

.vote-breakdown h3 {
    color: #2980b9;
    margin-bottom: 12px;
}

.vote-breakdown p {
    font-size: 1.1rem;
    margin: 8px 0;
    color: #34495e;
}

/* Shift content when sidebar is open */
.app-wrapper {
    margin-left: 0;
    transition: margin-left 0.3s;
}
.sidebar.active ~ .app-wrapper {
    margin-left: 200px;
}
.sidebar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
    padding: 12px 0;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.sidebar a:hover {
    background: #ffd700;
    color: #222;
}
/* Add left margin to main content */
.app-wrapper {
    margin-left: 200px;
}

.navbar {
    
    padding: 0.5rem 0;
}
.navbar ul {
    list-style: none;
    display:block;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.navbar li {
    margin: 0 1.5rem;
}
.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem; transition: color 0.2s;
}
.navbar a:hover {
    color: #ffd700;
}
/* ...existing code... */
.app-wrapper{
  
    background-color:white;
    width:90%;
    max-width:1200px;
    border-radius:10px;
    padding:30px;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
    margin:10px;
}
header{
    text-align:center;
    margin-bottom:30px;
}
header h1{
    font-size:2.5rem;
    color:#2c3e50;
}
header p{
    color:#7f8c8d;
    font-size:1.2rem;
    margin-top:10px;
    
}
.voting-section{
    display:flex;
    justify-content:space-around;
    
    margin-bottom:50px;
}
.candidate-card {
    background-color:#f1f2f6;
    border-radius:10px;
    padding:20px;
    text-align:center;
    width:30%;
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
    transition: transition 0.3s ease, box-shadow 0.3s ease;

}
.candidate-card img{
    width:100%;
    border-radius:8px;
    margin-bottom:15px;
}
.candidate-card h2{
    font-size:1.5rem;
    color:#34495e;
    margin-bottom:10px;
}
.candidate-card button{
    background-color:#2980b9;
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:5px;
    cursor:pointer;
    font-size:1rem;
    transition: background-color 0.3s ease;
}
.candidate-card button:hover{
    background-color:#3498db;
}
.candidate-card:hover{
    box-shadow:0 6px 15px rgba(0,0,0,0.1);
    transform:translateY(-5px);
}
.results-section{
    text-align:center;
}
.results-section h2{
    font-size:2rem;
    color:#34495e;
    margin-bottom:20px;
    
    
}
.confirmation{
    position:fixed;
    bottom: 20px;
    left:50%;
    transform:translateX(-50%);
    background-color:#2ecc71;
    color:white;
    padding:15px 20px;
    border-radius:8px;
    font-size: 1.1rem;
    opacity:1;
    transition: opacity 0.5s ease;
}
.confirmation.fade-out{
    opacity:0;
}
button{
    background-color:#2980b9;
    color:white;
    border: none;
    padding: 12px 25px;
    font-size: 1 rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 10px;
}
button:hover{
    background-color: #3498db;
}
canvas{
    max-width:100%;
    height: 300px;
    margin-bottom: 20px;}
    p{
        font-size:1.2rem;
        color:#2c3e50;
    }
    @media(max-width:768px ){
        .voting-section{
            flex-direction:column;
            align-items: center;
        }
        .candidate-card{
            width: 80%;
            margin-bottom: 20px;
        }
    }