body, html {
    /*height: 100%;*/
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: top;
    background-color: #f8f9fa;
}
.game-container {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}
.hidden {
    display: none;
}
#quitGame {
    margin-top:4em !important;
}
#info {
    font-size: 16pt;
    color: #003a54;
    margin-top: 0.8em;
    margin-bottom: 0.8em;

}
.game-option {
    /*background-color: lightblue !important;
    color:#000 !important;*/
    font-size: 16pt !important;
}
#pelaaUudelleen {
    /*background-color: lightblue !important;
    color:#000 !important;*/
    font-size: 16pt !important;
}
#quitGame {
    /*background-color: lightblue !important;
    color:#000 !important;*/
    font-size: 16pt !important;
}
.startGame {
    font-size: 16pt !important;
    background-color: #003a54 !important;
    color:#fff !important;
    border: 1px solid #003a54 !important;
}
#peliohjeet {
    font-size: 14pt !important;
    color: #003a54;
    margin-bottom: 1em;
}
#seuraava {
    font-size: 14pt !important;
}
.game-option_x:hover {
    background-color: blue !important;
    color:#fff !important;
}
.pallo_harmaa {
    width: 20px;
    height: 20px;
    background-color: #aaa;
    border-radius: 50%;
    position: relative;
    float:left;
    margin: 1px;
}
.pallo_punainen {
    width: 20px;
    height: 20px;
    background-color: #9e0b0f;
    border-radius: 50%;
    position: relative;
    float:left;
    margin: 1px;
}
.pallo_sininen {
    width: 20px;
    height: 20px;
    background-color: #003a54;
    border-radius: 50%;
    position: relative;
    float:left;
    margin: 1px;
}

#textOutput {
    font-size: 16px;
    font-family: monospace;
    white-space: pre-wrap;
    border-right: 3px solid black;
    display: inline-block;
    animation: blink 0.7s infinite;
}
@keyframes blink {
    50% { border-color: transparent; }
}
.carousel-item img {
    max-height: 300px;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 30px; /* Sijoitetaan tekstilaatikko kuvan alaosaan */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 58, 94, 0.7); /* Tumma läpinäkyvä tausta */
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    width: auto;
    max-width: 80%;
    /*white-space: nowrap;*/
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-caption {
    background: rgba(0, 58, 94, 0.5); /* 0/58/84  rgba(11, 94, 215, 0.5);*/
    color: white;
    padding: 8px;
    padding-bottom: 0px;
    border-radius: 5px;
}

 .image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
 }

 .election-number {
    position: absolute;
    top: 40px;
    right: 15px;
    background-color: #003a54;
    color: white;
    font-size: 36px;
    font-weight: bold;
    padding: 7px 15px;
    border-radius: 50%;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
 } 

 #kuka {
    position: relative;  
    /*display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;*/
}
#kuka .election-number {
    top: 100px;
    right: 10px;
}
 
 .tummansininen {
    color: #003a54;
 }        

 .btn-danger {
    background-color: #9e0b0f !important;
 }

 .btn-primary {
    background-color: #003a54 !important; /* Tummansininen aktiivinen */
    color: #ffffff !important; /* Beige teksti */
    border-color: #000 !important; /* Vaaleansininen reunus */
 }

 .btn-custom {
    background-color: #b0d9eb; /* Vaaleansininen hover */
    color: black; /* #003a54; /* Tummansininen teksti */
    border-color: #003a54; /* Tummansininen reunus */
    font-weight: 555;

    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-custom:hover, 
.btn-custom:focus { 
    background-color: #003a54 !important; /* Tummansininen aktiivinen */
    color: #ffffff !important; /* Beige teksti */
    border-color: #000 !important; /* Vaaleansininen reunus */
}

.btn-custom.active {
    background-color: #003a54 !important; /* Tummansininen aktiivinen */
    color: #ffffff !important; /* Beige teksti */
    /*border-color: #b0d9eb !important; /* Vaaleansininen reunus */
    border-color: #ffffff !important; 
}

#carouselExample .image-wrapper { margin-bottom: 1rem; }
 

