* {
    margin: 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.header {
    position: sticky;
    top: 0;
    z-index: 12;
    background-color: white;
    margin: 0;
    
}

.nav-menu {
    box-sizing: border-box;
    padding: 0px 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    height: 50px;
    
    box-shadow: 0 1px 0 #dfdfdf;
}

.menu-left {
    justify-content: flex-start;
}

.menu-right {
    justify-content: flex-end;
    height: 100%;
}

.nav-button {
    display: inline-flex;
    height: 100%;
    padding: 0px 15px;
    align-items: center;
}

.nav-button:hover {
    cursor: pointer;
    background-color: #eee;
}

.logo-text {
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    padding: 8px;
}

.big-text {
    font-size: 2em;
    padding-bottom: 20px;
}

.nav-logo {
    cursor: pointer;
}

.page-content {
    position: relative;
}

.button {
    margin: 10px 0px 2px;
    padding: 10px 20px; 
    background-color: black; 
    color: white; 
    border: none; 
    border-radius: 30px;
    font-size: 14px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: background-color 0.2s ease; 
}

.button:hover {
    background-color: #444;
}

.play-button {
    margin: 30px 0px;
    padding: 15px 30px;
    font-size: 18px;
    transition: transform 0.2s ease; 
}

.play-button:hover {
    transform: scale(1.1);
}


#game-container {
    display: flex;
    gap: 20px;
    padding: 40px;
    margin: 0px 100px;
    flex-wrap: wrap;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.word-box {
    border-radius: 6px;
    border: 1px solid #dfdfdf;
    padding: 40px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#moves-declarator {
    color: #bbb;
    font-style: italic;
    font-family: 'Courier New', Arial, Helvetica, sans-serif;
    font-weight: 500;
    padding-bottom: 20px;
}

.step-tracker {
    max-width: 350px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, 1fr);
    grid-gap: 17px 5px;
    justify-items: center;
    
}

.solve-attempt {
    grid-column-start: 1;
    transition: transform 0.3s ease;
    transform: scale(1);
}

.underline {
    font-family: sans-serif;
    text-transform: uppercase;
    font-weight: 700;

    border-bottom: 2px solid black;
    width: 150px;
    height: 25px;
    display: inline-block;
    margin: 0 5px;
    text-align: center;
}

#solve-arrow {
    width: 25px;
    height: 25px;
    grid-column-start: 2;
    color: #ffd924;
}

#solve-dest {
    grid-column-start: 3;
    color: black;
    transition: all 0.3s ease;
}

#solve-dest.found {
    color: #efd036;
    border-bottom: 2px solid #efd036;
}

hr {
    border: 1px solid #333;
}

.about-text {
    padding: 0px 120px;
    margin: 50px 0px;
}

.about-desc, .howto-text {
    padding: 10px 0px;
    line-height: 1.5;
}

footer {
    margin: 0;
    padding: 20px 0px 0px;
    background-color: #222;
    height: 100px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.footer-elements {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.footer-name {
    color: white;
    cursor: pointer;
}

.footer-text {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    margin: 20px;
    font-size: 12px;
    color: white;
}

.method-text {
    margin: 50px 0px;
    padding: 0px 20%;
}

.method-heading {
    margin: 15px 0px 8px;
    font-size: 1.2em;
}

.method-desc {
    padding: 10px 0px;
    line-height: 1.5;
    font-size: 1.1em;
}

.method-img {
    max-width: 60%;
    text-align: center;
    padding: 35px 0px;
}

.method-bold {
    font-weight: 700;
    color: black;
    text-transform: uppercase;
    font-family: sans-serif;
}

@media screen and (max-width: 1270px) {
    #game-container {
        margin: 0 5%;
    }
}

@media screen and (max-width: 850px) {
    .method-text {
        padding: 0px 10%;
    }
    
    .about-text {
        padding: 0px 10%;
    }

    #game-container {
        padding: 0px;
        padding-bottom: 20px;
        justify-content: center;
    }
}

@media screen and (max-width: 580px) {
    
    .method-img {
        max-width: 90%;
    }

    .nav-menu {
        padding: 0px 20px;
    }

    .nav-button {
        padding: 0px 10px;
        font-size: 0.9em;
    }

    .word-box {
        padding: 30px;
        font-size: 0.85em;
    }

    .underline {
        width: 110px;
        height: 25px;
    }
}

@media screen and (max-width: 400px) {
    .nav-menu {
        padding: 0px 15px;
    }
    
    .nav-button {
        padding: 0px 10px;
        font-size: 0.8em;
    }

    .word-box {
        padding: 30px;
        font-size: 0.8em;
    }

    .underline {
        width: 100px;
        height: 22px;
    }
}

