:root {
    --bg-color: #90aead;
    --primary-color: #e65433;
    --secondary-color: #244855;
    --tertiary-color: #fbe9d0;
    --fourth-color: #874f41;
    --written-font: "Sour gummy", sans-serif;
    --neutral-font: "Play-fair", sans-serif;
}

body {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
}

header {
    display: flex;
    background-color: var(--secondary-color);
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Not being used currently */
.icon-style {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 30px;
}

.title {
    font-family: "Monoton", sans-serif;
    font-weight: 400;
    font-style: normal;
    justify-content: left;
    padding-left: 10px;
    color: var(--tertiary-color);
    width: 50%;
}

nav a {
    font: 0.5rem;
    font-size: 1rem;
    font-family: var(--neutral-font);
    margin-left: 0.55rem;
    margin-right: 0.9rem;
    text-decoration: none;
    color: var(--tertiary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}


body {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
}



.search-bar {
    display: flex;
    align-items: center;
    width: 75%;
    max-width: 635px;
    margin: 2rem auto;
    border: 2px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: var(--tertiary-color);
    transition: border-color 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--fourth-color);
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-family: var(--written-font);
    border: none;
    outline: none;
}

.search-button {
    padding: 0 1rem;
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: #3498db;
}

.top-info {
    display: flex;
    flex-direction: row;
    font-size: 1.52rem;
    justify-content: center;
    color: var(--tertiary-color);
    /* border: 1px solid black; */
    height: 80px;
    font-family: "Sour gummy", sans-serif;
    margin-bottom: 1rem;
}

/* Container for all travel options */
.travel-options-list {
    /* border: 1px solid black; */
    display: flex;
    justify-content: center;
    align-self: center;
    flex-wrap: nowrap;
    width: 90%;
    height: 400px;
    box-shadow: 0 4px 12px rgba(27, 76, 119, 0.1);

}

.travel-option {
    display: flex;
    background-color: var(--secondary-color);
    border: 2px solid var(--fourth-color);
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.177);
    margin: 1rem;
    flex: 1 1 0;
    /* ^ allows columns to shrink w/o overflow*/
    min-width: 0;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    width: 200px;
    height: 90%;
    font-family: "Fugaz One", sans-serif;
    font-size: 30px;
    color: var(--tertiary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
    transition: border 0.3s ease;
    transition: color 0.2s;
    transition: font-size 0.3s ease;
}

.travel-option:hover {
    transform: scale(1.02);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 31px;
}

.travel-option p {
    text-align: center;
}

@media screen and (max-width: 900px) {
    /* Tablet - 2x2 */

    .travel-options-list {
        flex-wrap: wrap;
    }

    .travel-option {
        flex: auto;
        width: 310px;
        height: 45%;
    }
}

@media screen and (max-width: 770px) {
    /* Mobile format -> One column */

    .travel-options-list {
        flex-wrap: wrap;
        height: 300px;
    }

    .travel-option {
        flex: 1 1 90%;
        width: 310px;
        height: 21%;
        margin: 0.4rem;
    }

    .top-info {
        /* maintain spacing for info at top */
        margin-bottom: 0.5rem;
        margin-right: 0.5rem;
        margin-left: 1rem;
        justify-self: center;
        align-items: center;
    }

    /* switch header so page title (Mooving Around) is on top, and links are below it */
    header {
        flex-direction: column;
        width: 100%;
    }

    header h1 {
        font-size: 1.7rem;
        min-width: 80%;
        /* border: 2px solid white; */
        text-align: center;
    }

    header nav {
        margin-bottom: 1.3rem;
    }


}