@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
body {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background-color: #D59B6B;
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    flex-direction: column;
    color: #fff;
    padding-top: 50px;
    padding-bottom: 50px;
}
h1 {
    font-size: 3rem;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px #000;
}
.home-link {
    position: absolute;
    top: 20px;
    left: 20px;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px #000;
}
.home-link:hover {
    color: #ffcc00;
    text-shadow: 4px 4px 8px #000;
    transform: scale(1.1);
    cursor: pointer;
}
#status {
    font-size: 1.5rem;
    margin-bottom: 30px;
}
.container {
    display: flex;
    justify-content: center;
    padding: 30px;
    background-color: #6C584C;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    width: 60%;
    max-width: 800px;
    margin-bottom: 50px;
    position: relative;
}
.player-box {
    padding: 20px;
    background-color: #8B5E34;
    border-radius: 10px;
    width: 80%;
}
.header, .input-group {
    display: grid;
    grid-template-columns: 1fr 4fr 2fr 2fr;
    gap: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}
input[type="text"] {
    padding: 8px;
    font-size: 1rem;
    left: auto;
    text-align: center;
    background-color: #D59B6B;
    border: none;
    border-radius: 5px;
    color: #fff;
    width: 98%;
}
button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    background-color: #A3B18A;
    border: none;
    border-radius: 5px;
    color: #fff;
}
#resign-btn {
    background-color: #e76f51;
    position: absolute;
    top: -15px;
    left: -116px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
#popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    padding-left: 35px;
    background: #6C584C;
    color: #fff;
    font-size: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
    z-index: 100;
}
#confirmation-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: #6C584C;
    color: #fff;
    font-size: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
    z-index: 100;
    text-align: center;
}
#confirmation-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}
.confirm-btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}
#yes-btn {
    background-color: #e76f51;
}
#no-btn {
    background-color: #A3B18A;
}
.close-btn {
    position: fixed;
    top: -18px;
    right: -1px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
#result-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #6C584C;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 10px #000;
}
#play-again {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    background-color: #A3B18A;
    border: none;
    border-radius: 5px;
    color: #fff;
    display: none;
}
#player-inputs {
    max-height: 400px;
    overflow-y: auto;
}
#secret-number {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #ffcc00;
    text-shadow: 2px 2px 4px #000;
    display: none;
}
.profile {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #6C584C;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    flex-direction: column;
}
.profile-icon {
    width: 40px;
    height: 40px;
    background-color: #2a9d8f;
    border-radius: 50%;
}