* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    /* background-color: #f3de2c; Soft background color */
    color: #333;
    background-image: url('background_img_for_my_dictionary_app.jpeg');
    background-repeat: no-repeat; /* Prevents repeating the image */
    background-size: cover; /* Ensures the image covers the entire element */
    background-position: center; /* Centers the image */
}

header {
    display: block; 
    text-align: center; 
    box-shadow:0 4px 10px rgba(0, 0, 0, 0.1);;
    color: white; 
    font-size: 28px; 
    height: 90px;
}
.mainContainer{
    display: flex;
    flex-direction: column; /* Keeps elements stacked vertically */
    align-items: center; /* Horizontally center the content */
    justify-content: center; /* Vertically center the content */
    min-height: 80vh; /* Full viewport height for centering */
}
.tab {
    display: none;
}
.tab-links button {
    cursor: pointer;
    padding: 10px 20px;
    border: 1px solid #ccc;
    background: #f1f1f1;
}
.tab-links button.active {
    background: #ccc;
}
.container {
    width: 400px;
    padding: 14px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    position: relative; 
    top: 23px; 
    margin: auto;
}

.searchbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.searchbar input {
    flex: 1;
    height: 40px;
    font-size: 16px;
    padding: 0 10px;
    border: 2px solid #1F4A4A;
    border-radius: 5px;
    outline: none;
}

.searchbar button {
    height: 40px;
    padding: 0 20px;
    background-color: #FFA500;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.searchbar button:hover {
    background-color: #e69500; /* Darker orange */
}

.result h2,
.result p {
    margin-bottom: 10px;
    font-size: 18px;
}

.result span {
    font-weight: bold;
}

.result i {
    cursor: pointer;
    font-size: 20px;
    margin-top: 10px;
    color: #1F4A4A;
    transition: color 0.3s;
}

.result i:hover {
    color: #FFA500; /* Highlight icon on hover */
}

.result {
    text-align: left;
    line-height: 1.5;
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.result p {
    font-size: 16px;
}

.result a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: #FFA500;
    font-weight: bold;
    transition: color 0.3s;
}

.result a:hover {
    color: #e69500;
}
#wordofday-img, #word-img {
    overflow: hidden;
    display: block; /* Ensure it behaves as a block element */
}

#wordofday-img img, #word-img img {
    object-fit: contain; /* Prevents image distortion */
    display: block; /* Ensure it behaves as a block element */
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        font-size: 24px; /* Adjust font size for smaller screens */
        height: auto; /* Adjust height for flexibility */
        padding: 10px;
    }
    .mainContainer {
        flex-direction: column; /* Stack elements vertically */
    }
    .container {
        width: 95%; /* Full-width for smaller screens */
        margin: 10px;
    }
    .searchbar button {
        font-size: 14px; /* Smaller button text */
    }
    .result h2,
    .result p {
        font-size: 16px; /* Adjust font size */
    }
}

@media (max-width: 480px) {
    header {
        font-size: 18px; /* Further reduce font size */
    }
    .searchbar input,
    .searchbar button {
        font-size: 12px; /* Smaller input and button text */
    }
    .result {
        font-size: 14px; /* Adjust result font size */
    }
}