/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap");

/* Define CSS variables */
:root {
    --content-color: #ffffff; /* Default content color */
}

/* Reset margins and paddings for body and html */
body, html {
    margin: 0;
    padding: 0;
    font-family: "Josefin Sans", sans-serif;
    background-color: black;
    color: var(--content-color);
}

/* Style for the main container */
.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 30px;
  
}

/* Header styling */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Logo styling */
.logo {
    font-size: 24px;
    margin: 0;
}

/* Search container styling */
.search-container {
    display: flex;
    align-items: center;
}

/* Search bar styling */
.search-bar {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: none;
    font-family: "Josefin Sans", sans-serif;
    border-bottom: 1px solid var(--content-color);
    color: var(--content-color);
    font-size: 17px;
    margin-bottom: 10px;
}

/* Placeholder styling for search bar */
::placeholder {
    color: var(--content-color);
}

/* Search button styling */
.search-button {
    cursor: pointer;
    color: var(--content-color);
    font-size: 24px;
    background: transparent;
    border: none;
}

/* City name styling */
.city {
    margin-bottom: 10px;
    font-size: 50px;
    font-weight: 800;
}

/* Date and time styling */
.date-time {
    margin-bottom: 20px;
    font-size: 28px;
}

/* Temperature styling */
.temperature {
    font-size: 250px;
    margin: 20px 0;
}

/* Description and temperature range styling */
.description, .temp-range {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Weather details container styling */
.weather-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin: 30px 0;
}

/* Detail item styling */
.weather-details .detail-item {
    text-align: center;
}

.detail-item div:first-child {
    font-size: 18px;
    margin-bottom: 5px;
}

.detail-item div:last-child {
    font-size: 24px;
    font-weight: 700;
}

/* Condition styling */
.condition {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Hourly forecast container styling */
.hourly-forecast {
    border-top: 1px solid var(--content-color);
    padding-top: 20px;
}


.hourly-forecast h3{
    font-size: 24px;
    margin-bottom: 15px;
}

/* Hourly item styling */
.hourly-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .logo {
        font-size: 20px;
    }

    .city {
        font-size: 20px;
    }

    .date-time {
        font-size: 16px;
    }

    .temperature {
        font-size: 150px;
    }

    .description, .temp-range {
        font-size: 20px;
    }

    .weather-details{
      grid-template-columns: repeat(2, 1fr);
    }
    .weather-details .detail-item {
      font-size: 16px;
    }
    .search-container{
      max-width: 300px;
    }
    .search-bar{
      font-size: 16px;
    }
    .search-button{
      font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .logo {
        font-size: 18px;
    }

    .city {
        font-size: 18px;
    }

    .date-time {
        font-size: 14px;
    }

    .temperature {
        font-size: 120px;
    }

    .description, .temp-range {
        font-size: 18px;
    }

    .weather-details {
      grid-template-columns: repeat(2, 1fr);
    }
    .weather-details .detail-item{
      font-size: 14px;
    }
    .header{
      flex-direction: column;
      align-items: stretch;
    }
    .search-container{
      max-width: 100%;
      margin-top: 15px;
    }
    .search-bar{
      font-size: 14px;
    }
    .search-button{
      font-size: 18pxi;
    }
}
