@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #121212;
    color: #E0E0E0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
}

h1 {
    font-weight: 700;
    font-size: 64px;
    margin-bottom: 50px;
    text-align: center;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: #1E1E1E;
    border-radius: 15px;
    padding: 35px 25px;
}

.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    height: 50px;
    background-color: #2C2C2C;
    color: #E0E0E0;
    border: none;
    border-radius: 10px;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.tab-btn.active {
    background-color: #E0E0E0;
    color: #2C2C2C;
    box-shadow: 0 0 13px rgb(224, 224, 224);
}

.tab-content {
    display: none;
    flex-direction: column;

}

.tab-content.active {
    display: flex;
}

input {
    width: 100%;
    height: 50px;
    background-color: #2C2C2C;
    border: none;
    border-radius: 10px;
    margin-bottom: 20px;
    padding-left: 20px;
    font-size: 20px;
    color: #E0E0E0;
    font-weight: 300;
    outline: none;
}

.search-btn {
    width: 100%;
    height: 50px;
    background-color: #2979FF;
    border: none;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 600;
    color: #E0E0E0;
    cursor: pointer;
}

button:hover {
    opacity: 0.9;
}

.suggestions {
    background-color: #232323;
    border-radius: 10px;
    margin-top: -10px;
    overflow: hidden;
    display: none;
}

.suggestions div {
    padding: 15px;
    cursor: pointer;
}

.suggestions div:hover {
    background-color: #333333;
}

.weather-widget {
    border-radius: 15px;
    padding: 30px 40px 30px;
    color: #E0E0E0;
    background: linear-gradient(248.06deg, #8C0101 0%, #001C8C 100%);
}

.hidden {
    display: none;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.weather-header div h3 {
    font-size: 48px;
    font-weight: 700;
}

.weather-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.weather-img {
    width: 140px;
    height: 140px;
}

.weather-info p {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 10px;
}

.map {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 15px;
    margin-top: 30px;
}

.error {
    color: #ff5252;
    text-align: center;
    margin-top: 10px;
    font-size: 18px;
}

@media (max-width: 600px) {
    h1 { font-size: 32px; }
    .container { padding: 20px; width: 95%; }
    .tab-btn { font-size: 16px; height: 40px; }
    .weather-header h3 { font-size: 24px; }
    #cityTemp, #coordsTemp { font-size: 36px; }
    .weather-info p { font-size: 16px; }
}