/* =========================================================
   Internet Time Machine
   Google — Present Day
   ========================================================= */


/* =========================================================
   Main Google page
   ========================================================= */

.google-present {
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;

    color: #202124;
    background: #ffffff;
}


/* =========================================================
   Top navigation
   ========================================================= */

.google-present-top {
    width: 100%;

    display: flex;

    align-items: center;

    box-sizing: border-box;

    padding: 14px 22px;
}


.google-present-top-left {
    display: flex;

    align-items: center;

    gap: 20px;
}


.google-present-top-right {
    display: flex;

    align-items: center;

    gap: 18px;

    margin-left: auto;

    white-space: nowrap;
}

.google-present-top-left {
    display: flex;

    align-items: center;

    gap: 20px;
}


.google-present-top-right {
    display: flex;

    align-items: center;

    gap: 18px;

    white-space: nowrap;
}


.google-present-top a {
    color: #202124;

    text-decoration: none;
}


.google-present-top a:hover {
    text-decoration: underline;
}


/* =========================================================
   Google Apps button
   ========================================================= */

.google-present-apps {
    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: transparent;

    font-size: 18px;

    line-height: 1;

    cursor: pointer;
}


.google-present-apps:hover {
    background: #f1f3f4;
}


/* =========================================================
   Google Sign-In
   ========================================================= */

.google-present-signin-container {
    width: 210px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    overflow: hidden;
}


.google-present-signin-container > div {
    display: flex;

    align-items: center;
}


.google-present-signin-container iframe {
    max-width: 100%;

    max-height: 40px;
}


/* =========================================================
   Old simulated Sign-In button
   ========================================================= */

.google-present-signin {
    border: none;

    border-radius: 4px;

    padding: 10px 18px;

    background: #1a73e8;

    color: #ffffff;

    font-size: 14px;

    cursor: pointer;
}


.google-present-signin:hover {
    background: #1769d1;
}


/* =========================================================
   Main area
   ========================================================= */

.google-present-main {
    width: 100%;

    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    box-sizing: border-box;

    padding-top: 150px;
}


/* =========================================================
   Google logo
   ========================================================= */

.google-present-logo {
    display: block;

    width: auto;

    font-size: 92px;

    line-height: 1;

    letter-spacing: -8px;

    margin-bottom: 35px;

    white-space: nowrap;

    user-select: none;
}


.google-present-blue {
    color: #4285f4;
}


.google-present-red {
    color: #ea4335;
}


.google-present-yellow {
    color: #fbbc05;
}


.google-present-green {
    color: #34a853;
}


/* =========================================================
   Search box
   ========================================================= */

