*{
    box-sizing: border-box;
}

body, h1, h2, h3,  span, div, button {
    color: black !important;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: rgb(148, 219, 160);
    background: url("images/background.avif") no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.branding-container {
    position: relative;
    left:22%;
    width:60%;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow:
        0 0 60px 0px rgb(255, 255, 255),
        0 0 30px 0px rgb(255, 255, 255),
        0 0 10px 5px rgb(255, 255, 255);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branding-container:hover {
    box-shadow:
        0 0 80px 0px rgba(255, 255, 255, 0.8),
        0 0 40px 0px rgba(255, 255, 255, 0.8),
        0 0 15px 8px rgba(255, 255, 255, 0.8);
}

.container {
    max-width: 850px;
    width: 100%;
    padding: 2rem;
}

.weather-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    color: #000000;
    transition: box-shadow 0.3s ease;
}


.weather-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.logo-area{
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo{
    height: 150px;
    width: 300px;
    color: #000;
    background-image: url("images/logo.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.tag-line-area{
    padding-top: 8px;
    position: relative;
    left:1.1em;
    height:30px;
    width:100%;
    font-size: medium;
    font-weight: bolder;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.tag-line{
    color: rgb(59, 126, 76) !important;
}

.search-area{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 20px;
}

.enter-text{

    font-family:monospace;
    font-weight: 30;
    margin-bottom: 1.5%;
    font-size: large;
    color: #000;
}

input {
    padding: 10px;
    border: 1px solid #000000;
    border-radius: 30px;
    width: 70%;
    max-width: 400px;
    text-align: center;
    color: #000000;
    background: rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease;
}

input::placeholder{
    color: #000000;
}

input:hover {
    border-color: #555;
}

button{
    margin-top: 1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background-color: #5cb85c;
    color: white;
    cursor: pointer;
    font-size: medium;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #4cae4c;
    transform: scale(1.05);
}

.weather-info {
    margin-top: 20px;
    text-align: center;
}

.weather-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.weather-info .date-time {
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 1rem;
}

.temperature-info {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.temperature-info .temp-range {
    font-size: 1rem;
    color: #ccc;
    margin-left: 0.5rem;
}

.weather-info .sky-condition {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.weather-info .details {
    font-size: 1rem;
    line-height: 1.6;
}

.weather-info .error {
    color: #ff4d4d;
    font-size: 1.1rem;
}

.forecast-container {
    margin-top: 30px;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.forecast-cards {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-top: 1rem;
}

.forecast-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    min-width: 120px;
    cursor: pointer;
    border: none; 
    transition: border 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.forecast-card:hover {
    border: 1px solid #888;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.forecast-card.active {
    border: 2px solid black;
}

.forecast-card .forecast-day {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.forecast-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

.forecast-card .forecast-temp {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.forecast-temp{
    width:100px;
}

.forecast-card .forecast-desc {
    font-size: 0.8rem;
    color: #000000;
    text-transform: capitalize;
}

.detailed-forecast {
    margin-top: 20px;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detailed-forecast h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.detailed-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background-color 0.3s ease;
}

.detailed-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.detailed-item img {
    width: 40px;
    height: 40px;
}

.detailed-item p {
    margin: 0;
    font-size: 0.9rem;
}

.back-to-current-btn {
    margin-top: 1rem;
    padding: 8px 15px;
    border: 1px solid #165e01;
    border-radius: 4px;
    background-color: rgb(42, 192, 42);
    color: #fff ;
    cursor: pointer;
    font-size: small;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-to-current-btn:hover {
    background-color: rgba(154, 218, 145, 0.829);
    color: #eee;
    border: 1px solid rgba(72, 107, 67, 0.829)
}

@media (max-width: 768px) and (orientation: portrait) {
    .branding-container {
        width: 100%;
        left: 0;
        padding: 1rem;
    }

    .logo-area {
        height: 60px;
        margin-bottom: 0.3rem;
    }

    .logo {
        width: 200px;
        height: 80px;
    }

    .tag-line-area {
        font-size: small;
        left: 0;
        padding-left: 0.5em;
        padding-top: 2px;
        margin-top: 0;
        text-align: center;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .branding-container {
        width: 95%;
        left: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
        justify-content: center;
    }

    .logo-area {
        height: 60px;
        margin-bottom: 0.2rem;
    }

    .logo {
        width: 180px;
        height: 70px;
    }

    .tag-line-area {
        font-size: small;
        left: 0;
        text-align: center;
        padding-top: 2px;
        margin-top: 0;
        padding-left: 0.5em;
    }
}

@media (max-width: 540px) {
    .detailed-forecast {
        width: 100%;
        overflow-x: hidden;
        padding: 1rem 0.5rem;
        box-sizing: border-box;
    }

    .detailed-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detailed-item img {
        width: 35px;
        height: 35px;
    }

    .detailed-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .branding-container {
        width: 90%;
        left: 0;
        margin: 0 auto;
    }
}
