@font-face {
    font-family: 'MyCustomFont';
    src: url('../fonts/font.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'MyCustomFont', 'Arial', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: bodyFadeIn 0.5s ease-out forwards;
}

@keyframes bodyFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: filter 0.5s ease, transform 0.5s ease;
    transform-origin: center center;
    filter: blur(10px);
    transform: scale(1.1);
}

.background-container.loaded {
    filter: blur(0);
    transform: scale(1);
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
    margin-top: -60px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.time-display {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
    margin-top: -30px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.6s ease-out 0.15s forwards;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.date-display {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
    margin-top: -5px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.6s ease-out 0.2s forwards;
}

.search-container {
    width: 570px;
    max-width: 90%;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.6s ease-out 0.25s forwards;
}

@media (max-width: 768px) {
    .time-display {
        font-size: 2.8rem;
        margin-top: -25px;
    }
}

@media (max-width: 480px) {
    .time-display {
        font-size: 2.3rem;
        margin-top: -20px;
    }
}

.search-input {
    width: 100%;
    padding: 12px 48px;
    border: none;
    border-radius: 30px;
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.98rem;
    outline: none;
    transition: all 0.3s ease;
    text-align: center;
    height: 40px;
    font-family: 'MyCustomFont', 'Arial', sans-serif;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    text-align: center;
    transition: opacity 0.3s ease;
    font-family: 'MyCustomFont', 'Arial', sans-serif;
}

.search-input:focus::placeholder {
    opacity: 0;
}

.search-input:focus {
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    text-align: left;
    padding-left: 48px;
}

.engine-button {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    border-radius: 30px 0 0 30px;
    background-color: transparent;
    border: none;
    outline: none;
}

.engine-button:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.engine-button:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.engine-button svg {
    width: 16px;
    height: 16px;
}

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    border-radius: 0 30px 30px 0;
    background-color: transparent;
    border: none;
    outline: none;
    z-index: 2;
}

.search-button:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.search-button:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-button svg {
    width: 16px;
    height: 16px;
}

.search-container.focused .search-button {
    opacity: 0.9;
}

.search-container.focused {
    transform: translateY(-20px);
}

.background-container.blurred {
    filter: blur(5px);
    transform: scale(1.05);
}

.container.focused {
    transform: translateY(-20px);
}

.engine-menu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 6px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 9px;
    padding: 9px 0;
    min-width: 135px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.engine-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.engine-option {
    display: flex;
    align-items: center;
    padding: 9px 17px;
    color: white;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: 'MyCustomFont', 'Arial', sans-serif;
}

.engine-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.engine-option-icon {
    width: 17px;
    height: 17px;
    margin-right: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.engine-option-icon svg {
    width: 17px;
    height: 17px;
}

.engine-option.active {
    background-color: rgba(255, 255, 255, 0.15);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.7;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.footer:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.15);
}

.record-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'MyCustomFont', 'Arial', sans-serif;
    letter-spacing: 0.5px;
}

.record-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .footer {
        padding: 10px 0;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 8px 0;
        font-size: 0.65rem;
    }
}