.google-present-search-form {
    width: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.google-present-search-box {
    width: min(584px, 90%);

    height: 46px;

    display: flex;

    align-items: center;

    box-sizing: border-box;

    border: 1px solid #dfe1e5;

    border-radius: 24px;

    padding: 0 14px;

    transition:
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}


.google-present-search-box:hover,
.google-present-search-box:focus-within {
    border-color: transparent;

    box-shadow:
        0 1px 6px rgba(32, 33, 36, 0.28);
}


.google-present-search-icon {
    margin-right: 10px;

    color: #9aa0a6;

    font-size: 15px;
}


.google-present-search-box input {
    flex: 1;

    min-width: 0;

    border: none;

    outline: none;

    background: transparent;

    font-size: 16px;

    color: #202124;
}


.google-present-mic,
.google-present-camera {
    border: none;

    background: transparent;

    cursor: pointer;

    font-size: 17px;

    margin-left: 8px;

    flex-shrink: 0;
}


/* =========================================================
   Search buttons
   ========================================================= */

.google-present-buttons {
    display: flex;

    gap: 12px;

    margin-top: 28px;
}


.google-present-buttons button {
    border: 1px solid transparent;

    border-radius: 4px;

    padding: 10px 16px;

    background: #f8f9fa;

    color: #3c4043;

    font-size: 14px;

    cursor: pointer;
}


.google-present-buttons button:hover {
    border-color: #dadce0;

    box-shadow:
        0 1px 1px rgba(0, 0, 0, 0.1);
}


/* =========================================================
   Languages
   ========================================================= */

.google-present-languages {
    margin-top: 30px;

    font-size: 13px;

    text-align: center;
}


.google-present-languages span {
    margin-right: 8px;
}


.google-present-languages a {
    margin-right: 10px;

    color: #1a0dab;

    text-decoration: none;
}


.google-present-languages a:hover {
    text-decoration: underline;
}


/* =========================================================
   Footer
   ========================================================= */

.google-present-footer {
    width: 100%;

    flex-shrink: 0;

    box-sizing: border-box;

    background: #f2f2f2;

    color: #5f6368;

    font-size: 14px;
}


.google-present-country {
    width: 100%;

    box-sizing: border-box;

    padding: 15px 30px;

    border-bottom: 1px solid #dadce0;
}


.google-present-footer-links {
    width: 100%;

    box-sizing: border-box;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 15px 30px;
}


.google-present-footer-links div {
    display: flex;

    gap: 25px;
}


.google-present-footer a {
    color: #5f6368;

    text-decoration: none;
}


.google-present-footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   Responsive layout
   ========================================================= */

@media (max-width: 700px) {

    .google-present-top-left {
        display: none;
    }

    .google-present-top {
        padding: 12px 16px;
    }

    .google-present-top-right {
        gap: 10px;
    }

    .google-present-main {
        padding-top: 100px;
    }

    .google-present-logo {
        font-size: 70px;

        letter-spacing: -6px;
    }

    .google-present-signin-container {
        width: 190px;
    }

    .google-present-footer-links {
        flex-direction: column;

        gap: 15px;
    }

}


/* =========================================================
   Present Google Results Page
   ========================================================= */

.google-present-results-page {
    width: 100%;

    min-height: 100vh;

    box-sizing: border-box;

    background: #ffffff;

    color: #202124;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================================
   Results header
   ========================================================= */

.google-present-results-header {
    display: flex;

    align-items: center;

    gap: 28px;

    padding: 18px 24px;

    border-bottom: 1px solid #dadce0;
}


.google-present-results-logo {
    flex-shrink: 0;

    font-size: 34px;

    line-height: 1;

    letter-spacing: -3px;

    cursor: pointer;

    user-select: none;
}


.google-present-results-search {
    flex: 1;

    max-width: 650px;
}


.google-present-results-search
.google-present-search-box {
    width: 100%;
}


.google-present-results-header-actions {
    margin-left: auto;

    display: flex;

    align-items: center;

    gap: 16px;
}


/* =========================================================
   Results navigation
   ========================================================= */

.google-present-results-nav {
    display: flex;

    align-items: center;

    gap: 28px;

    padding: 14px 24px;

    padding-left: 180px;

    border-bottom: 1px solid #f1f3f4;

    color: #5f6368;

    font-size: 13px;
}


.google-present-results-nav span {
    cursor: pointer;
}


.google-present-results-nav-active {
    color: #1a73e8;

    font-weight: 500;
}


/* =========================================================
   Results content
   ========================================================= */

.google-present-results-content {
    width: min(700px, calc(100% - 48px));

    margin-left: 180px;

    padding-top: 20px;

    padding-bottom: 60px;
}


.google-present-results-count {
    color: #70757a;

    font-size: 13px;

    margin-bottom: 28px;
}


/* =========================================================
   Individual result
   ========================================================= */

.google-present-result {
    margin-bottom: 30px;

    max-width: 650px;
}


.google-present-result-url {
    color: #202124;

    font-size: 13px;

    margin-bottom: 4px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.google-present-result-title {
    display: inline-block;

    color: #1a0dab;

    font-size: 20px;

    line-height: 1.3;

    text-decoration: none;

    margin-bottom: 5px;
}


.google-present-result-title:hover {
    text-decoration: underline;
}


.google-present-result-snippet {
    color: #4d5156;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   No results
   ========================================================= */

.google-present-no-results {
    padding-top: 30px;
}


.google-present-no-results h2 {
    font-size: 20px;

    font-weight: normal;

    margin-bottom: 10px;
}


.google-present-no-results p {
    color: #5f6368;

    font-size: 14px;
}


/* =========================================================
   Responsive results
   ========================================================= */

@media (max-width: 800px) {

    .google-present-results-header {
        gap: 15px;
    }

    .google-present-results-logo {
        font-size: 28px;
    }

    .google-present-results-nav {
        padding-left: 24px;
    }

    .google-present-results-content {
        margin-left: 24px;
    }

}


@media (max-width: 600px) {

    .google-present-results-header {
        flex-wrap: wrap;
    }

    .google-present-results-search {
        order: 3;

        flex-basis: 100%;

        max-width: none;
    }

    .google-present-results-header-actions {
        margin-left: auto;
    }

    .google-present-results-nav {
        overflow-x: auto;

        gap: 20px;

        white-space: nowrap;
    }

    .google-present-results-content {
        width: calc(100% - 32px);

        margin-left: 16px;
    }

}

/* =========================================================
   Force Google Present page to occupy the full router area
   ========================================================= */

#page-content {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    box-sizing: border-box;

    display: block !important;
}


.google-present {
    width: 100% !important;
    min-width: 0;
    min-height: 100vh;

    display: flex !important;
    flex-direction: column !important;

    box-sizing: border-box;
}


.google-present-top {
    width: 100% !important;
    flex-shrink: 0;

    display: flex !important;
    flex-direction: row !important;

    box-sizing: border-box;
}


.google-present-main {
    width: 100% !important;

    flex: 1 1 auto;

    display: flex !important;
    flex-direction: column !important;

    box-sizing: border-box;
}


.google-present-footer {
    width: 100% !important;

    flex-shrink: 0;

    display: block !important;

    box-sizing: border-box;
}


.google-present-footer-links {
    width: 100% !important;

    display: flex !important;
    flex-direction: row !important;

    box-sizing: border-box;
}

/* =========================================================
   Signed-in Google account
   ========================================================= */

.google-present-account {
    display: flex;

    align-items: center;

    gap: 8px;

    white-space: nowrap;
}


.google-present-account-picture {
    width: 32px;

    height: 32px;

    border-radius: 50%;

    object-fit: cover;
}


.google-present-account-name {
    font-size: 14px;

    color: #202124;
}


.google-present-account-button {
    border: 1px solid #dadce0;

    border-radius: 18px;

    padding: 7px 12px;

    background: #ffffff;

    color: #3c4043;

    font-size: 13px;

    cursor: pointer;
}


.google-present-account-button:hover {
    background: #f8f9fa;
}

/* =========================================================
   Google Apps launcher
   ========================================================= */

.google-present-apps {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
}


.google-present-apps:hover {
    background: #f1f3f4;
}


/* ---------------------------------------------------------
   Nine dots
   --------------------------------------------------------- */

.google-present-apps-grid {
    width: 18px;
    height: 18px;

    display: grid;

    grid-template-columns:
        repeat(3, 4px);

    grid-template-rows:
        repeat(3, 4px);

    gap: 3px;
}


.google-present-apps-grid span {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: #5f6368;
}


/* ---------------------------------------------------------
   Apps menu
   --------------------------------------------------------- */

.google-present-apps-menu {
    position: absolute;

    top: 64px;
    right: 20px;

    width: 300px;

    padding: 12px;

    background: #ffffff;

    border: 1px solid #dadce0;

    border-radius: 12px;

    box-shadow:
        0 4px 16px rgba(60, 64, 67, 0.24);

    z-index: 1000;
}


/* ---------------------------------------------------------
   Apps grid
   --------------------------------------------------------- */

.google-present-apps-grid-menu {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 8px;
}


.google-present-apps-grid-menu button {
    min-height: 82px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 8px;

    border: none;

    border-radius: 10px;

    background: #ffffff;

    color: #202124;

    cursor: pointer;

    font-size: 13px;
}


.google-present-apps-grid-menu button:hover {
    background: #f1f3f4;
}


/* ---------------------------------------------------------
   App icons
   --------------------------------------------------------- */

.google-app-icon {
    font-size: 28px;

    line-height: 1;
}