@font-face {
    font-family: PermanentMarker-Regular;
    src: url(font/PermanentMarker-Regular.ttf);
}

@font-face {
    font-family: dash-digital-7;
    src: url(font/dash-digital-7.regular.ttf);
}

body {
    width: 100%;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-image: url('../img/abstract-uv-ultraviolet-light-composition.jpg');
    background-size: 100% 100%;
    background-position: center;
    user-select: none;
}

.game-container {
    background-color: rgba(255, 255, 255, 0.6);
    width: fit-content;
    border-radius: 50px;
    padding: 0 40px 20px 40px;
    margin: 35px auto 15px auto;
}

.page-title {
    font-family: PermanentMarker-Regular;
    text-align: center;
    font-size: 50px;
    margin: 0;
}

.game-header-container {
    display: flex;
    font-size: 30px;
    justify-content: center;
    align-items: center;
}

.timer {
    font-family: monospace;
    font-weight: bold;
    background-color: rgba(255, 250, 250, 0.548);
    border: 2px solid black;
    border-radius: 5px;
    padding: 0 5px;
    justify-content: center;
    align-items: center;
}

.smiley-btn {
    display: flex;
    font-size: 40px;
    cursor: pointer;
    margin: 0 40px;
}

.mines-counter {
    font-family: monospace;
    font-weight: bold;
    background-color: rgba(255, 250, 250, 0.548);
    border: 2px solid black;
    border-radius: 5px;
    padding: 0 5px;
    margin-left: 30px;
}

.table {
    background-color: rgb(142, 142, 142);
    border: 2px solid black;
    margin: 10px auto;
    text-align: center;
    border-collapse: collapse;
}

.cell {
    border: 2px solid black;
    background-color: #7c7c7c;
    font-weight: bold;
    font-size: 25px;
    cursor: pointer;
    height: 35px;
    width: 35px;
    align-items: center;
    justify-content: center;
    transition: 0.3s, transform 0.1s;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.cell:hover {
    background-color: rgba(211, 211, 211, 0.555);
}

.revealed {
    background-color: lightgrey;
}

.lives {
    display: flex;
    justify-content: center;
    margin: 0;
    font-size: 40px;
}

.hints-container {
    display: flex;
    justify-content: center;
    font-size: 30px;
}

.hints {
    margin: 10px auto;
    cursor: pointer;
}

.safe-click-container {
    background-color: rgb(255, 140, 73, 0.7);
    display: flex;
    width: fit-content;
    border: 2px solid black;
    margin: 0 auto;
    border-radius: 15px;
    padding: 10px;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

.safe-click-container:hover {
    background-color: rgb(255, 140, 73);
}

.safe-click-btn {
    margin: 0;
    font-weight: bold;
}

.safe-click-title {
    color: rgba(0, 0, 0, 0.699);
    text-align: center;
    margin: 5px auto 15px auto;
    font-size: 10px;
    font-family: dash-digital-7;
    font-weight: bold;
}

.mega-hint-container {
    background-color: rgb(60, 151, 255, 0.8);
    display: flex;
    width: fit-content;
    border: 2px solid black;
    margin: 0 auto;
    border-radius: 15px;
    padding: 10px;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;

}

.mega-hint-container:hover {
    background-color: rgb(60, 151, 255);
}

.game-level-title {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 8px;
    font-size: 22px;
}

.levels-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.beginner-btn,
.medium-btn,
.expert-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
    border: 2px solid rgb(0, 0, 0);
    border-radius: 10px;
    font-size: 15px;
    padding: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 70px;
}

.beginner-btn {
    background-color: rgba(39, 202, 21, 0.8);
}

.medium-btn {
    background-color: rgb(255, 166, 0, 0.8);
}

.expert-btn  {
    background-color: rgb(255, 60, 0, 0.8);
}

.beginner-btn:hover {
    background-color: rgba(39, 202, 21);
}

.medium-btn:hover {
    background-color: rgb(255, 166, 0);
}

.expert-btn:hover {
    background-color: rgb(255, 60, 0 ); 
}

.victory-popup,
.loss-popup {
    position: fixed;
    background-color: rgb(194, 193, 193);
    height: 200px;
    width: 350px;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    border: 3px solid black;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.victory-popup p,
.loss-popup p {
    display: block;
    color: rgb(0, 0, 0);
    margin-top: 40px;
}

.btn-restart-game {
    background-color: rgb(255, 117, 117);
    padding: 10px;
    border: 1px solid black;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    margin: 20px auto 0;
    position: fixed;
    bottom: 20px;
    transform: translateX(-50%);
}

.btn-restart-game:hover {
    background-color: rgba(234, 234, 234, 0.56);
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(92, 92, 92, 0.555);
    z-index: 999;
}

.hidden {
    display: none;
}

.dark-mode-toggle {
    background-color: rgb(0, 0, 0, 0.9);
    color: rgb(255, 255, 255);
    border-radius: 5px;
    width: fit-content;
    height: 30px;
    margin: 0 auto;
    padding: 5px 10px;
    align-content: center;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}

.dark-mode-toggle:hover {
    background-color: rgba(0, 0, 0);
    color: rgb(255, 255, 255);
}

.best-score-container {
    background-color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin: 15px auto;
    width: fit-content;
    height: fit-content;
    border-radius: 20px;
    padding: 5px 15px;
}

.best-score-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.beginner-best-score,
.medium-best-score,
.expert-best-score {
    margin-bottom: 15px;
}

/************************* DARK MODE *************************/


.game-container.dark-mode {
    background-color: rgba(0, 0, 0, 0.6);
    color: rgb(235, 234, 234);
}


.timer.dark-mode {
    border-color: rgb(235, 234, 234);
}


.mines-counter.dark-mode {
    border-color: rgb(235, 234, 234);
}

.cell.dark-mode {
    color: black;
    border-color: rgb(235, 234, 234);
}

.safe-click-container.dark-mode {
    border-color: rgba(235, 234, 234, 0.844);
}

.safe-click-title.dark-mode {
    color: rgb(235, 234, 234);
}

.mega-hint-container.dark-mode {
    border-color: rgba(235, 234, 234, 0.844);
}

.beginner-btn.dark-mode,
.medium-btn.dark-mode,
.expert-btn.dark-mode {
    border-color: rgb(235, 234, 234);
}

.beginner-btn.dark-mode:hover {
    background-color: rgba(39, 202, 21);
}

.medium-btn.dark-mode:hover {
    background-color: rgb(255, 166, 0);
}

.expert-btn.dark-mode:hover {
    background-color: rgb(255, 60, 0 ); 
}

.dark-mode-toggle.dark-mode {
    background-color: rgba(255, 201, 52, 0.800);
    color: rgb(235, 234, 234);
    border-color: rgba(235, 234, 234, 0.819);
}

.dark-mode-toggle.dark-mode:hover {
    background-color: rgba(255, 201, 52, 0.900);
}

.best-score-container.dark-mode {
    background-color: rgba(0, 0, 0, 0.6);
    color: rgb(235, 234, 234);
}