﻿body {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 20px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.loader {
    border: 5px solid #f3f3f3;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    border-top: 5px solid #555;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    top: 10px;
    position:relative
}

/* Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.cookie-banner {
    position: fixed;
    right: 25px;
    bottom: 75px;
    left: 25px;
    z-index: 1030;
    display: none;
}

.place-website-font {
    font-size: 1.1em;
    font-family: Segoe UI;
}

.region-title {
    font-weight: bold;
    margin-top: 1rem;
}

.place {
    margin-bottom: 1.5rem;
}

.place-webcams {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.place-webcam {
    margin: 0;
    max-width: 100%;
}

.place-webcam .webcam,
.place-webcam .link-img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin-right: 0;
}

.favorite-toggle {
    background: none;
    border: 0;
    padding: 0 4px 0 0;
    font-size: 1.1em;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    /* Non favori : meme emoji, en gris attenue */
    filter: grayscale(1);
    opacity: 0.35;
    transition: filter 0.15s, opacity 0.15s;
}

.favorite-toggle:hover {
    opacity: 0.7;
}

.favorite-toggle.is-favorite {
    filter: none;
    opacity: 1;
}

.favorites-section {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.place-compact {
    margin-bottom: 0.75rem;
}

.webcam-time {
    color: #6c757d;
    font-size: 0.85em;
}

.webcam-unavailable {
    content: url("Images/NoWebcam.svg");
    object-fit: contain;
    background-color: #f3f3f3;
}

.facebook-link-href {
    text-decoration: none;
    margin-right: 7px;
}

.facebook-link-img {
    margin-top: -7px;
    height: 15px;
    content: url("Images/FacebookLink.svg");
}

.condition-link-href {
    text-decoration: none;
    margin-right: 5px;
}

.condition-link-img {
    margin-top: -7px;
    height: 17px;
    content: url("Images/WebsiteConditionLink.svg");
}

.weather-link-href {
    text-decoration: none;
    margin-right: 5px;
}

.weather-link-img {
    margin-top: -7px;
    height: 25px;
    content: url("Images/WeatherLink.svg");
}

.coordinate-href {
    text-decoration: none;
    margin-right: 5px;
    margin-left: -5px;
}

.coordinate-img {
    height: 20px;
    content: url("Images/GoogleMapsLink.svg");
    margin-top: -4px;
}

.coordinate-img-name {
    height: 20px;
    content: url("Images/GoogleMapsLink.svg");
    margin-top: -4px;
    margin-left: 5px;
}

.coordinate-maptext-href {
    text-decoration: none;
    margin-right: 5px;
}

.webcam {
    width :304px ;
    height:228px;
    cursor: pointer; 
    margin-right: 5px;
    border:0px;
}

.webcam-none {
    height: 25px;
    content: url("Images/NoWebcam.svg");
}

.link-href {
    cursor: pointer; 
    margin-right: 5px;
}

.link-img {
    width: 304px;
    height: 228px;
    cursor: pointer;
    margin-right: 5px;
    content: url("Images/Camera.svg");
}

.info-img {
    margin-top: -2px;
    margin-left: 2px;
    height: 16px;
    width: 16px;
    fill:aliceblue;
    content: url("Images/info.svg");
}


.tooltip .tooltip-inner {
    text-align: left;
    /* Info-bulle detaillee des stations : plus large que les 200px par defaut de Bootstrap */
    max-width: 350px;
}

#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

    #myImg:hover {
        opacity: 0.7;
    }

/* The Modal (background) */
.img-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1200; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.img-modal-content {
    margin: auto;
    display: block;
    Width: 100%;
    height: 100%;
}

/* Add Animation */
.img-modal-content {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

.img-modal-content {
    width: 100%;
    height: 100%;
}
