/* Styles for the start button */
.start-btn {
    width: 270px;
    height: 270px;
    font-size: 1.2rem;
    background-color: #2ECC71; /* Green */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 auto;
    display: block;
}

.start-btn:hover {
    background-color: #27AE60; /* Darker Green on hover */
}

/* Styles for the tic-tac-toe board */
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-gap: 10px;
    width: 300px;
    height: 300px;
    margin: 20px auto;
    background-color: #9be2d4; /* New palette color */
    border: 5px solid #797687; /* New dark gray from the palette */
    padding: 10px;
    box-sizing: border-box;
}

/* Cell styles */
.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #b8f0e3; /* Light background from the palette */
    border: 1px solid #c2c2c2; /* Soft gray border */
    cursor: pointer;
    font-size: 1.2rem;
    width: 100%; /* Ensure the cell takes up full available space */
    height: 100%; /* Ensure the cell takes up full available space */
    position: relative;
}

/* Hover effect for cells */
.cell:hover {
    background-color: #cbf1e4; /* Lighter color from the palette */
}

/* Blinking animation for winning cells */
@keyframes blink-border {
    0% {
        border-color: #808080; /* Gray */
    }
    50% {
        border-color: #00FF20; /* Green */
    }
    100% {
        border-color: #808080; /* Gray */
    }
}

.cell.blink {
    animation: blink-border 1s infinite;
}

/* Additional styles for correct and incorrect cells */
.cell.correct {
    background-color: #6AFF00; /* Green */
}

.cell.incorrect {
    background-color: #FF0000; /* Red */
}

/* Answer choices styled as clickable boxes */
.answers {
    list-style-type: none;  /* Removes bullet points */
    padding: 0;
    margin: 0;
}

.answer {
    background-color: #cbf1e4;  /* Background color for answer boxes */
    border: 2px solid #797687;  /* Border color */
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;  /* Rounded corners for a cleaner look */
}

.answer:hover {
    background-color: #b8f0e3;  /* Lighter color on hover */
}

.answer:active {
    background-color: #9be2d4;  /* Even lighter on click */
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #cbf1e4; /* Lighter background for modal */
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #c2c2c2; /* Soft gray border */
    width: 50%; /* Adjust as needed */
    max-width: 400px; /* Adjust as needed */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Timer styles */
#timer {
    font-size: 1.5em;
    text-align: center;
    margin: 10px 0;
}

/* Speech bubble */
.speech-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    display: none;
    white-space: nowrap;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Grid score modal styles */
.grid-score-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    text-align: center;
    word-wrap: break-word;
}

.grid-score-modal h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.grid-score-modal p {
    font-size: 1.2rem;
}

/* Social media share buttons */
.social-share-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-share-buttons button {
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    color: white;
    background-color: #1DA1F2; /* X's blue color */
}

.social-share-buttons button:hover {
    opacity: 0.8;
}

/* Specific styles for Facebook button */
#share-fb-btn {
    background-color: #4267B2;
}

/* Specific styles for LinkedIn button */
#share-linkedin-btn {
    background-color: #0077B5;
}

/* Styles for Rules Modal */
#rules-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #cbf1e4; /* Modal background */
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #c2c2c2;
    width: 80%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Close button ("X") */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #797687;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-top: 0;
    color: #797687;
}

.modal-content p {
    font-size: 1rem;
    color: #797687;
    line-height: 1.5;
}

