body,
html {
    padding: 0px;
    margin: 0px;
    height: 100vh;
}

body {
    background-color: rgba(134, 120, 211, 0.767);
}

.header {
    height: 100px;
    background-color: rgb(245 245 220 /40%);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgb(255 255 255 /30%);
    color: rgb(0, 0, 0);

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 40px 0px 20px;
}

.header-buttons {
    display: flex;
    gap: 25px;
}

.header-buttons button {
    height: 40px;
    width: 80px;
    border-radius: 20px;
    background-color: rgb(75, 75, 75);
    color: rgb(255, 255, 255);
}

.header-buttons button a {
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.header-buttons button:hover {
    cursor: pointer;
    background-color: black;
    font-weight: 700;
    transition: all 0.2s ease;
}

.menu-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 100px);
}

.menu {
    height: 400px;
    width: 500px;
    background-color: rgb(245 245 220 /40%);
    backdrop-filter: blur(10px);
    border: 2px solid rgb(255 255 255 /30%);
    border-radius: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;

}

.menu button {
    height: 50px;
    width: 180px;
    background-color: rgb(245 245 220 /10%);
    border-radius: 10px;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 1px;
}

.menu button:hover {
    cursor: pointer;
    background-color: rgb(100 100 220 /60%);
    font-weight: 700;
    transform: scale(1.1);
    transition: all 0.4s ease;
}

.menu button:active {
    transform: scale(0.95);
}

.game-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.selected-container {
    flex: 3;

    display: flex;
    justify-content: center;
    padding-top: 100px;
    gap: 150px;
}

.player-choice,
.computer-choice {
    height: 300px;
    width: 400px;
    background-color: rgb(245 245 220 /40%);
    backdrop-filter: blur(10px);
    border: 2px solid rgb(255 255 255 /30%);
    border-radius: 40px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.choice-container {
    flex: 2;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.choice-container button {
    background-color: rgb(245 245 220 /40%);
    backdrop-filter: blur(10px);
    border: 2px solid rgb(255 255 255 /30%);
    border-radius: 10px;
    height: 150px;
    width: 200px;
}

.choice-container button:hover {
    cursor: pointer;
    background-color: rgb(100 100 220 /60%);
    font-weight: 700;
    transform: scale(1.1);
    transition: all 0.4s ease;
}

.choice-container button:active {
    transform: scale(0.95);
}

.game-container-buttons {
    flex: 1;

    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 20px;
}

.game-container-buttons button {
    background-color: rgb(245 245 220 /40%);
    backdrop-filter: blur(10px);
    border: 2px solid rgb(255 255 255 /30%);
    border-radius: 10px;
    height: 60px;
    width: 120px;
    font-size: 20px;
}

.game-container-buttons button:hover {
    cursor: pointer;
    background-color: rgb(100 100 220 /60%);
    font-weight: 700;
    transform: scale(1.1);
    transition: all 0.4s ease;
}

.game-container-buttons button:active {
    transform: scale(0.95);
}

.rules-container {
    height: calc(100vh - 100px);
    display: flex;
    padding: 50px;
}

.rules {
    flex: 1;

    background-color: rgb(245 245 220 /40%);
    backdrop-filter: blur(10px);
    border: 2px solid rgb(255 255 255 /30%);
    border-radius: 40px;
    padding-left: 40px;

    display: flex;
    flex-direction: column;
}

.rules p {
    font-size: 22px;
}

.rules li {
    font-size: 18px;
}

.rules button {
    background-color: rgb(245 245 220 /40%);
    backdrop-filter: blur(10px);
    border: 2px solid rgb(255 255 255 /30%);
    border-radius: 10px;
    height: 40px;
    width: 120px;
    font-size: 20px;
    margin-top: auto;
    margin-bottom: 20px;
}

.rules button:hover {
    cursor: pointer;
    background-color: rgb(100 100 220 /60%);
    font-weight: 700;
    transform: scale(1.1);
    transition: all 0.4s ease;
}

.rules button:active {
    transform: scale(0.95);
}

.stats-container {
    height: calc(100vh - 100px);
    display: flex;
    padding: 50px;
}

.stats {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.stats h1 {
    text-align: center;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
}

.card {
    background: rgba(245, 245, 220, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 20px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.card h2 {
    margin-bottom: 10px;
}

.card p {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

.stats button {
    align-self: center;
    margin-top: 20px;
}

.popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 1000;
}

.popup-box {
    background: rgba(245,245,220,0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 300px;
}

.popup-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.popup button {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.confirm-reset {
    background: #ff4d4d;
    color: white;
}

.cancel-reset {
    background: #666;
    color: white;
}

.hidden {
    display: none;
}