/* General Styles */
.word_container {
    display: flex;
    flex-direction: column; 
    width: 100%; 
    padding: 3em;
}

.word_header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    width: 100%;
    margin-bottom: 1em;      
}

.word_header h1 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0; 
}

.word_grid {
    width: 100%; 
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1em;
}

.word_container h1, .sources_container h1{
    font-size: 2rem;  /* Or try 3rem for larger headers */
    font-weight: bold;
    margin: 0; 
}

.word_container h4{
    font-size: 1rem;  /* Or try 3rem for larger headers */
    font-weight: bold;
    margin: 0; 
}

.edit-word-button {
    display: inline-block;
    width: 2em;
    background-color: rgb(226, 165, 0);
    color: #f7f7f5;
    border-radius: 0.5em;
    padding: 2px;
    text-decoration: none;
    margin-top: 1em;
}

.delete-word-button {
    display: inline-block;
    width: 2em;
    background-color: red;
    color: #f7f7f5;
    border-radius: 0.5em;
    padding: 2px;
    text-decoration: none;
    margin-top: 1em;
}

.button {
    background-color: #04AA6D; /* Green */
    border: none;
    color: #f7f7f5;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 2px;
}

.button_green {
    background-color: #f7f7f5; 
    color: black; 
    border: 2px solid #04AA6D;
}
.button_green:hover {
    background-color: #04AA6D;
    color: #f7f7f5;
}

.button_orange {
    background-color: #f7f7f5; 
    color: black; 
    border: 2px solid #e9ad2c;
}
.button_orange:hover {
    background-color: #e9ad2c;
    color: #f7f7f5;
}

.button_red {
    background-color: #f7f7f5; 
    color: black; 
    border: 2px solid #f44336;
}
.button_red:hover {
    background-color: #f44336;
    color: #f7f7f5;
}

.button_gray {
    background-color: #f7f7f5;
    color: black;
    border: 2px solid #c5c5c5;
}

.button_gray:hover {
    background-color: #e7e7e7;
}

.single_word_header, .single_source_header{
    position: relative;
}

.back_button {
    position: absolute;
    top: 0;
    right: 0;
    margin-bottom: 5rem;
    text-decoration: none;
    color: #858585;
}  
  
.cancel-button:hover {
    background-color: #bbb;
}

.form-group{
    margin-bottom: 1em;
}

.rating {
    margin-bottom: 1em;
}

.word_info ul{
    padding-left: 2em;
}
/* Small screens (like phones) */
@media (max-width: 600px) {
    .word_container {
        padding: 2em;
    }
}
