* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #202124;
}

/* header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-left a,
.header-right a {
    color: #202124;
    font-size: 13px;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
}

.header-left a:hover,
.header-right a:hover {
    text-decoration: underline;
}

/* App grid icon button */
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
    padding: 0;
}

.icon-btn svg {
    fill: #5f6368;
}

.icon-btn:hover {
    background-color: #f1f3f4;
}

/* Sign in button */
.sign-in-btn {
    background-color: #1a73e8 !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 9px 23px !important;
    font-weight: 500;
    font-size: 14px !important;
    margin-left: 4px;
}

.sign-in-btn:hover {
    background-color: #1765cc !important;
    text-decoration: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* main */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
    /* leave room for header and footer */
    padding-top: 60px;
    padding-bottom: 100px;
}

main img {
    margin-bottom: 28px;
    width: 272px;
}

/* Search bar */
.otsingu-riba {
    display: flex;
    align-items: center;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 0 16px;
    width: 100%;
    max-width: 582px;
    height: 44px;
    transition: box-shadow 0.2s;
}

.otsingu-riba:hover,
.otsingu-riba:focus-within {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    border-color: rgba(223,225,229,0);
}

input {
    padding: 0 8px;
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #202124;
}

.search-icon,
.mic-icon {
    font-size: 20px;
    color: #9aa0a6;
    user-select: none;
}

.mic-icon {
    cursor: pointer;
    color: #4285f4;
}

/* Buttons */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 28px;
    gap: 12px;
}

button {
    padding: 0 16px;
    height: 36px;
    border: none;
    border-radius: 4px;
    background-color: #f8f9fa;
    font-size: 14px;
    color: #3c4043;
    cursor: pointer;
}

button:hover {
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
    background-color: #f8f9fa;
    border: 1px solid #dadce0;
    color: #202124;
}

.language-note {
    margin-top: 28px;
    font-size: 13px;
    color: #202124;
}

.language-note a {
    color: #1a0dab;
    text-decoration: none;
}

.language-note a:hover {
    text-decoration: underline;
}

/*footer*/
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f2f2f2;
    font-size: 14px;
    color: #70757a;
}

.footer-country {
    padding: 10px 24px;
    border-bottom: 1px solid #e4e4e4;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 0;
}

footer a {
    color: #70757a;
    text-decoration: none;
    padding: 6px 12px;
    font-size: 13px;
}

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