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

body {
    font-family: 'Poppins', sans-serif;
}

main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8rem;
}

.searchBar {
    background-color: #fff;
    width: 50vw;
    min-width: 400px;
    display: flex;
    padding: 10px 15px;
    position: relative;
    border-radius: 50px;
    animation: Extend 0.5s ease forwards;
}

@keyframes Extend {
    0% {
        width: 30vw; 
    }
    100% {
        width: 50vw; 
    }
}


.searchBar select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    margin-right: 10px;
    width: 85px
}

form {
    width: 100%;
}
#searchInput {
    border: none;
    outline: none;
    padding: 10px;
    font-size: 1.2rem;
    width: 100%;
}


.shortcuts {
    padding: 1rem 15vw;
    padding-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    animation-delay: 4s;
    animation: FadeIn 1.5s ease forwards;
}

@keyframes FadeIn {
    0% {
       opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.shortcuts .shortcut{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .5rem 1rem;
    background: #ffffff6e;
    border-radius: 10px;
    cursor: pointer;
    max-width: 100px;
    min-width: 100px;

} 


.shortcut span {
    max-width: 100%;
    font-size: 1rem;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
 .shortcut img {
    width: 32px;
    height: 32px;
} 

.shortcut:hover {
    background: #ffffffdb;
    box-shadow: 0px 0px 5px #0000001f;
}

.time {
    padding: 1rem;
    animation: slideUp .7s ease forwards;
}
#currentTime {
    text-shadow: 0px 0px 50px #f5f2f2;
    font-variant-numeric: tabular-nums;
    font-family: 'Share Tech Mono', monospace;
    font-size: 6rem;
    margin-bottom: 1rem;
}

@keyframes slideUp {
    0% {
        transform: translateY(4rem); 
    }
    100% {
        transform: translateY(0); 
    }
}




#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.271);
    z-index: 99;
    display: none; 
   backdrop-filter: blur(3px);
}

#overlay.active {
    display: block; 
}

.searchBar {
    transition: transform 0.3s ease, z-index 0.3s ease, width 0.2s ease;
}
.searchBar.focused {
    z-index: 100; 
    position: relative; 
    transform: scale(1.1) translateY(-10px);
    width: 60vw;
}

.searchBar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff; 
    border-radius: 50px; 
    z-index: -1;
    transition: all 0.3s ease;
}

.searchBar::after {
    content: '';
    position: absolute;
    top: -3px; left: -3px; right: -3px; bottom: -3px;
    background: linear-gradient(90deg, #ff000064, #ff730064, #fffb0099, #48ff0099, #00ffd564, #002bff99, #7a00ff64, #ff00c864, #ff000064);
    background-size: 400%;
    border-radius: 50px; 
    filter: blur(20px);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.searchBar.focused::after {
    opacity: 0.9;
    animation: gradientFlow 15s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}



#modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    opacity: 0;
    display: none;
    z-index: 100;
    width: 35vw;
    min-width: 350px;
}

#modal.active {
    opacity: 1;
    display: block;
}

#modal .addShortcut {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;

}


#modal #closeModal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #000;
    cursor: pointer;
}

.addShortcut input {
    padding: 0.5rem;
    font-size: 1rem;
    width: 100%;
}

.addShortcut button {
    padding: 0.5rem;
    font-size: 1rem;
    background-color: #252526;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}


