.root
{
    --black-color: #333;
    --green-background: #57a761;
}
body
{
    height: 100vh;
    width: 100vw;
    background-color: white;
    overflow: hidden;
}

/* UNIVERSAL STYLING */

#header
{
    height: 10vh;
    text-align: center;
}

#header h1
{
    font-size: 48pt;
    color: #333;
    text-decoration: 4px underline #333;
    margin: 5px;
}

/* HOME SCREEN */

#menu
{
    position: absolute;
    box-sizing: border-box;
    display: grid;
    /* place-items: center; */
    /* flex-direction: column;
    justify-content: center; */
    align-items: center;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    background-color: #fff;
}

#menu-content 
{
    box-sizing: border-box;
    display: grid;
    place-items: center;
    /* flex-direction: column; */
    width: 100%;
    align-items: center;
}

#menu h1 
{
    margin-bottom: 10px;
    font-size: 98pt;
    margin-top: 0;
    color: #333;
}

#menu p 
{
    margin-bottom: 30px;
    font-size: 28pt;
    margin-top: 0;
    color: #666;
    text-align: center;
}

#menu button 
{
    margin-bottom: 30px;
    padding: 5px 20px;
    border-radius: 15px;
    
    cursor: pointer;
}

#start 
{
    background-color: #57a761;
    font-family: "Futura", sans-serif;
    font-weight: 600;
    width: 250px;
    height: 80px;
    border: none;
    /* padding: 10px; */
    color: #fff;
    padding-bottom: 25px;
    font-size: 32pt;
    text-align: center;
}

#start:hover
{
    background-color: #387d41;
}

#rules
{
    background-color: #fff;
    font-family: "Futura", sans-serif;
    width: 150px;
    height: 50px;
    font-size: 18pt;
    color: #333;
    border: 2px solid #333;
    text-align: center;
}

#rules:hover
{
    background-color: #333;
    color: #fff;
}

#menu select
{
    margin-bottom: 20px;
    width: 150px;
    height: 50px;
    padding: 5px;
    font-size: 18pt;
    text-align: center;
    border: 3px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    color: #333;
}

.language-selection label
{
    font-family: "Futura", sans-serif;
    font-size: 24pt;
    margin-right: 10px;
}

.toggle-container
{
    font-size: 24pt;
    display: flex;
    align-items: center;
    font-family: "Futura", sans-serif;
}

.toggle-container label
{
    margin-right: 10px;
    font-family: "Futura", sans-serif;
}

#hard-mode
{
    width: 25px;
    height: 25px;
}



/* GAME-SECTION */

#game-section
{
    box-sizing: border-box;
    background-color: rgb(255, 255, 255);
    /* border: 1px solid black; */
    height: 450px; 
    display: grid;
    place-items: center;
}

#wordle
{
    box-sizing: border-box;
    background-color: transparent;
    height: 100%;
    width: 400px;
    border-spacing: 5px;
}

#wordle tr
{
    height: 50px;
    width: auto;
    /* border-spacing: 10px; */
}

#wordle td
{
    height: 50px;
    width: 50px;
    text-align: center;
    font-size: 30px;
    border-spacing: 20px;
}

.cell
{
    font-family: "Futura", sans-serif;
    border-radius: 5px;
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(186, 186, 186);
    color: #333;
}

.cell-border
{
    border: 3px solid #333;
}


#cell-gray
{
    background-color: rgb(225, 223, 223);
}

#cell-green
{
    background-color: rgb(94, 148, 94);
}

#cell-yellow
{
    background-color: rgb(241, 226, 132);
}


/* KEYBOARD-SECTION */

#keyboard-section
{
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 100%;
    margin-top: 1vh;
    height: fit-content;
}

#keyboard
{
    background-color: white;
    display: flex;
    flex-direction: column;
    place-items: center;
    justify-content: flex-start;
    width: 100%;
    height: fit-content;
    height: 30vh;
}

.row
{
    padding-top: 10px;
}

.key
{
    font-family: "Futura", sans-serif;
    background-color: white;
    font-size: 24px;
    box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.5);
    border-radius: 5px;
    text-align: center;
    margin-left: 10px;
    width: 5vw;
    color: #333;
    max-width: 60px;
    height: 60px;
}

.used-key
{
    border-color: rgb(197, 196, 196);
    background-color: rgb(197, 196, 196);
}

.used-correct-key
{
    border-color: rgb(94, 148, 94);
    background-color: rgb(94, 148, 94);
}

.used-incorrect-place-key
{
    border-color: rgb(241, 226, 132);
    background-color: rgb(241, 226, 132);
}

#key-Enter
{
    font-size: 24px;
    max-height: 60px;
    width: 20vw;
    max-width: 150px;
}

#key-Delete
{
    font-size: 24px;
    max-height: 60px;
    width: 15vw;
    max-width: 100px;
    min-width: 80px;
}

/* ------------END SCREEN----------- */

#endDialog
{
    display: none;
    background: rgba(0, 0, 0, 0.8);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    text-align: center;
    position: absolute;

}

#endDialog::backdrop
{
    backdrop-filter: blur(5px);
}

#endDialog-Message
{
    font-family: "Futura", sans-serif;
    font-weight: 300;
    /* align-items: center; */
    border-radius: 20px;
    color: white;
    font-size: 32pt;
    text-align: center;
    /* padding: 10px; */
    padding: 30px;
    line-height: 30pt;
    margin-top: 20px;
    margin-bottom: 20px;
    max-width: 700px;
}

#buttonContainer {
    display: flex;
    justify-content: center;
    gap: 10px;
}

#reset
{
    font-family: "Futura", sans-serif;
    color: #fff;
    font-size: 16pt;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #57a761;
    cursor: pointer;
    margin-left: 40px;
    border: #fff 4px solid;
}

#reset:hover
{
    background-color: #fff;
    border: #57a761 4px solid;
    color: #333;
}

#home
{
    font-family: "Futura", sans-serif;
    font-weight: bold;
    color: #333;
    font-size: 16pt;
    padding: 10px;
    height: 58px;
    width: 150px;
    border-radius: 5px;
    background-color: rgb(245, 183, 75);
    cursor: pointer;
    border: none;

    
}

#home:hover
{
    color: #fff;
    background-color: rgb(211, 142, 23);
}

#rulesDialog 
{
    width: 360px;
    height: 600px;
    overflow: auto;
    display: none;
    position: center;
    top: 50%;
    left: 28%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}
  
#rulesDialog h1 
{

    font-size: 24pt;
    font-family: "Futura", sans-serif;
    margin-bottom: 20px;
}

#rulesDialog ul 
{
    font-family: "Futura", sans-serif;
    margin-bottom: 18pt;
}

#rulesDialog p 
{
    font-family: "Futura", sans-serif;
    margin-bottom: 0;
    font-size: 16pt;
    text-align: left;
}

h2
{
    font-family: "Futura", sans-serif;
    margin-bottom: 0;
    font-size: 16pt;
    text-align: left;
    margin: 0;
}

#rulesClose 
{
    background: lightgray;
    font-family: "Futura", sans-serif;
    border: none;
    position: absolute;
    right: 40px;
    padding: 10px;
    cursor: pointer;
}

.green {
    color: rgb(94, 148, 94);
}

.yellow {
    color: rgb(237, 214, 65);
}

.gray {
    color: rgb(142, 142, 142);
}
