*::-webkit-scrollbar {
    display: none;
}

*,
*::placeholder {
    padding: 0px;
    margin: 0px;
    outline: none;
    background: none;
    border: none;
    box-sizing: border-box;
    font-family: 'Poppins';
    color: #fff;
    scrollbar-width: none;
}

#bgImg {
    z-index: -1;
    background-size: cover;
    filter: blur(2px) brightness(75%);
    background-image: url('images/bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
}

html,
body {
    min-height: 100vh;
    width: 100%;
}

.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header {
    font-size: 2.2rem;
    text-align: center;
    font-weight: 800;
    padding: 0 0.2rem;
    margin-top: 1rem;
}

main {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.container {
    width: 90vw;
    min-width: 250px;
    max-width: 400px;
    margin: 0 auto;
    align-items: stretch;
    margin: 1rem;
    display: flex;
    flex-direction: column;
}

#search-bar {
    border-radius: 9999px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 1rem 0;
}

#search-bar input {
    flex-grow: 1;
    max-width: calc(100% - 50px);
    padding: 0 1.25rem;
}

#search-bar button {
    padding: 1rem;
}

#weather-container {
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: linear-gradient(+50deg, #b7f1, #b7f3);
    backdrop-filter: blur(2px) brightness(75%);
    box-shadow: 0 0 1rem #00000077;
    border-radius: 1rem;
    border: 1px solid #b7f2;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.weather-header-right-bottom {
    display: flex;
    align-items: center;
}

.weather-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.weather-footer {
    margin-top: 1.5rem;
}

.weather-footer * {
    margin-top: 0.1rem;
}

.weather-description {
    font-size: 0.7em;
}

.temperature {
    font-size: 1.1em;
}

.forcast-container {
    max-width: 100%;
    position: relative;
    overflow: hidden;
    flex-grow: 1;
    margin: 1rem;
}

.forcast-table-container {
    width: 100%;
    overflow: scroll;
}

table {
    padding: 0.75rem 0.5rem;
}

table td:not(:first-child) {
    text-align: center;
}

table thead th,
table td:first-child {
    font-size: 1.18em;
    font-weight: 700;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

table th:first-child,
table td:first-child {
    left: 0;
    position: sticky;
    z-index: 9999;
    text-align: left;
    backdrop-filter: blur(5px);
}

.icon-container {
    display: flex;
    justify-content: center;
}

.icon-container img {
    display: block;
}

.canvas-container {
    margin: 1rem;
    padding: 1rem;
    position: relative;
}

@media screen and (max-width:750px) {
    main {
        flex-wrap: wrap;
    }

    .container {
        max-width: unset;
        width: 100%;
    }
}