﻿/* body - koko koodin kattava muotoilu */
:root {
    --main-color:#1F556D;
    --hover-color:#138496;
    --active-color:#0062cc;
    --back-color:#ffffff;
    --admin-nav-color:#343434;
    --admin-back-color:#ffffff;
}

html body {
    background-color: var(--back-color);
}

body {
    font-family: Verdana;
}

#mailtable{
    border-spacing: 5px;
    border: 1px;
}
table {
    border-spacing: 5px;
    border: 1px;
}

.navigation {
    position: fixed;
    z-index: 100;
    width: 100%;
    top: 0;
}

nav .logout a {
    font-weight: bold;
    color: white;
    border-left: 2px solid white;
    border-right: 2px solid white;
    padding: 6px;
    text-align:right;
}

nav li a {
    border-left: 2px solid white;
    font-weight: bold;
    padding: 4px;
    font-size: 18px;
}

nav .nav-item {
    padding: 4px;
}

nav button .navbar-toggler {
    color: white;
    padding:4px;
}

.navbar-dark {
    background-color: var(--main-color);
}

.navbar-nav>li>.dropdown-menu {
    background-color: var(--main-color);
}

.content {
    margin-top: 80px;
}

@-ms-viewport {
    width: device-width; /* Määritetään skaalautuvuus pienemmille näytöille */
}

/*Määritetään kuinka sivun elementit asettuvat pienelle näytölle - Scaling for small screens*/
@media (max-width: 992px) {
    nav li a {
        border-left: none;
        font-weight: bold;
        padding: 4px;
        font-size: 18px;
    }

    .container {
        width: 100%;
        height: auto;
        padding: 5px;
    }

    #calendar {
        height: auto;
        /* min-height: 100%; */
        width: 100%;
    }

    .navbar-brand {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    nav li a {
        font-size: 15px;
    }

    .container {
        width: 100%;
        height: auto;
        padding: 5px;
    }

    #calendar {
    height: auto;
    /* min-height: 100%; */
    width: 100%;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
footer{
    margin-top: auto;
    text-align: center;
}

/*Calendar style*/
#wrap {
    width: 95%;
    margin: 0 auto;
}

#background-e {
    background: #4cff00;
}

.external-events {
    float: left;
    width: 100%;
    padding: 0 10px;
    border: 1px solid var(--main-color);
    border-radius: 7px;
    background: #eee;
    text-align: left;
}

.external-events h4 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 0;
    padding-top: 1em;
}

.external-events .fc-event {
    min-width: 100px;
    min-height: 25px;
    text-align: center;
    font-size: 16px;
    margin: 5px 10px;
    cursor: pointer;
    display: inline;
    float: left;
    padding: 0px 5px;
    background-color: var(--main-color);
    border: none;
}

.external-events p {
    margin: 1.5em 0;
    font-size: 11px;
    color: #666;
}

.external-events p input {
    margin: 0;
    vertical-align: middle;
}

#calendar {
    /* float: right; */
    width: 100%;
}

.fc-dragging {
    background-color: #3788d8 !important;
}

.fc-sat.fc-past, .fc-sun.fc-past, .fc-sat.fc-future, .fc-sun.fc-future {
    background: grey; /*Fallback*/
    background: rgba(247, 244, 244, 0.62);
}

.fc-holi {
    background: green; /*Fallback*/
    background: rgba(197, 255, 72, 0.50);
}

.fc-day-grid-event > .fc-content {
    white-space: normal; /* Makes event titles in the calendar wrap to the next line */
}

.fc-toolbar {
    text-transform: capitalize;
}

.btn-group {
    border-radius: 7px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

/*End Of Calendar style*/

/*Resurssit style*/

.btn-info {
    font-size: 15px; /* Napin tekstin koko - Button font size */
    background-color: var(--main-color); /* Napin taustaväri - Button background color*/
    color: white; /* Napin tekstin väri - Button text color*/
    border-radius: 7px;
    border: none;
    cursor: pointer; /* Muutetaan kursori nuolesta "pointteriksi" */
}
.btn-primary {
    border-radius: 7px;
    background-color: var(--main-color);
    border: none;
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
}

.btn-primary:hover {
    background-color: var(--hover-color);
}
.btn-info:hover {
    background-color: var(--hover-color);
}

.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
    .show > .btn-primary.dropdown-toggle {
        color: #fff;
        background-color: var(--active-color);
        border-color: var(--hover-color);
    }
.btn-info:not(:disabled):not(.disabled):active, .btn-info:not(:disabled):not(.disabled).active,
    .show > .btn-info.dropdown-toggle {
        color: #fff;
        background-color: var(--active-color);
        border-color: var(--hover-color);
    }

.page-header {
    padding-bottom: 9px;
    margin: 40px 0 20px;
    border-bottom: 1px solid #eee;
    color: var(--main-color);
}

#overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
    z-index: 1000; /* Place on top of other elements */
}

#load-spinner{
    position: absolute;
    width: 60px;
    height: 60px;
    top: 50%;
    left: 50%;
    margin-top: -30px;
    margin-left: -30px;
    font-size: 20px;
    color: white;
}
/* Small popup message at the bottom of the screen */
#toast {
    visibility: hidden;
    width: fit-content;
    max-width: 500px;
    height: fit-content;
    text-align: center;
    border-radius: 7px;
    padding: 16px;
    padding-bottom: 32px;
    font-size: xx-large;
    z-index: 1;
    word-break: break-all;
    position: fixed;
    margin: auto;
    top: 30%;
    right: 0;
    bottom: 0;
    left: 0;
}

#toast.show {
    visibility: visible;
    -webkit-animation: toast-fadein 0s, toast-fadeout 0s 3.5s;
    animation: toast-fadein 0s, toast-fadeout 0s 3.5s;
}

@-webkit-keyframes toast-fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}

@-webkit-keyframes toast-fadeout {
    from { bottom: 30px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
}

@keyframes toast-fadein {
    from { bottom: 0; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}

@keyframes toast-fadeout {
    from { bottom: 30px; opacity: 1; }
    to { bottom: 0; opacity: 0; }
}
