body {
    background-color: #101217;
    color: white;
    display: flex;
    font-family: sans-serif;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 1;
    transition: padding 0.5s ease-in-out, transform 1.5s ease-in-out;
}

header {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    margin: 50px 0;
    text-align: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    z-index: 100;
}

.results-container, 
.markdown-content {
    transition: opacity 0.5s ease;
    opacity: 1;
    width: 100%;
}

.results-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    flex-grow: 1;
    color: white;
    max-width: 800px;
    padding: 20px;
    margin-top: 1000px;
    margin-bottom: 30px;
    position: relative;
}


* {
    box-sizing: border-box;
}

@media (max-width: 570px) {

    .search-container input[type="text"] {
        width: 100%;
    }

    .markdown-content > p {
        padding: 0px;
        line-height: 80px;
        font-size: 1.5em;
        margin-left: 10px;
        margin-right: 10px;
    }
    
}

@media (max-width: 400px) {
    .markdown-content > p {
        font-size: 1.2em; /* or whatever smaller size works */
    }
}
