/* @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Fredoka:wght@300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap'); */

@font-face {
    font-family: 'InterBold';
    src: url('./fonts/Inter_28pt-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'InterRegular';
    src: url('./fonts/Inter_28pt-Regular.ttf') format('truetype');
}

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

html {
    scroll-behavior: smooth;
    transition: all .2s ease-in-out;
    overflow-y: auto;
}

body {
    font-family: "InterBold";
    color: #fff;
    display: grid;
    padding: 0;
    margin: 0;
    align-items: start;
    background-color: #121212;
    overflow-y: auto;
}

a {
    color: #fff;
    text-decoration: none;
}

#h1 {
    font-size: 50px;
    font-family: 'InterBold';
    text-align: center;
}

#h1-smaller {
    font-size: 30px;
    font-family: 'InterBold';
    text-align: center;
}

#p {
    font-size: 50px;
    font-family: 'InterRegular';
    text-align: center;
}

#p-bold {
    font-family: 'InterRegular';
    text-align: center;
}

#p-faded {
    font-family: 'InterRegular';
    text-align: center;
    color: #ffffffb2;
    font-size: 20px;
}

#p-faded-margin {
    font-family: 'InterRegular';
    text-align: center;
    color: #ffffffb2;
    font-size: 20px;
    margin-top: 15px;
}

/* -- */

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 30px;
    z-index: 999;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo-img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 10px;
    transition: all .2s ease-in-out;
}

.nav-logo-img:hover {
    transform: rotate(-5deg);
    filter: saturate(1);
    transition: all .2s ease-in-out;
}

.nav-logo-text {
    font-family: 'InterRegular';
    font-size: 1.5rem;
    transition: all .2s ease-in-out;
}

.nav-logo-text:hover {
    transform: scale(1.03);
    transition: all .2s ease-in-out;
}

/* -- */

.hero-background {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content h1,
.hero-content p {
    margin: 10px 0;
    font-size: inherit;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

#button {
    padding: 12px 25px;
    background-color: #1ea5bd;
    border: 2px solid #1ea5bd;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'InterBold';
    font-size: 1.1rem;
    transition: all 0.3s ease-in-out;
}

#button:hover {
    background-color: #18889c;
    border: 2px solid #18889c;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(40, 167, 161, 0.438);
}

#button-secondary {
    padding: 12px 25px;
    background-color: transparent;
    color: #dfdc2d;
    border: 2px solid #dfdc2d;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'InterRegular';
    font-size: 1.1rem;
    transition: all 0.3s ease-in-out;
}

#button-secondary:hover {
    background-color: #dfdc2d50;
    transform: translateY(-3px) scale(1.05);
}

/* -- */

.background-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.bg-option {
    width: 50px;
    height: 50px;
    background-color: #121212;
    background-size: 90px;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bg-option.selected {
    border: 2px solid #1ea5bd;
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(30, 165, 189, 0.5);
    z-index: 15;
}

/* -- get-started.html -- */

.main-container {
    text-align: center;
    padding: 40px;
    font-family: 'InterRegular';
}

.input-container {
    margin-top: 20px;
}

.input-container input {
    padding: 10px;
    font-size: 1rem;
    width: 250px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: 'InterRegular';
}

.input-container button {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    background-color: #1ea5bd;
    color: #fff;
    cursor: pointer;
    margin-left: 10px;
    font-family: 'InterBold';
    transition: background-color 0.3s ease;
}

.input-container button:hover {
    background-color: #18889c;
}

#weather-result {
    margin-top: 30px;
    font-family: 'InterRegular';
    color: #fff;
}

#city-input {
    padding: 14px 20px;
    font-size: 1.2rem;
    width: 300px;
    border-radius: 12px;
    border: 2px solid #ccc;
    transition: border-color 0.3s ease-in-out;
}

#city-input:focus {
    outline: none;
    border-color: #1ea5bd;
}

#search-btn,
#search-btn-get-started {
    padding: 14px 27px;
    background-color: #1ea5bd;
    border: 2px solid #1ea5bd;
    color: #fff;
    border-radius: 12px;
    font-family: 'InterBold';
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

#search-btn:hover,
#search-btn-get-started:hover {
    background-color: #18889c;
    border: 2px solid #18889c;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(40, 167, 161, 0.438);
}

.autocomplete-dropdown {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    list-style: none;
    padding: 4px 0;
    margin: 6px 0 0 0;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
    font-family: 'InterRegular', sans-serif;
    font-size: 14px;
    color: #333;
}

.autocomplete-dropdown::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 12px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}

.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background-color: #00d9ff;
    color: #000;
}

.autocomplete-dropdown::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 12px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.18);
    border-radius: 12px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.autocomplete-dropdown {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.18) transparent;
}

.error-msg {
    color: #d93025;
    font-weight: 600;
    margin-top: 8px;
}

.weather-info {
    max-width: 620px;
    font-family: 'InterRegular', sans-serif;
    color: #ffffff;
    margin-top: 20px;
    background: #313131;
    padding: 16px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}

.weather-info:hover {
    transform: translateY(-3px) scale(1.02);
}

.city-image {
    display: block;
    margin: 0 auto 15px auto;
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.weather-info p.weather-details {
    margin: 12px 0 0;
    font-size: 20px;
    color: #ffffff;
    line-height: 1.6;
    font-family: 'InterRegular';
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.weather-info p.weather-details .weather-item {
    white-space: nowrap;
}

#weather-result {
    display: flex;
    justify-content: center;
    width: 100%;
}


/* -------- */


.description-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 90%;
    max-width: 900px;
    margin-top: 80px;
    margin-left: auto;
    margin-right: auto;
}

.description-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.description-container.first {
    justify-content: flex-start;
}

.description-container.second {
    justify-content: flex-end;
}

.description-image {
    flex: 1;
    height: 280px;
    border: 3px solid white;
    border-radius: 15px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.3s ease-in-out;
}

.description-image:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

.description-text {
    flex: 1;
    display: flex;
    align-items: center;
}

.description-text p {
    font-family: "InterRegular";
    font-size: 1.3rem;
    color: #ffffff;
    line-height: 1.8;
    max-width: 450px;
    word-wrap: break-word;
    margin: 0;
}

.description-container {
    margin-bottom: 50px;
}

.description-container.first .description-text {
    margin-left: 40px;
}

.description-container.second .description-image {
    margin-left: 40px;
}

@media (max-width: 768px) {
    .description-container {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center;
        gap: 20px;
    }
    .description-container.second {
        justify-content: center !important;
    }
    .description-text,
    .description-image {
        margin: 0 !important;
        max-width: 100%;
        width: 100%;
        height: auto;
    }
}


/* footer */


.footer {
    background-color: #1ea5bd;
    margin: 0 30px;
    margin-top: 25px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    padding: 30px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-shadow: 0 -4px 10px rgba(30, 165, 189, 0.3);
    font-family: 'InterRegular';
    color: #fff;
    max-width: calc(100% - 60px);
    margin-left: auto;
    margin-right: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.footer-text {
    font-size: 1.1rem;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .footer {
        padding: 15px 20px;
        margin: 0 15px;
        justify-content: center;
    }

    .footer-content {
        gap: 10px;
    }

    .footer-text {
        font-size: 1rem;
    }
}