/* Reset and Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background: linear-gradient(to right, #e3f2fd, #ffebee);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s ease-in-out;
}

/* Header Styling */
header {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    background-color: #ffdd57;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

header:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: 2.5rem;
    color: #333;
    font-weight: bold;
}

header p {
    font-size: 1.2rem;
    color: #555;
}

/* Main Container Styling */
main {
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* UV Index and Sun Image Styling */
.sun {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-in-out;
}

.sun:hover {
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
}

.header__sun {
    width: 180px;
    margin-right: 20px;
    mix-blend-mode: darken;
    animation: float 3s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.uv__container h6 {
    font-size: 1rem;
    color: #ff8c00;
}

.uvIndex {
    font-size: 2.5rem;
    color: #333;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

/* Cursor Animation */
.uvIndex::after {
    content: '.'; /* Creating the cursor */
    position: absolute;
    top: 0;
    right: -10px; /* Position the cursor next to the text */
    font-size: 3rem; /* Size of the cursor */
    color: #333; /* Match the text color */
    animation: blink 1s infinite step-start; /* Blink animation */
}

/* Blink animation for the cursor */
@keyframes blink {
    50% {
        opacity: 0;
    }
}


/* UV Indicator Styling */
.indicator {
    display: flex;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 10px;
    justify-content: space-around;
    padding: 15px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.indicator:hover {
    transform: scale(1.05);
}

.indicator div {
    padding: 10px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    width: 80px;
    text-align: center;
    color: black;
    transition: background-color 0.3s;
}

.indicator__low { background-color: #a5d6a7; }
.indicator__medium { background-color: #ffeb3b; color: #333; }
.indicator__high { background-color: #ff9800; }
.indicator__extreme { background-color: #f44336; }

/* Weather Card Styling */
.weather-card form {
    border: 1px solid #5553;
    display: flex;
    justify-content: space-between;
    border-radius: 30px;
}

.weather-card form input,
.weather-card form button {
    border: none;
    background-color: transparent;
    outline: none;
    padding: 10px;
}

.weather-card form i {
    opacity: 0.7;
}

/* Result class */
.weather-card .result {
    padding-top: 20px;
    text-align: center;
}

.weather-card .result .name {
    font-weight: bold;
    font-size: large;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.weather-card .temperature img {
    width: 150px;
    filter: drop-shadow(0 10px 50px black);
    transition: transform 0.3s;
}

.weather-card .temperature img:hover {
    transform: scale(1.1);
}

.weather-card .temperature figcaption {
    font-size: 3em;
}

.weather-card .description {
    padding: 10px 0 30px;
}

.weather-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.weather-card:hover {
    transform: translateY(-5px);
}

.weather-card h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.card__temperature {
    font-size: 2rem;
    font-weight: bold;
    color: #ff5722;
}

.card__condition,
.card__description {
    font-size: 1rem;
    color: #757575;
}

.card__image {
    width: 60px;
    margin-top: 10px;
}

/* Tips Section Styling */
/* Tips Section Styling */
.tips {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin: 20px auto;
    opacity: 0; /* Start hidden */
    transform: translateY(20px); /* Start slightly lower */
    animation: fadeInUp 1s ease-out forwards; /* Fade-in effect on load */
}

.tips__heading {
    font-size: 1.8rem;
    text-align: center;
    color: #000;
    font-weight: 700;
    margin-bottom: 15px;
}

.tips__content {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

/* Fade-in and move-up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Additional Resources Section */
.resources {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s;
}

.resources:hover {
    transform: scale(1.02);
}

.resources h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.resources p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}

.resources ul {
    list-style-type: none;
}

.resources li {
    margin: 8px 0;
}

.resources a {
    color: #007bb5;
    font-weight: bold;
    text-decoration: none;
}

.resources a:hover {
    text-decoration: underline;
}
