* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.homepage {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 100px;
}

.logo {
    display: block;
    width: min(440px, 90vw);
    height: auto;
    margin-bottom: 30px;
}

.search-form {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.search-form input {
    width: 100%;
    padding: 15px 22px;
    border: 1px solid #d5d5d5;
    border-radius: 30px;
    font-size: 17px;
    outline: none;
    box-shadow: 0 2px 7px rgba(0,0,0,.07);
}

.search-form input:focus {
    border-color: #008cdd;
}

.search-form button {
    padding: 11px 32px;
    border: 0;
    border-radius: 6px;
    background: #f3f3f3;
    color: #222;
    font-size: 15px;
    cursor: pointer;
}

.search-form button:hover {
    background: #e6e6e6;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 18px 30px;
    background: #f8f8f8;
    color: #666;
    font-size: 13px;
}

footer a {
    color: #555;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.about-page {
    flex: 1;
    width: min(800px, 100%);
    margin: 60px auto;
    padding: 20px;
    line-height: 1.7;
}

@media (max-width: 600px) {
    footer {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        width: min(350px, 90vw);
    }
}

/* Orga Maze search results page */

.results-page {
    max-width: 1600px;
    margin: 30px 0;
    padding: 0 30px 0 100px;
    box-sizing: border-box;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.search-header .search-logo {
    display: block;
    width: 110px;
    max-width: 100%;
    height: auto;
}

.search-header form {
    display: flex;
    flex: 1;
    gap: 10px;
    max-width: 750px;
    min-width: 0;
    margin: 0;
}

.search-header input {
    flex: 1;
    min-width: 0;
    padding: 12px;
    font-size: 16px;
}

.search-header button {
    padding: 12px 22px;
    cursor: pointer;
}

.search-layout {
    display: grid;
    grid-template-columns: minmax(0, 850px) minmax(0, 1fr);
    gap: 40px;
}

.search-results {
    min-width: 0;
}

.result {
    margin-bottom: 28px;
}

.result a {
    font-size: 20px;
    color: #1558b0;
    text-decoration: none;
}

.result a:hover {
    text-decoration: underline;
}

.result-url {
    color: #237345;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.result-description {
    margin-top: 6px;
    line-height: 1.5;
}

.result-category {
    color: #777;
    font-size: 12px;
}

@media (max-width: 900px) {
    .results-page {
        padding: 0 20px;
    }

    .search-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .search-advertising {
        display: none;
    }
}

@media (max-width: 650px) {
    .search-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .search-header .search-logo {
        width: 95px;
    }

    .search-header form {
        width: 100%;
        max-width: 100%;
    }
}
