@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    color: white;
    font-weight: 600;
    user-select: none;
}

body {
    background: url('assets/inicio.jpg') no-repeat center/cover;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin: 0;
}

body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
}

.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.snowflake {
    position: absolute;
    top: -10px;
    background: white;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    background-color: rgba(0, 0, 255, 0.7);
    border-radius: 50%;
    animation: rain 0.5s linear infinite;
}

@keyframes rain {
    0% {
        transform: translateY(-100vh);
    }
    100% {
        transform: translateY(100vh);
    }
}

@keyframes rgbGlow {
    0% { color: red; text-shadow: 0 0 5px red; }
    10% { color: rgb(255, 126, 40); text-shadow: 0 0 5px rgb(255, 126, 40); }
    20% { color: orange; text-shadow: 0 0 5px orange; }
    30% { color: yellow; text-shadow: 0 0 5px yellow; }
    40% { color: yellowgreen; text-shadow: 0 0 5px yellowgreen; }
    50% { color: lime; text-shadow: 0 0 5px lime; }
    60% { color: rgb(10, 186, 181); text-shadow: 0 0 5px rgb(10, 186, 181); }
    70% { color: cyan; text-shadow: 0 0 5px cyan; }
    80% { color: rgb(0, 127, 255); text-shadow: 0 0 5px rgb(0, 127, 255); }
    90% { color: rgb(127, 0, 255); text-shadow: 0 0 5px rgb(127, 0, 255); }
    100% { color: magenta; text-shadow: 0 0 5px magenta; }
}

.lightning-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Impede que os raios interfiram com interações do usuário */
    overflow: hidden;
}

/* Estilo para os raios */
.lightning {
    position: absolute;
    width: 3px;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
    box-shadow: 0 0 35px yellow;
    animation: lightningAnimation 0.5s linear infinite;
    opacity: 0;
}

/* Animação dos raios */
@keyframes lightningAnimation {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    20% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.section-message .rgb-text {
    animation: rgbGlow 5s infinite;
    will-change: color, text-shadow;
    display: inline-block;
}

/* UTILITIES */
.regular-txt {
    font-weight: 400;
}
/* END UTILITIES */

.main-container {
    width: 400px;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), rgba(255, 255, 255, 0.15));
    border-radius: 12px;
    backdrop-filter: blur(100px);
    z-index: 1;
}

/* INPUT CONTAINER */
.input-container {
    position: relative;
    margin-bottom: 25px;
}

.city-input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 99px;
    border: 3px solid transparent;
    background: rgba(0, 0, 0, 0.15);
    outline: none;
    font-weight: 500;
    transition: 0.25s border;
    padding-right: 45px;
}
.city-input:focus {
    border: 3px solid rgba(0, 0, 0, 0.15);
}
.city-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.city-input {
    cursor: url('assets/cursor.png'), text;
}

.search-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
}
/* END INPUT CONTAINER */

/* WEATHER INFO */
.weather-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.location-date-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.location {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
    word-wrap: break-word;
    max-width: 100%;
}

.weather-summary-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wheater-summary-img {
    width: 120px;
    height: 120px;
    pointer-events: none;
    -webkit-user-drag: none;
}

.weather-summary-info {
    text-align: end;
}

.weather-conditions-container {
    display: flex;
    justify-content: space-between;
}

.condition-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wind-direction-txt {
    font-weight: 500;
    opacity: 0.8;
}

.condition-item span {
    font-size: 30px;
}

.forecast-items-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 12px;
}
.forecast-items-container::-webkit-scrollbar {
    height: 8px;
}
.forecast-items-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 99px;
}
.forecast-items-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 99px;
}

.forecast-item {
    min-width: 65px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    align-items: center;
    border-radius: 12px;
    transition: 0.3s background;
}
.forecast-item:hover {
    background: rgba(255, 255, 255, 0.15);
}
.forecast-item-img {
    width: 35px;
    height: 35px;
    pointer-events: none;
    -webkit-user-drag: none;
}

.next-page-btn {
    position: absolute;
    right: -49px;
    top: 50;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    backdrop-filter: blur(100px);
    transition: background-color 0.3s;
}

.back-page-btn {
    position: absolute;
    left: -49px;
    top: 50;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    backdrop-filter: blur(100px);
    transition: background-color 0.3s;
}

.next-page2-btn {
    position: absolute;
    right: -49px;
    top: 50;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    backdrop-filter: blur(100px);
    transition: background-color 0.3s;
}

.back-page2-btn {
    position: absolute;
    left: -49px;
    top: 50;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    backdrop-filter: blur(100px);
    transition: background-color 0.3s;
}

.next-page-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.back-page-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.next-page2-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.back-page2-btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.next-page-btn span {
    font-size: 28px;
    color: white;
}

.back-page-btn span {
    font-size: 28px;
    color: white;
}

.back-page2-btn span {
    font-size: 28px;
    color: white;
}

.next-page2-btn span {
    font-size: 28px;
    color: white;
}
/* END WEATHER INFO */

/* MESSAGE */
.section-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    margin-top: 25%;
}
.section-message img {
    height: 180px;
    width: fit-content;
    pointer-events: none;
    -webkit-user-drag: none;
}
/* END SECTION: MESSAGE */