/************
*** UTILS ***
************/
.nowrap-xs {
    white-space: nowrap;
}

.table-container--responsive {
    max-width: 100%;
    overflow-x: auto;
}

/*************
*** LOADER ***
*************/
.page-loader {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    color: #FFF;
}

.page-loader span {
    position: absolute;
    color: inherit;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    text-align: center;
}

.page-loader span i {
    width: 2em;
    height: 2em;
    border-radius: 50%;
    display: inline-block;
    margin: 1em;
    box-sizing: border-box;
    animation: animloader-white 2.5s ease-in-out infinite;
    animation: animloader-white 2.5s cubic-bezier(.700, 0, .250, 1) infinite;
}

@keyframes animloader-white {
    0% {
        box-shadow: -2.2em 0 #FFF inset;
    }

    100% {
        box-shadow: 2.2em 0 #FFF inset;
    }
}

/**************
*** WEATHER ***
**************/
#weather-details {
    display: none;
    visibility: hidden;
}

/* WEATHER PILLS */
.weather-pill {
    display: inline-block;
    padding: .25em;
    margin: 0 0 .25em 0;
    border-radius: 5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* RAIN PILL */
.weather-pill.pill-rain {
    background: #d9ebf9;
    padding-right: .65rem;
}

/* TEMPERATURE PILL */
.pill-temp.pill-temp--min span {
    color: #007bc4;
    cursor: help;
}

.pill-temp.pill-temp--max span {
    color: #C65300;
    cursor: help;
}
.pill-temp--high,
.pill-temp--low {
    vertical-align: top;
    line-height: 1;
    margin: .5em 0;
}
.pill-temp--low {
    vertical-align: bottom;
}

/* UV PILL */
/* ÉCHELLE MINISTÈRE DE LA SANTÉ */
.pill-uvi {
    font-weight: bold;
    color: #FFF;
    display: inline-block;
    line-height: 1em;
    min-width: 1em;
    text-align: center;
    border-radius: 1em;
    margin: 0 0 0 -1em;
    padding: .3em;
    vertical-align: top;
    box-sizing: content-box;
}

.pill-uvi.pill-uvi--1,
.pill-uvi.pill-uvi--2 {
    background-color: #67BF4E;
    color: #333;
}

.pill-uvi.pill-uvi--3,
.pill-uvi.pill-uvi--4,
.pill-uvi.pill-uvi--5 {
    background-color: #F8C100;
    color: #333;
}

.pill-uvi.pill-uvi--6,
.pill-uvi.pill-uvi--7 {
    background-color: #F76C35;
}

.pill-uvi.pill-uvi--8,
.pill-uvi.pill-uvi--9,
.pill-uvi.pill-uvi--10 {
    background-color: #EE154B;
}

.pill-uvi.pill-uvi--11,
.pill-uvi.pill-uvi--12,
.pill-uvi.pill-uvi--13,
.pill-uvi.pill-uvi--14,
.pill-uvi.pill-uvi--15,
.pill-uvi.pill-uvi--16,
.pill-uvi.pill-uvi--11\+ {
    background-color: #6E2B92;
}

/* CLOUDS PILL */
.pill--clouds {
    color: #333;
}

.pill--clouds.clouds-cover--50,
.pill--clouds.clouds-cover--60,
.pill--clouds.clouds-cover--70 {
    color: #333;
}

.pill--clouds.clouds-cover--80,
.pill--clouds.clouds-cover--90,
.pill--clouds.clouds-cover--100 {
    color: #333;
    font-weight: bold;
}

/* VISIBILITY PILL */
.visibility--10 {
    font-size: 1.6em;
    line-height: .5em;
}

.visibility--0,
.visibility--1,
.visibility--2,
.visibility--3,
.visibility--4 {
    font-weight: bold;
}

/* WIND PILL */
/* WIND CHART BASED ON 'BEAUFORT WIND CHART' */
.weather-pill.wind-speed--40,
.weather-pill.wind-speed--50 {
    background-color: rgba(255, 245, 162, .5);
    color: #936900;
}

.weather-pill.wind-speed--60,
.weather-pill.wind-speed--70 {
    background-color: rgba(255, 224, 176, .5);
    color: #B05400;
}

.weather-pill.wind-speed--80,
.weather-pill.wind-speed--90,
.weather-pill.wind-speed--100-more {
    background-color: rgba(255, 218, 213, .5);
    color: #D20D00;
}

.weather-pill.is-null {
    background-color: #eaeaea;
    color: #939393;
    background-color: rgba(0, 0, 0, .05);
    color: rgba(0, 0, 0, .5);
}

/*********************
*** FORECAST TABLE ***
*********************/
table.weather-details--forecast {
    width: 100%;
}

table.weather-details--forecast tr:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

table.weather-details--forecast tr:nth-child(even) {
    background-color: #faf7f4;
}

table.weather-details--forecast th,
table.weather-details--forecast td {
    padding: .25em;
    vertical-align: middle;
    text-align: center;
    min-width: 6em;
}

table.weather-details--forecast th {
    font-weight: bold;
    background-color: #3F3F3F;
    color: #FFF;
    padding: .5em .25em;
}

table.weather-details--forecast th:first-child,
table.weather-details--forecast td:first-child {
    padding-left: 1.5em;
}

table.weather-details--forecast th:last-child,
table.weather-details--forecast td:last-child {
    padding-right: 1.5em;
}

/*****************************
*** FANCY SLIDER OVERRIDES ***
*****************************/
.fancybox-slide--html {
    padding: 1em 1em 4em 1em;
}

.weather-details--slide.fancybox-content {
    border-radius: 10px;
    max-width: 1000px;
    width: 100%;
    padding: 0;
    overflow-x: hidden;
}

.fancybox-toolbar {
    padding: .5em;
}

.fancybox-is-open .fancybox-bg {
    opacity: .6;
}

.fancybox-button {
    color: #FFF;
    border-radius: 10px;
}
.fancybox-button[disabled],
.fancybox-button[disabled]:hover{
    background-color: #dadada;
    cursor: not-allowed;
}
.fancybox-button:hover {
    background-color: #2e95d1;
}

.fancybox-navigation .fancybox-button {
    padding: 0;
    height: 44px;
    width: 44px;
    margin: .5em;
}

@media (min-width: 1200px) {
    .fancybox-toolbar {
        padding: 1em;
    }
    .fancybox-button {
        border-radius: 50%;
        background-color: #FFF;
        color: #2e95d1;
    }
    .fancybox-navigation .fancybox-button--arrow_right {
        right: 50%;
        transform: translateX(580px);
    }

    .fancybox-navigation .fancybox-button--arrow_left {
        left: 50%;
        transform: translateX(-580px);
    }
}

/**********************
*** WEATHER DETAILS ***
**********************/
.weather-details--header {
    padding: 1em;
    text-align: center;
    position: relative;
}

.weather-details--header img {
    max-width: 100%;
}

.weather-details--forecast .weather-hour {
    display: inline-block;
    background-color: #cdecf0;
    border-radius: 10px;
    padding: .5em;
    width: 100%;
}

.weather-details--forecast .weather-hour.hour--night {
    background-color: #2d2d68;
    color: #FFF;
}

.weather-details--forecast .weather-icon {
    max-width: 4em;
}

@media (min-width: 768px) {
    .weather-details--header {
        text-align: left;
    }

    .weather-details--header > .row {
        display: flex;
        align-items: center;
    }

    .weather-details--forecast .weather-hour {
        min-width: 4em;
        width: auto;
    }

    .weather-details--forecast .weather-icon {
        max-width: none;
    }
}