.activated {
    display: Block;
}

.hidden {
    display: hidden;
}

body {
    background-color: beige;
    font-family: 'Open Sans', sans-serif;
}

.title-header {
    font-family: 'VT323', monospace;
}

#count {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 767px) {
    #count {
        font-size: 14px;
        margin-top: 5px;
    }
}

.lightit {
    cursor: pointer;
    position: relative;
    display: inline-block;
    width: 90px;
    height: 90px;
    margin: 10px;
    padding: 0px;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 2px 10px 1px #BBB;
    background-color: gray;
    transition: background-color .3s;
}

.lightit:active {
    background-color: burlywood;
}

.light-on:before {
    content: "\f0eb";
    font-family: "Font Awesome 5 Free";
    color: #EEE;
    font-size: 50px;
    position: absolute;
    top: 13%;
    left: 33%;
}

.lightit:hover {
    box-shadow:
        0px 0px 0px 6px GoldenRod,
        0px 2px 10px 1px #BBB;
}

.light-on {
    background-color: gold;
}

.light-on:hover {
    box-shadow:
        0px 0px 0px 6px dimGrey,
        0px 2px 10px 1px #BBB;
}

.how-to {
    margin-top: 15px;
    background-color: ghostWhite;
}

.game-cont {
    position: relative;
    padding-top: 5px;
}

.winner-cont {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Add CSS styles for dark mode */
body.dark-mode {
    background-color: #222;
    color: #fff;
}

.dark-mode-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 14px;
    color: #222;
}

.dark-mode-toggle label {
    margin-left: 5px;
    color: #222;
}

.dark-mode label {
    color: #fff;
}

.dark-mode-toggle input[type="checkbox"] {
    display: none;
}

.dark-mode-toggle input[type="checkbox"]+label:before {
    content: "\f185";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 20px;
}

.dark-mode-toggle input[type="checkbox"]:checked+label:before {
    content: "\f186";
}

/* Additional styles for dark mode */
.title-header,
.how-to {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.how-to {
    padding: 1.2rem;
}

.how-to h3,
.how-to p {
    color: #fff;
}

.well.how-to {
    background-color: #333;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.winner-msg {
    padding-top: 230px;
    text-align: center;
    color: #EEE;
}

/* Media Queries */

@media (max-width: 767px) {
    .lightit {
        width: 60px;
        height: 60px;
    }

    .lightit:before {
        font-size: 30px;
        top: 20%;
        left: 30%;
    }

    .winner-msg {
        padding-top: 150px;
    }

    .title-header {
        font-size: 24px;
    }

    .how-to {
        margin-top: 10px;
    }
}

@media (max-width: 1200px) {
    .lightit {
        width: 50px;
        height: 50px;
    }

    .lightit:before {
        font-size: 25px;
        top: 15%;
        left: 28%;
    }

    .winner-msg {
        padding-top: 100px;
    }

    .title-header {
        font-size: 20px;
    }

    .how-to {
        margin-top: 5px;
    }
}

#reset-button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#reset-button:hover {
    background-color: #0056b3;
}

#reset-button-now {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#reset-button-now:hover {
    background-color: #0056b3;
}