* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #202124;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #161119;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.header-links {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 15px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-size: 13px;
}

.nav-link:hover {
    text-decoration: underline;
}

.apps-wrapper {
    display: flex;
    align-items: center;
}

.apps {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
}

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

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

.profile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding-bottom: 100px;
}

.logo-container {
    margin-bottom: 25px;
}

.logo {
    max-width: 272px;
    height: auto;
}

.search-container {
    max-width: 584px;
    width: 100%;
    margin: 0 auto 30px;
}

.search-bar {
    display: flex;
    align-items: center;
    height: 46px;
    border: 1px solid #dfe1e5;
    border-radius: 15px;
    padding: 0 15px;
    position: relative;
    
}

.search-bar:hover {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-color: rgba(223, 225, 229, 0);
    border: 0.3px solid rgb(102, 102, 102);
}

.search-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    fill: #9aa0a6;
}

.search-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 20px;
    color: white;
    background-color: #111119;
}

.voice-search, .image-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 12px;
    cursor: pointer;
}

.voice-icon {
    width: 24px;
    height: 24px;
    fill: #4285f4;
}

.image-icon {
    width: 24px;
    height: 24px;
    color: #4285f4;
    background-color: rgb(184, 175, 255);
    border-radius: 5px;
}

.search-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.google-search-btn, .lucky-btn {
    background-color: #2c2c2c;
    border: 1px solid #727272;
    border-radius: 4px;
    color: #f8f8f8;
    font-size: 14px;
    margin: 11px 4px;
    padding: 0 16px;
    height: 36px;
    min-width: 54px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.google-search-btn:hover, .lucky-btn:hover {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    background-color: #5a5a5a;
    border: 1px solid #dadce0;
    color: #202124;
}

.shortcuts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: -12px;
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 84px;
    cursor: crosshair;
}

.shortcut-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #242424;
    margin-bottom: 16px;
}

.shortcut-icon:hover {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-color: rgba(223, 225, 229, 0);
    border: 0.3px solid rgb(102, 102, 102);
}

.shortcut-icon img {
    width: 30px;
    height: 30px;
}

.shortcut-icon.add {
    background-color: black;
}

.shortcut-item span {
    font-size: 16px;
    color: #797979;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

@media (max-width: 768px) {
    .search-container {
        width: 90%;
    }

    .shortcuts {
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-left, .footer-right, .footer-center {
        justify-content: center;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .header-links {
        gap: 10px;
    }

    .search-buttons {
        flex-direction: column;
    }
}
