@import url(reset.css);

/* Initial Setup */

* {
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.clearfix {
    clear: both;
}

.clearfix::after {
    display: block;
    content: "";
    clear: both;
}

/* Header section */

header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px;
    height: 60px;
}

header > a {
    display: block;
    color: rgba(0, 0, 0, 0.87);
    font-size: 13px;
    line-height: 24px;
}

header > .logo {
    margin-left: 0;
}

header > form {
    flex-grow: 1;
}

header > .logo img {
    height: 60px;
}

#charts {
    padding: 0 15px;
}

#apps {
    display: flex;
    width: 40px;
    height: 40px;
    margin: 4px;
    border-radius: 100%;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

#apps:hover {
    background-color: rgba(60, 64, 64, 0.08);
}

#apps svg {
    width: 24px;
    height: 24px;
    fill: #5f6368;
}

#sign-in {
    font-size: 14px;
    line-height: 1rem;
    font-weight: 500;
    color: white;
    background-color: rgba(26, 115, 232);
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 9px 23px;
    margin: 0 12px 0 8px;
    min-width: 96px;
    text-align: center;
}

#sign-in:hover,
#sign-in:focus,
#sign-in:active {
    text-decoration: none;
    background-color: #1b66c9;
    box-shadow: 0 1px 3px 1px rgba(66, 64, 67, 0.15), 0 1px 2px 0 rgba(60, 64, 67, 0.3);
}

/* Main-body section */

main {
    height: fit-content;
}

#flotoogle-logo {
    padding-top: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#flotoogle-logo img {
    max-width: 350px;
}

#search-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#form-input {
    margin-top: 6px;
    width: 100%;
    max-width: 584px;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    padding: 0 8px 0 14px;
}

#form-input:hover,
#form-input:focus-within {
    box-shadow: 0 1px 6px rgb(32, 33, 36, 0.28);
    border-color: transparent;
}

#search-box {
    display: flex;
    flex-direction: row;
}

#search-icon {
    width: 33px;
    height: 44px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#search-icon svg {
    width: 20px;
    height: 20px;
    fill: #9aa0a6;
}

#search-bar {
    margin-right: 10px;
}

#search-box:focus-within + .fold,
#search-box:active + .fold,
#search-box:focus + .fold {
    display: flex;
    visibility: visible;
}

#suggestions {
    display: none;
    visibility: collapse;

    flex-direction: column;
    border-top: 1px solid #e8eaed;
    padding-bottom: 4px;
}

.hidden {
    display: none !important;
}

#suggestions > ul {
    display: flex;
    flex-direction: column;
    user-select: none;

    margin-block-start: 1em;
    margin-block-end: 1em;
}

#suggestions > ul > li {
    display: flex;
    flex-direction: row;

    margin: 0 20px 0 14px;
    padding: 6px 0;

    text-align: -webkit-match-parent;

    align-items: center;
}

#suggestions > ul > li::before {
    background: url(../img/desktop_searchbox_sprites318_hr.webp) no-repeat 0 -21px;
    background-size: 20px;
    min-height: 20px;
    min-width: 20px;
    height: 20px;
    width: 20px;
    margin-right: 10px;
    content: '';
}

#suggestions > ul > li:hover {
    background: #f7f8f9;
}

#search-results {
    flex-direction: column;
    border-top: 1px solid #e8eaed;
    padding-bottom: 4px;
}

#search-results > div {
    display: flex;
    flex-direction: column;
    user-select: none;

    margin-block-start: 1em;
    margin-block-end: 1em;
}

#search-results ul {
    display: block;
}

#search-results .time {
    font-size: smaller;
    padding: 10px;
}

#search-results > div > div {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 1ch;
    margin-block-start: 1em;
    margin-block-end: 1em;
}

.time {
    display: block;
    grid-column: 1;
}

.marked {
    display: block;
    grid-column: 2;
}

#form-input input {
    border: none;
    outline: none;
    font-size: 1rem;
    flex-grow: 3;
    min-width: 50px;
}

#mic-image-icons {
    align-items: center;
    gap: 16px;
    display: flex;
    height: 44px;
    width: fit-content;
    padding: 0 8px;
}

#mic-image-icons svg,
#mic-image-icons img {
    cursor: pointer;
    width: 24px;
    height: 24px;
}

#button-section {
    width: fit-content;
    padding-top: 18px;
}

#button-section button {
    padding: 0 16px;
    margin: 11px 4px;
    line-height: 27px;
    font-size: 0.9rem;
    color: #3c4043;
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    cursor: pointer;
    height: 36px;
    border-radius: 4px;
}

#button-section button:hover {
    box-shadow: 0 1px 1px rgb(0 0 0 / 10%);
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    color: #202124;
}

#button-section button:hover + .fold {
    display: none;
}

#button-section button:focus {
    border: 1px solid #4285f4;
    outline: none;
}

#lang-section {
    font-size: 0.8rem;
    color: #4d5156;
    text-align: center;
}

#lang-section a {
    padding: 0 3px;
    color: #1a0dab;
}

/* Footer section */

footer {
    margin-top: auto;
    background-color: #f2f2f2;
}

#country {
    padding: 15px 30px;
    border-bottom: 1px solid #dadce0;
    font-size: 15px;
    color: #70757a;
}

#nav-links {
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#nav-links div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

#nav-links a {
    display: block;
    font-size: 14px;
    padding: 15px;
    white-space: nowrap;
    color: #70757a;
}

/* Search results */
.episode {
    margin: 15px;
}


.episode .result {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
}

.episode .ts {
    display: flex;
    flex-direction: column;
    flex: 0;
    margin-right: 15px;
}

.episode .excerpt {
    display: inline-block;
    flex-direction: column;
    flex: 1;
}
