body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
    background-color: #232323;
}

.container {
    text-align: center;
    padding-bottom: 100px;
}

#title {
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    color: #d0d0d0;
    margin-bottom: 0px;
}

#moveCounter {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #d0d0d0;
    margin-bottom: 100px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon {
    background-color: #787c7e;

    color: white;
    border-radius: 50%;
    font-size: 14px;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    cursor: pointer;
}

.info-icon:hover {
    background-color: #ffcc01;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 75px);
    grid-template-rows: repeat(5, 75px);
    gap: 5px;
    margin: 40px auto;
}

.cell {
    width: 75px;
    height: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    cursor: pointer;
    font-size: 36px;
    border-radius: 15px;
    transition: transform 0.1s linear, box-shadow 0.1s linear, opacity 0.1s;
}

.cell:active {
    background-color: #000000;
    opacity: .8;
    transform: scale(.98);
}

.cell.selected {
    background-color: #000000;
    opacity: .8;
    transform: scale(.98);
}

.cell.correct {
    background-color: #34c759;
    color: white;
}

.cell.wrong-position {
    background-color: #ffcc01;
    color: white;
}

.cell.incorrect {
    background-color: #787c7e;
    color: white;
}

.cell.wrong-row {
    background-color: rgb(61, 182, 219);
    color: white;
}

#moveCounter {
    font-size: 18px;
    margin-bottom: 20px;
}

.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: 20px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 10px;
    border: 1px solid #888;
    width: 380px;
    max-width: 90%;
    text-align: center;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.close2 {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close2:hover,
.close2:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.example-row {
    display: flex;
    justify-content: center;
    margin-bottom: 2px;
}

.example-cell {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    border-radius: 5px;
    margin: 2px;
}

.example-correct {
    background-color: #34c759;
    color: white;
}

.example-wrong-position {
    background-color: #ffcc01;
    color: white;
}

.example-wrong-row {
    background-color: rgb(61, 182, 219);
    color: white;
}

.example-incorrect {
    background-color: #787c7e;
    color: white;
}

hr {
    border: .5px solid #888;
    width: 100%;
}

#instructionsModal p {
    font-size: 16px; /* Change this value to your desired font size */
}

#startGame {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: rgb(0, 0, 0);
    color: white;
    border: none;
    border-radius: 5px;
}
/*
#playAgainButton {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: rgb(0, 0, 0);
    color: white;
    border: none;
    border-radius: 5px;
}

#playAgainButtonLoss {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: rgb(0, 0, 0);
    color: white;
    border: none;
    border-radius: 5px;
}
*/
.button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 20px;
    width: 100%;
}

.share-button {
    position: absolute;
    left: 0;
    padding: 0; /* Remove padding to align with button text */
    font-size: 16px;
    cursor: pointer;
    background-color: black;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.share-button:hover {
    background-color: #ffcc01;
}

.share-button i {
    font-size: 18px;
}

#playAgainButton,
#playAgainButtonLoss {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: rgb(0, 0, 0);
    color: white;
    border: none;
    border-radius: 5px;
}



.no-padding {
    margin-top: 5px; /* Adjust this value as needed */
    margin-bottom: 5px; /* Adjust this value as needed */
}

.footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    color: #d0d0d0;
    background-color: #232323;
    width: 100%;
    position: fixed;
    bottom: 0;
}

.footer img {
    width: 20px !important;
    height: 20px !important;
    margin-right: 10px;
    vertical-align: middle;
}

.footer p {
    display: inline;
    font-size: 9px;
    vertical-align: middle;
}

/* General Section Styling */
.strategies-section {
    margin: 80px auto 10px auto; /* Consistent spacing between sections */
    padding: 10px; /* Adjusted padding for better alignment */
    background-color: #2e2e2e;
    border-radius: 10px;
    color: white;
    width: 100%; /* Matches the grid width */
    max-width: 375px; /* Same width as the grid (5 cells x 75px + gaps) */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: left; /* Aligns text properly */
}

.about-section, .contact-section {
    margin: 10px auto; /* Consistent spacing between sections */
    padding: 10px; /* Adjusted padding for better alignment */
    background-color: #2e2e2e;
    border-radius: 10px;
    color: white;
    width: 100%; /* Matches the grid width */
    max-width: 375px; /* Same width as the grid (5 cells x 75px + gaps) */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: left; /* Aligns text properly */
}

/* Header and Button Alignment */
.strategies-header, .about-header, .contact-header {
    display: flex;
    align-items: center; /* Aligns items vertically */
    justify-content: space-between; /* Keeps the button on the right */
}

.strategies-header h2, .about-header h2, .contact-header h2 {
    margin: 0;
    flex: 1; /* Allows the heading to take up available space */
    color: white; /* Ensures header text color is white */
}

/* Toggle Button Styling */
.toggle-button {
    background-color: #2e2e2e;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px; /* Centers the + or - symbol */
    margin-left: 10px;
    transition: background-color 0.3s;
}

.toggle-button:hover {
    background-color: #444444;
}

/* Collapsible Content */
.strategies-content, .about-content, .contact-content {
    display: none; /* Hidden by default */
    margin-top: 10px;
}