* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: url(assets/catalin-sandru-unsplash.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

h1 {
    margin: 0;
}

.wrapper {
    width: 100%;
    height: 100vh;
}

.wrapper--transparency {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.15);
}

#main {
    /* Someone should chenge x into navbar height in pixels;  */
    /* min-height: calc(100vh - x); */
    padding-top: 64px;
    height: 100vh;
}

.view {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

.view__textContent {
    display: block;
}

.view__text--color {
    color: #ffffff;
}

.nav--list {
    display: flex;
    list-style: none;
    background-color: rgb(64, 37, 214);
    width: 100%;
    position: fixed;
    z-index: 1;
}

.nav--item {
    line-height: 30px;
    padding: 16px;
}

.nav--item__link {
    text-align: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
}

.nav--item__link:hover {
    color: rgb(255, 197, 6);
}

.nav--item__link:visited {
    text-decoration: none;
}

.nav--item__link.active {
    color: rgb(255, 197, 6);
}

.overlay {
    visibility: hidden;
    position: fixed;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(74, 74, 74, 0.8);
    z-index: 99999;
}

.spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;

    border: 2px solid #f3f3f3;
    border-top: 3px solid #f25a41;
    border-radius: 100%;

    animation: spin 1s infinite linear;
}

.show {
    visibility: visible;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



.notification__container {
    width: 300px;
    position: fixed;
    top: 10%;
    right: 3%;
    display: block;
}

.notification__message--success,
.notification__message--info,
.notification__message--error {
    width: 300px;
    border-radius: 20px;
    margin-bottom: 5px;
}

.notification__message--success {
    border: 4px solid rgb(10, 109, 10);
    background-color: rgb(152, 231, 152);
}

.notification__message--info {
    border: 4px solid rgb(26, 76, 168);
    background-color: rgb(136, 178, 255);
}

.notification__message--error {
    border: 4px solid rgb(141, 25, 17);
    background-color: rgb(219, 219, 219);
}

.notification__header,
.notification__message {
    width: 270px;
}

.notification__header {
    padding: 5px 0 0 20px;
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notification__message {
    padding: 3px 0 7px 20px;
    font-size: 13px;
}

.health__title {
    padding-top: 40px;
    font-size: 30px;
    font-weight: 700;
}

.health__subtitle {
    font-size: 20px;
}

.health__title,
.health__subtitle,
.health__search-form,
.health__search-result {
    display: flex;
    justify-content: left;
    align-items: left;
}

.health__search-form {
    margin: 10px 0;
}

.health__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 100px;
    color: rgb(189, 198, 235);
    border-radius: 4px;
}

.health__input-location {
    height: 30px;
    width: 300px;
    border: 1.5px solid black;
    border-radius: 4px;
    background-color: rgb(189, 198, 235);
    margin-right: 5px;
}

.health__search-result {
    height: 40vh;
    width: 405px;
    border-radius: 3px;
    background-color: rgb(204, 212, 241);
    opacity: 0.8;
    padding-top: 40px;
}

.health__search-result > p {
    margin-left: 30px;
    color: black;
}

.health__country {
    font-size: 30px;
    font-weight: 700;
}

/* MEDIA QUERIES START*/
@media (min-width: 300px) {
    .news__form {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .news__title {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (min-width: 300px) and (max-width: 374px) {
    .news__container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 375px) and (max-width: 768px) {
    .news__container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 600px) {
    .news__container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .news__container {
        padding-left: 8rem;
        padding-right: 8rem;
    }
}

@media (min-width: 1025px) {
    .news__container {
        grid-template-columns: repeat(4, 1fr);
    }

    .news__header {
        grid-template-columns: repeat(2, 1fr);
    }

    .news__form {
        display: flex;
        justify-content: end;
        align-items: center;
    }

    .news__title {
        display: flex;
        justify-content: start;
        align-items: center;
    }
}

@media (max-height: 700px) {
    .news__container {
        height: 60vh;
        display: grid;
        grid-gap: 3rem;
        padding-top: 0.5rem;
        overflow-y: auto;
    }
}
/* MEDIA QUERIES END*/

p {
    margin: 0;
}

.news__wrapper {
    padding-top: 3em;
}

.news__container {
    display: grid;
    grid-gap: 3em;
    padding-top: 0.5em;
}

.news__header {
    display: grid;
}

.news__input {
    width: 13em;
    border-width: 1px;
    border-style: solid;
    border-color: white;
    line-height: 0;
    padding-left: 0.5em;
}

.news__input:focus {
    outline-style: none;
}

.icon__wrapper {
    width: 20%;
    background-color: white;
    border-width: 1px;
    border-style: solid;
    border-color: white;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon__wrapper:hover {
    color: white;
    background-color: blue;
    border-width: 1px;
    border-style: solid;
    border-color: blue;
    border-radius: 5px;
}

.news__searchbox {
    height: 2.25rem;
    background-color: white;
    border-style: solid;
    border-color: white;
    border-radius: 5px;
    display: flex;
    margin-bottom: 0.25em;
}

.news__searchbox:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.news__card {
    height: 30em;
    margin-bottom: 1%;
    padding: 0.5em;
    background-color: rgb(255, 255, 255, 0.85);
    border-radius: 12px;
    border: 1px solid #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.news__card:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.news__img {
    width: 100%;
    max-width: 288px;
    height: 40%;
    border-radius: 12px;
}

.news__date {
    height: 3em;
    font-size: 12px;
    padding-top: 0.5em;
}

.news__article__title {
    height: 4em;
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
}

.news__short__content {
    height: 10em;
    max-width: 250px;
    font-size: 14px;
    color: #7f8c9b;
    line-height: 150%;
    padding-top: 0.5em;
}

.card__footer {
    display: flex;
    justify-content: center;
}

.footer {
    display: flex;
    justify-content: center;
    margin-top: 1em;
}

.page__number--button {
    margin-left: 0.25em;
    margin-right: 0.25em;
}

.news__read--button:hover,
.page__number--button:hover {
    background-color: blue;
    border-color: blue;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.news__error--container {
    grid-column: 1 / 5;
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
}

.home__card {
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    perspective: 500px;
    border: none;
    background-color: inherit;
    color: snow;
    margin-top: 40px;
    margin-bottom: 20px
}

.home__card .home__card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    transition: 0.5s;
    backface-visibility: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.home__card .home__card-face.front-face,
.home__card .home__card-face.back-face {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.home__card .home__card-face.front-face .name {
    letter-spacing: 2px
}

.home__card .home__card-face.front-face .home__card-face__role {
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.home__card:hover .home__card-face.front-face {
    transform: rotateY(180deg)
}

.home__card .home__card-face.back-face {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    transform: rotateY(180deg);
    padding: 20px 30px;
    text-align: center;
    user-select: none;
}

.home__card .home__card-face.back-face .fa-quote-left {
    position: absolute;
    top: 25px;
    left: 25px;
    font-size: 1.2rem
}

.home__card .home__card-face.back-face .fa-quote-right {
    position: absolute;
    bottom: 35px;
    right: 25px;
    font-size: 1.2rem
}

.home__card:hover .home__card-face.back-face {
    transform: rotateY(360deg)
}

.home__infoElement {
    color: snow;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    border-radius: 0.25rem;
}

.weather__element {
    color: snow;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    border-radius: 0.25rem;
    margin: 10px;
}

.weather__settings__button {
    color: snow;
}

.weather__settings__button:hover {
    color: #686666;
}

.weather__main-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media screen and (max-width: 650px) {
    .weather__main-container {
        position: static;
        transform: none;
    }

    .weather__element--center {
        justify-content: center;
        text-align: center;
    }
}

@media screen and (min-width: 650px) {
    .weather__element--center {
        justify-content: flex-start;
    }
}

.football__header {
    padding: 10px 0;
}

.leagues__container {
    background-color: rgba(185, 185, 185, 0.623);
    overflow: scroll;
    height: auto;

    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px,
        rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px,
        rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.leagues__box {
    border: 2px solid #2e2a38;
    box-shadow: inset 0 0 0 0 #3d3947;
    width: 250px;
    height: 400px;
    margin-left: 25px;
    margin-right: 25px;
}

.leagues__box:hover {
    -webkit-box-shadow: 0px 0px 42px 6px #3d3947;
    -moz-box-shadow: 0px 0px 42px 6px #3d3947;
    box-shadow: 0px 0px 42px 6px #3d3947;
}

.leagues__box--image {
    height: 50%;
}

.leagues__box--name {
    padding-top: 15px;
}

.season__container {
    margin: 15px 0;
    color: rgb(17, 14, 14);
}

.leagueHeader__season {
    display: flex;
    flex-direction: row;

    list-style: none;
    font-weight: 900;
    padding: 5px 20px;
    display: inline;
}

.leagueHeader__season--year {
    display: inline-block;
    padding-right: 10px;
    cursor: pointer;
}

.leagueHeader__season--year:hover {
    border-bottom: 2px solid #c7dbd2;
}

.leagues__box--button {
    color: rgb(22, 22, 22);
    border: 2px solid #2e2a38;
    border-radius: 0px;
    padding: 12px 30px;
    display: inline-block;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: inset 0 0 0 0 #3d3947;
    -webkit-transition: ease-out 0.4s;
    -moz-transition: ease-out 0.4s;
    transition: ease-out 0.4s;
}

.leagues__box--button:hover {
    color: rgb(255, 253, 253);
    box-shadow: inset 400px 0 0 0 #3d3947;
}

.league__table-container {
    position: relative;
    max-height: 70vh;
    overflow: scroll;
}

.bootstarp__icon--arrow {
    font-size: 3rem;
    cursor: pointer;

    z-index: 1000;
    width: 50px;
    height: 50px;
    color: black;
}

.search__container {
    max-width: 600px;
}

.input-group .btn {
    z-index: 0;
}

.hamburger {
    display: none;
}

.home__icon {
    display: none;
}

@media screen and (max-width: 600px) {
    li:nth-child(2),
    li:nth-child(3),
    li:nth-child(4),
    li:nth-child(5) {
        display: none;
    }

    .home__icon {
        display: block;
        width: 50px;
        height: 50px;
    }

    .hamburger {
        display: inline-block;
        background-color: transparent;
        border: 0;

        margin-right: 2rem;
        margin-top: 0.4rem;
        padding: 16px;

        position: fixed;
        right: 0;
        top: 0;
        z-index: 1;
    }

    .hamburger__box {
        width: 40px;
        height: 40px;
        display: inline-block;
        position: relative;
    }

    .hamburger__inner,
    .hamburger__inner::before,
    .hamburger__inner::after {
        width: 100%;
        height: 3px;
        background-color: white;
        position: absolute;
        left: 0;
    }

    .hamburger__inner {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger__inner::before,
    .hamburger__inner::after {
        content: '';
    }

    .hamburger__inner::before {
        top: -10px;
    }

    .hamburger__inner::after {
        top: 10px;
    }
}

@media screen and (max-width: 600px) {
    ul.responsive {
        display: block;
        position: fixed;
        z-index: 1;
        overflow-x: hidden;
    }

    ul.responsive li {
        display: block;
        text-align: left;
        float: none;
    }

    .hamburger--active {
        z-index: 1;
    }

    .hamburger--active .hamburger__inner {
        background-color: transparent;
    }

    .hamburger--active .hamburger__inner::before {
        transform: translateY(10px) rotate(45deg);
    }

    .hamburger--active .hamburger__inner::after {
        transform: translateY(-10px) rotate(-45deg);
    }
}

