﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

body {
    font-family: 'Roboto', sans-serif;
}

/* Change input control border color */
.form-control, .input-group-text {
    border: 1px solid #0080ff;
}

a.btn:hover {
    cursor: pointer !important;
}

/* Responsive map Hemse com
   --------------------------------------------- 
   https://blog.duda.co/responsive-google-maps-for-your-website
*/

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}


/* Start Loader
-------------------------------------------------- */

.loaderbody {
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    position: absolute;
    background-color: rgba(128,128,128,0.2);
    z-index: 2147483647;
}

.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 45%;
    left: 40%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hide {
    display: none;
}

/* Slut Loader
-------------------------------------------------- */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

/* Nav-tabs i navbar: behåll kantlinjen (ger underline på inaktiva flikar),
   men låt den aktiva fliken täcka den med vit botten så den hänger ihop med innehållet. */
@media (min-width: 992px) {
    .navbar .nav-tabs .nav-link {
        margin-bottom: -1px;
    }
    .navbar .nav-tabs .nav-item.show .nav-link,
    .navbar .nav-tabs .nav-link.active {
        background-color: #fff;
        border-bottom-color: #fff;
    }
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer – flexbox, ingen hårdkodad höjd behövs
-------------------------------------------------- */
html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

body > .container {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
    width: 100%;
}

/* Språkväljaren i headern – halvera storleken på smal skärm */
@media (max-width: 576px) {
    .header-lang-switcher {
        transform: scale(0.55);
        transform-origin: bottom right;
    }
}

/* Bilder från databasen med float-right: begränsa max-bredd responsivt */
.note-float-right {
    max-width: clamp(100px, 30vw, 300px);
    height: auto;
}

@media (max-width: 576px) {
    .note-float-right {
        float: none !important;
        display: block;
        margin: 0 auto 1rem auto;
        max-width: 100%;
    }
}
