/* @import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English&display=swap');

/* UnifrakturCook is hard to read, use for special things only */

body {
    background: #f8f5e4 url('backgrounds/old-mathematics.png');
    color: darkgreen;
    font-family: 'UnifrakturCook', 'IM Fell English', 'Garamond', serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .category-button {
    font-family: 'UnifrakturCook', 'IM Fell English', serif;
    letter-spacing: 1px;
}



input {
    width: 350px;
    padding: 10px 16px;
    margin: 30px auto 20px auto;
    display: block;
    border: 2px solid #a67c52;
    border-radius: 8px;
    background: #f3ecd4;
    font-size: 1.1em;
    font-family: 'IM Fell English', serif;
    box-shadow: 0 2px 8px #bfa77a55;
    outline: none;
    transition: border 0.2s;
}

input:hover {
    border-color: #7c5a1f;
    background: #f9f6ee;
}

a {
    color: darkgreen;
    text-decoration: none;
    font-weight: bold;
}

img {
    max-width: 5%;
    max-height: 5%;
}

#title-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#category-buttons, #search-buttons {
    display: flex;
    justify-content: center;
    margin: 2vw;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

button {
    background: linear-gradient(145deg, #e9d8a6 60%, beige 100%);
    color: brown;
    border: 2px solid tomato;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 2px 8px silver;
    transition: background 0.2s, transform 0.1s;
    text-shadow: 1px 1px 0 #fffbe6;
}

button:hover {
    background: linear-gradient(145deg, gold 60%, beige 100%);
    transform: translateY(-2px) scale(1.04);
    border-color: red;
}

#quote-container {
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid #a67c52;
    border-radius: 12px;
    box-shadow: 0 4px 24px darkgray;
    padding: 24px 32px;
}

.results-container {
    
    max-width: 1000px;
    margin: auto;
    border: 2px solid tomato;
    border-radius: 12px;
    box-shadow: 0 4px 24px silver;
    padding: 24px 32px;
}

/* Remove flex stuff for vertical list */
.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* IDK how this works but it makes indidivual list entries neat and sorted */
.result-object, button {
    flex: 1 1 calc(25% - 2vw);
    box-sizing: border-box;
}

.result-object {
    padding: 1vw;
    border: 4px outset tomato;
    font-size: 1.1em;
    font-family: 'IM Fell English', serif;
    border-radius: 20%;
    background-color: goldenrod;
    margin: 1vw;
    transition: background 0.2s, transform 0.1s;
}

.result-object:hover {
    background: linear-gradient(145deg, gold 60%, beige 100%);
    transform: translateY(-2px) scale(1.04);
    border-color: #7c5a1f;
}

#search-result-name {
    font-family: 'UnifrakturCook', 'IM Fell English', serif;
    font-size: 1.5em;
    color: darkred;
    margin-bottom: 8px;
}

#search-result-description {
    font-family: 'UnifrakturCook', 'IM Fell English', serif;
    color: darkgreen;
}

#data-container {
    border: 3px solid #a67c52;
    border-radius: 18px;
    box-shadow: 0 6px 32px #bfa77a88, 0 1px 0 #fffbe6 inset;
    padding: 28px 36px 24px 36px;
    margin: 32px auto 24px auto;
    max-width: 600px;
    position: relative;
    font-family: 'IM Fell English', serif;
    text-align: left;
}

#search-result-name {
    font-family: 'UnifrakturCook', 'IM Fell English', serif;
    font-size: 2em;
    color: #7c2f1e;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 #fffbe6, 0 2px 4px #a67c5233;
}

#search-result-description {
    font-family: 'IM Fell English', serif;
    color: #2d4a22;
    font-size: 1.15em;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 0;
    text-shadow: 0 1px 0 #fffbe6;
}

#related-objects-container {
    display: flex;
    flex-direction: row;
    max-width: 1000px;
    margin: 0 auto;
    background: #f3ecd4;
    border: 2px solid #a67c52;
    border-radius: 12px;
    box-shadow: 0 4px 24px darkgray;
    padding: 24px 32px;
}

.old-paper-background {
    background: #f9f6ee url('backgrounds/old-paper-background.jpg');
}

/* Responsive styles for phone screens */
@media (max-width: 800px) {
    body {
        padding: 0 4vw;
        font-size: 1em;
    }

    #title-header {
        size: larger;
    }

    #search-input {
        width: 50%;
        margin: 20px auto;
        font-size: 1em;
    }

    #category-buttons {
        max-width: 75%;
        margin: auto;
    }

    #search-buttons {
        max-width: 75%;
        margin: auto;
    }

    button {
        width: 75%;
        margin-bottom: 12px;
        font-size: 1em;
        padding: 12px 0;
    }

    input {
        width: 90vw;
        font-size: 1em;
    }

    #quote-container,
    .results-container,
    #related-objects-container {
        max-width: 100%;
        padding: 16px 4vw;
        box-sizing: border-box;
    }

    img {
        max-width: 40vw;
        max-height: 20vw;
    }
}