body{
    background-image: url("img/bg2.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0 -100px;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

img {
    position: absolute;
    height: 150px;
}

#logo{
    background-color: #ffffff58;
    height: 75px;
    width: 170px;
    box-shadow: 10px 10px 10px #00000010;
    border-radius: 6px;
}

.logo{
    top: 25px;
    left: 30px;
    width: 130px;
    height: 40px;
}

#player{
    left: 0;
    top: 45vh;
}

#player2{
    left: 95vw;
    top: 45vh;
}

#ball{
    left: 48vw;
    top: 50vh;
    height: 80px;
    z-index: 1;
}

#a, #b{
    position: absolute;
    height: 150px;
    top: 50vh;
    left: 0;
}

#b{
    left: 95vw;
}

.scoreboard {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #ff0000, #006aff);
    padding: 10px 30px;
    border-radius: 6px;
    border: 2px solid #ffffffbf;
    box-shadow: 10px 10px 10px #00000010;
}

.scoreboard h1 {
    color: #ffffffbf;
    margin: 0;
    font-size: 34px;
    font-family: 'Tahoma', sans-serif;
    letter-spacing: 1px;
}

#menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    color: white;
    text-align: center;
}

#menu h1 {
    font-size: 64px;
    margin-bottom: 30px;
    color: #00aaff;
}

#menu button {
    font-size: 28px;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(145deg, red, blue);
    color: white;
    margin-bottom: 20px;
}

#menu button:hover {
    transform: scale(1.05);
}

#menu p {
    font-size: 18px;
    opacity: 0.8;
}

#pauseScreen {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999;
}

#pauseScreen h1 {
    font-size: 60px;
    margin-bottom: 30px;
}

#pauseScreen button {
    font-size: 24px;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(145deg, red, blue);
    color: white;
    margin-bottom: 20px;
}

#pauseScreen button:hover{
    transform: scale(1.05);
}

.player-names {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    max-width: 400px;
}

.player-names div {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.player-names label {
    margin-bottom: 6px;
    font-size: 18px;
}

.player-names input {
    padding: 12px;
    font-size: 18px;
    border-radius: 6px;
    border: 2px solid #444;
    background: rgba(255,255,255,0.15);
    color: white;
}

.player-names input:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 8px rgba(0,170,255,0.5);
}

#timer {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 28px;
    background: rgba(0,0,0,0.6);
    padding: 6px 20px;
    border-radius: 6px;
    border: 2px solid #ffffffbf;
}


.match-time {
    margin-bottom: 20px;
    text-align: left;
}

.match-time label {
    font-size: 18px;
    margin-bottom: 6px;
    display: block;
}

.match-time select {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    border-radius: 6px;
    border: 2px solid #444;
    background: rgba(255,255,255,0.15);
    color: rgb(0, 0, 0);

}
