html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    background: #232946;
    color: #fffffe;
    background-image: url(images/cpbg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
nav {
    background: #121629;
    padding: 1rem;
    text-align: center;
}
.nav-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4.5rem; /* Aradaki mesafe artırıldı */
}
.nav-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px #0002;
    transition: transform 0.2s;
}
.nav-img-large {
    width: 80px;
    height: 80px;
}
nav h1 {
    flex: none;
    margin: 0;
    font-size: 2.3rem;
    letter-spacing: 2px;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    background: #393d63;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px #0002;
  
    min-height: 400px;
    box-sizing: border-box;
    overflow: auto;
}
h2, h3 {
    text-align: center;
}
#menu {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;

}
button {
    background: #121629;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    margin: 0.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-weight: 600;
    box-shadow: 0 2px 8px #0001;
}
button:hover {
    background: #7c7879;
    transform: translateY(-2px) scale(1.04);
}
.hidden {
    display: none;
}
#playerInputs {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#playerInputs input {
    margin: 0.3rem 0;
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    width: 80%;
    font-size: 1rem;
    background: #232946;
    color: #fffffe;
    outline: none;
    box-shadow: 0 1px 4px #0002;
}
#assignments, #voteList {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    width: 100%;
}
#assignments li, #voteList li {
    background: #232946;
    margin: 0.5rem 0;
    padding: 0.7rem;
    border-radius: 6px;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: 0 1px 4px #0002;
}
#timer {
    font-size: 1.5rem;
    margin: 1rem 0;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
}
footer {
    text-align: center;
    margin-top: auto;
    color: #b8c1ec;
    padding: 0rem 0.1rem 0rem 0.1rem; 
    background: #121629;
    font-size: 1rem;
    letter-spacing: 1px;
}


#voteModal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
#voteModal.hidden {
    display: none;
}
.bg-title {
    background: #121629;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px #0001;
    font-weight: bold;
}
.bg-title h2 {
    margin: 0;
}


@media (max-width: 600px) {
    main {
        max-width: 300px;
        max-height: 300px;
        padding: 1rem 0.5rem;
        border-radius: 0;
        background-size: cover;
    }
    .bg-title {
        padding: 0.7rem 0.5rem;
        font-size: 8px;
    }
    .nav-flex {
        gap: 1.4rem;
    }
    .nav-img,
    .nav-img-large {
        width: 48px;
        height: 48px;
    }
    nav h1 {
        font-size: 1.1rem;
    }
    button {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    #playerInputs input {
        width: 95%;
        font-size: 1rem;
    }
    #assignments li, #voteList li {
        font-size: 1rem;
        padding: 0.5rem;
    }
    #timer {
        font-size: 1.1rem;
    }

    footer p{
        font-size: 9px;
    }
}