body{
    background-color: rgb(255, 225, 222);
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

header h1{
    background: url(https://line25.com/wp-content/uploads/2009/anaglyphic-text/demo/main-bg.jpg) 0 0 no-repeat;
    width: 120px;
}


h1, h2, h3, pre{
    font-family: 'Trebuchet MS', sans-serif;
}

h1{
    margin-left: 100px;
    text-shadow: #d4cce7 2px 2px;
    letter-spacing: -3px;
    color: rgba(0,0,255,0.5);
    text-align: center;
}

h2{
    margin-left: 50px;
    text-shadow: #d4cce7 1px 1px;
}

#languageSelector{
    list-style-type: none;
    margin-bottom: 10px;
}

#languageSelector li{
    display: inline-block;
    margin-right: 10px;
}

#enButton, #esButton, #frButton{
    background-color: #008CBA;
    color: #FFF;
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 900;
}

#enButton:hover, #esButton:hover, #frButton:hover{
    background-color: #fff;
    color: #000;
}

#themeToggle, #hideInstructions{
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    margin-left: 50px;
    padding: 5px;
}

#themeToggle, #hideInstructions{
    background-color: #008CBA;
    color: #FFF;
    font-weight: 900;
}

#themeToggle:hover{
    background-color: #000;
    color: #fff;
}

body.dark-mode #themeToggle:hover {
    background-color: #fff;
    color: #000;
    border: 1px solid #FFF;
}

#hideInstructions:hover{
    background-color: #f3aca7;
    color: #FFF;
    font-weight: 900;
}

#categoryDropdown > label, #categoryDropdown > select{
    margin-left: 20px;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 18px;
    padding: 5px;
    border-radius: 5px;
}
.categoryDropdown:hover{
    background-color: #fff;
    color: #000;
}

hr{
    height: 1px;
    color: blue;
}

#buttons {
    list-style: none;
    display: flex;
    flex-direction: row;
}

#startButton, #resetButton{
    cursor: pointer;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1em;
    font-weight: bold;
    margin-left: 15px;
}
#startButton:hover, #resetButton:hover{
    background-color: #fcdada;
    color: #5e5959;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5px;
}

.card {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 5px;
    margin: 10px;
    background-color: #d4cce7;
    box-shadow: 0 4px 6px #000;
    width: 280px;
    max-width: 320px;
    font-family: Verdana, Tahoma, sans-serif;
    display: flex;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.5s ease-in-out;
}

.card .material-icons {
    font-size: 32px;
    color: #007BFF; /* Example: Blue color */
    margin-top: 10px; /* Spacing between the word and the icon */
    vertical-align: middle; /* Align with the text */
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.card .material-icons:hover {
    transform: scale(1.2); /* Slight zoom effect on hover */
}

.card h2 {
    font-size: 1.5rem;
    margin: 0;
    display: inline-block;
    vertical-align: middle; /* Align with the icon */
}

.card img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}

.card .material-icons {
    display: flex;
    align-items: center;
    justify-content: center;
}


body > section > .material-icons {
    color: #007BFF;
    font-size: 42px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

body > section > span:hover{
    color: salmon;
    transform: scale(1.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card ul{
    margin-top: 15px;
    font-style: italic;
    font-weight: 700;
    color: #cc0f0f;
    list-style-type: square;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card ul li{
    line-height: 1.4;
}

@media screen and (max-width: 600px) {
    #buttons{
        margin-left: 65px;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    #mainWordDisplay {
        font-size: 1.2rem;
    }

    .card .material-icons{
        flex-direction: column;
    }

    header{
        position: fixed;
    }
}