* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FFDEDE; /* Light Pink */
    text-align: center;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #000000; /* Black */
    text-shadow: 2px 2px 4px #CF0F47; /* Dark Red Shadow */
}

.hello {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.game {
    height: 60vmin;
    width: 60vmin;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1.5vmin;
}

.box {
    background-color: #FFFFFF; /* White */
    border: 2px solid #000000; /* Black Border */
    border-radius: 1rem;
    font-size: 6vmin;
    color: #CF0F47; /* Dark Red */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.box:hover:enabled {
    background-color: #FF0B55; /* Bright Red */
    color: #FFDEDE; /* Light Pink */
}

.box:disabled {
    opacity: 0.7;
}

.msg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent Black */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

#msg {
    color: #FFDEDE; /* Light Pink */
    font-size: 5vmin;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000000; /* Black Shadow */
    margin-bottom: 1rem;
}

#newbtn, .html {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    background-color: #000000; /* Black */
    color: #FFDEDE; /* Light Pink */
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
}

#newbtn:hover, .html:hover {
    background-color: #CF0F47; /* Dark Red */
}

.hide {
    display: none;
}