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

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

:root {
    --white-color: #ffffff;
    --black-color: #000000;
    --primary-color: #4212B4;

    --body-font: 'Poppins', sans-serif;
}

html, body {
    min-width: 360px;
}

body {
    font-family: var(--body-font);
    background-image: url("assets/sunset.jpg");
    background-size: 1920px;
    text-align: center;
    margin: 0 auto;
    color: var(--white-color);
    padding: 15px;
}

img {
    object-fit: contain;
    max-width: 100%;
    height: 10px;
}

h1 {
    font-weight: 900;
    font-size: 50px;
}

h2 {
    font-weight: 500;
}

h3 {
    font-weight: 300;
}

.primary,
.secondary,
.tertiary {
    display: flex;
    justify-content: center;
    place-items: center;
    gap: 40px;
    margin-top: 30px;
}

.secondary,
.tertiary {
    font-weight: 300;
}

.tertiary {
    margin-top: 100px;
}

.extra {
    border: 2px solid white;
    border-radius: 5px;
    color: var(--white-color);
    padding: 10px;
}

.extra:hover {
    background-color: var(--white-color);
    color: var(--black-color);
    padding: 10px;
    border-radius: 5px;
    transition: .2s;
}

.data {
    margin-top: 50px;
}

#form {
    margin-top: 15px;
}

#title {
    font-size: 4.3rem;
}

input[type="text"] {
    width: 300px;
    height: 40px;
    background-color: #4212B4;
    outline: none;
    border: 1px solid var(--white-color);
    padding: 10px;
    color: var(--white-color);
    font-size: 18px;
}

::placeholder {
    color: var(--white-color);
}

#searchBtn {
    padding: 10px;
    margin: 20px 0px;
    background-color: #24005C;
    color: var(--white-color);
    cursor: pointer;
    border: none;
    font-size: 17px;
    border-radius: 2.5px;
    border: 1px solid var(--white-color);
}

span {
    font-size: 30px;
}

#temp {
    font-size: 50px;
}

#main {
    display: flex;
    justify-content: center;
    align-items: center;
}
 

@media screen and (max-width: 580px) {

    .tertiary {
        flex-direction: column;
    }

    body {
        font-family: var(--body-font);
        background-image: url("assets/sunset.jpg");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
        text-align: center;
        margin: 0 auto;
        color: var(--white-color);
        padding: 15px;
    }
    
}

@media screen and (max-width: 500px) {

    #title {
        font-size: 3rem;
    }

}

@media screen and (max-width: 435px) {

    .primary,
    .secondary,
    .tertiary, 
    #main {
        flex-direction: column;
    }
}