/*
Theme Name: Zcooly Mail System
Theme URI: https://gitlab.iusinnovation.se/zcooly/mail-system
Author: Hans Westman
Author URI: https://zcooly.se
Description: This is a customized theme to be used as the Zcooly Mail System.
Text Domain: mail
Tags: custom
*/

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow-x: hidden;
}

html {
    margin-top: 0;
    padding-top: 0;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    color: #4d4d4d;
    margin: 0;
    padding: 0 10px 30px;
    position: relative;
    font-family: 'Open Sans', sans-serif;
    text-rendering: optimizeLegibility !important;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale !important;
    scroll-behavior: smooth;
    background: #4185AB;
    background: -webkit-gradient(linear, left top, left bottom, from(#4185AB), color-stop(50%, #65AEC0), to(#68B1C2));
    background: linear-gradient(#4185AB, #65AEC0 50%, #68B1C2);
}

body:after {
    content: "";
    position: fixed;
    top: 0;
    height: 100vh;
    left: 0;
    right: 0;
    z-index: -1;
}

.hills-left {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: -1;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 50%;
}

.hills-middle {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: -1;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 100%;
}

.hills-right {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: -1;
    -webkit-transform: translateX(50%);
    transform: translateX(50%);
    width: 50%;
}

.window {
    max-width: 600px;
    background: #f5f5f5;
    -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    margin: 5em auto;
    padding: 1em 1.8em 2em;
    border-radius: .31rem;
}

a {
    color: #4185ab;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: #254c61;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

h1 {
    margin-top: 10px;
    margin-bottom: 0;
}

.checkbox {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-bottom: 0.5em;
}

.checkbox.disabled {
    opacity: 0.5;
}

.checkbox.disabled input[type=checkbox]:checked + label::after {
    top: 9px;
    left: 9px;
    width: 0;
    height: 0;
}

.checkbox.disabled input[type=checkbox]:checked + label:before {
    background-color: #fff;
    border: 2px solid #d4d4d4;
}

.checkbox input[type=checkbox] {
    display: none;
}

.checkbox input[type=checkbox] + label:before {
    cursor: pointer;
    content: '';
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: .5rem;
    background-color: #fff;
    border: 2px solid #d4d4d4;
    border-radius: 3px;
}

.checkbox input[type=checkbox]:checked + label:before {
    background-color: #57b64a;
    border: 2px solid #57b64a;
}

.checkbox input[type=checkbox] + label::after {
    position: absolute;
    top: 9px;
    left: 9px;
    display: block;
    width: 0;
    height: 0;
    overflow: hidden;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    content: '';
    -webkit-transition: all .1s linear;
    transition: all .1s linear;
}

.checkbox input[type=checkbox]:checked + label::after {
    top: 4px;
    left: 2px;
    width: 16px;
    height: 8px;
}

.checkbox a {
    text-decoration: underline;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-style: normal;
}

.checkbox label {
    font-family: 'Open Sans', sans-serif;
    font-size: .875rem;
    position: relative;
    display: inline-block;
}

.btn {
    display: inline-block;
    -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-style: normal;
    border-radius: .31rem;
    text-decoration: none;
    cursor: pointer;
    outline: 0;
    -webkit-transition: .2s;
    transition: .2s;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    line-height: 1.15;
    border: 0;
}

.btn.inactive,
.btn:disabled {
    background-color: #b3b3b3 !important;
    opacity: .7;
    cursor: default;
    pointer-events: none;
    color: white;
}

.btn:focus {
    outline: none;
}

.btn.btn--grass {
    background-color: #57b64a;
    color: #fff;
    border-radius: .31rem;
}

.btn.btn--grass:hover {
    background-color: rgba(126, 177, 53, .9);
}

.btn.btn--ocean {
    background-color: #5a94df;
    color: #fff;
}

.btn.btn--ocean:hover {
    background-color: rgba(90, 148, 223, .9);
}

.btn.btn--sky {
    background-color: #68b1c2;
    color: #fff;
}

.btn.btn--sky:hover {
    background-color: rgba(104, 177, 194, .9);
}

.btn.btn--white {
    background-color: white;
    color: #22292f;
}

.btn.btn--white:hover {
    background-color: #f1f5f8;
}

.btn.btn--sky--outline {
    background-color: transparent;
    border: solid 1px #68b1c2;
    color: #68b1c2;
}

.btn.btn--sky--outline:hover {
    color: #fff;
    background-color: rgba(104, 177, 194, .9);
}

.btn.btn--red {
    background-color: #e3342f;
    color: #fff;
}

.btn.btn--red:hover {
    background-color: rgba(227, 52, 47, .9);
}

.btn.btn--gray {
    background-color: #707070;
    color: #fff;
}

.btn.btn--gray:hover {
    background-color: rgba(112, 112, 112, .9);
}

.btn.btn--black {
    background-color: #000;
    color: #fff;
}

.btn.btn--black:hover {
    background-color: rgba(0, 0, 0, .9);
}

.btn.btn--wide {
    max-width: 20rem;
    width: 100%;
    text-align: center;
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.btn.btn--small {
    padding-left: .5rem;
    padding-right: .5rem;
    padding-top: .25rem;
    padding-bottom: .25rem;
    font-size: .875rem;
}

.notice {
    border: 1px solid rgb(112, 112, 112);
    border-left-width: 10px;
    padding: 10px 15px;
    -webkit-box-shadow:0 2px 5px 0 rgba(0,0,0,.2);
    box-shadow:0 2px 5px 0 rgba(0,0,0,.2);
    background-color: #fff;
}

.notice.notice--success {
    border-color: #57b64a;
}

.notice.notice--error {
    border-color: #e3342f;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.text-sm {
    font-size: .875rem;
}

.text-xs {
    font-size: .75rem;
}