body {
    font-family: 'Red Hat Text', sans-serif;
    background-color: #f5f5e6;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px; /* Base font size */
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Adjust padding for smaller screens */
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 9999;
}

.header h1 {
    font-size: 1.3em;
    margin: 0;
    font-family: 'Inknut Antiqua', serif;
    font-weight: 900;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
    z-index: 9999;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    padding-top: 80px; /* Increased to 80px to move content below header */
    box-sizing: border-box;
    min-height: 100vh;
    position: relative;
}

#mainContent, #biasListScreen {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

#biasListScreen {
    display: flex; /* Use flexbox */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    height: 100vh; /* Full height of the viewport */
    padding: 20px; /* Add some padding */
    width: 100%; /* Full width */
    max-width: 800px; /* Set a maximum width for the screen */
    margin: auto; /* Center the container horizontally */
    opacity: 1; /* Initial opacity */
    transition: opacity 0.5s ease; /* Transition for fading effect */
}

#biasName {
    font-size: 3.5em; /* Increase font size of bias name */
    font-family: 'Inknut Antiqua', serif;
    font-weight: 900;
    line-height: 1.2;
}

#biasDescription {
    font-size: 2em;
}

#biasSuggestion {
    font-size: 2em;
    border: 1px solid black;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

#randomBiasButton {
    background-color: black; /* Set background color to black */
    color: white; /* Set text color to white for contrast */
    border: none; /* Remove default border */
    padding: 10px 20px; /* Add some padding for better appearance */
    font-size: 16px; /* Set font size */
    position: absolute; /* Position it absolutely */
    bottom: 100px; /* 100px from the bottom */
    left: 20px; /* Align to the left with some margin */
    cursor: pointer; /* Change cursor to pointer on hover */
    border-radius: 5px; /* Optional: rounded corners */
    font-size: 1.3em;
    font-family: 'Inknut Antiqua', serif;
    font-weight: 900;
}

#randomBiasButton:hover {
    background-color: rgb(88, 88, 88); /* Change background on hover for feedback */
}

#biasList {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove padding */
    text-align: center; /* Center text in the list */
}

#biasList li {
    padding: 10px; /* Add padding to list items */
    border-bottom: 1px solid #ddd; /* Add a border for separation */
    cursor: pointer; /* Change cursor on hover */
}

#biasList li:hover {
    background-color: #f0f0f0; /* Change background on hover */
}

.hidden {
    opacity: 0; /* Fade out effect */
    pointer-events: none; /* Prevent interaction when hidden */
}

.list-container {
    max-width: 600px; /* Set a maximum width for the container */
    width: 100%; /* Make it responsive */
    margin: auto; /* Center the container */
}

h1#biasName {
    line-height: 0.8; /* Set line height for the bias title */
}

#footer {
    cursor: pointer;
    text-align: center;
    padding: 10px;
    background-color: black; /* Set background color to black */
    color: white; /* Set text color to white */
    position: fixed; /* Fixes the footer to the bottom */
    bottom: 0; /* Aligns it to the bottom */
    left: 0; /* Aligns it to the left */
    width: 100%; /* Full width */
    height: 30px; /* Fixed height */
    line-height: 30px; /* Center text vertically */
    z-index: 1000; /* Ensures it stays above other content */
}

#subhead {
    position: absolute;
    top: 2px;
    left: 200px;
    right: 0;
    font-size: 0.9em;
    font-family: 'Red Hat Text', sans-serif;
    font-weight: 300;
    color: #333;
    font-style: italic;
}

#listTitle {
    font-size: 2em;
    font-family: 'Inknut Antiqua', serif;
    font-weight: 900;
    text-align: center; /* Center the text */

}
/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stack elements vertically on smaller screens */
        align-items: flex-start; /* Align items to the start */
    }

    h1 {
        font-size: 2rem; /* Adjust title size */
    }

    #biasName {
        font-size: 2.5rem; /* Adjust bias title size */
    }

    #biasDescription {
        font-size: 1.3rem; /* Adjust bias description size */
    }

    #biasSuggestion {
        font-size: 1.1rem; /* Adjust bias suggestion size */
    }

    #randomBiasButton {
        width: auto; /* Set button width to auto */
        font-size: 1rem; /* Adjust button size */
        padding: 0.5rem 1rem; /* Add padding for touch targets */
    }

    #footer {
        height: auto; /* Allow footer to adjust height */
        padding: 0.5rem; /* Add padding for touch targets */
    }

    #subhead {
        font-size: 0.7em; /* Adjust subhead size */
        top: 9px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem; /* Further adjust title size for very small screens */
    }

    #biasName {
        font-size: 1.5rem; /* Further adjust bias title size */
    }

    #biasDescription {
        font-size: 1rem; /* Further adjust bias description size */
    }

    #biasSuggestion {
        font-size: 0.9rem; /* Further adjust bias suggestion size */
    }

    #randomBiasButton {
        width: auto; /* Set button width to auto */
        font-size: 0.9rem; /* Adjust button size for small screens */
        padding: 0.4rem 0.8rem; /* Adjust padding for smaller button */
    }

    #subhead {
        font-size: 0.6em; /* Adjust subhead size */
        top: 12px;
    }
}

