html {
    height: 100%;
    font-size: $baseFontSize;
    overflow-x: clip;
    position: relative;
    scroll-behavior: smooth;
}

body {
    font-family: $baseFont;
    font-size: $baseFontSize;
    line-height: $baseLineHeight;
    color: $baseFontColor;
    background: $white;
    font-weight: $baseFontWeight;
    margin: 0;
    padding: 0;
    min-height: 100%;
    max-width: 100vw;
    overflow-x: clip;
    position: relative;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: always; 

    /* sticky footer */
    display: flex;
    flex-direction: column;
}

/* Box sizing */

*,
*:after,
*:before {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

/* Forms */

form {
    display: block;
}
fieldset {
    border: none;
}
label {
    font-weight: bold;
}
input,
select,
button {
    vertical-align: top;
}
a,
a:hover,
a:active,
a:focus {
    outline: 0;
}

/* Various */

img {
    max-width: 100%;
    height: auto;
}

.last {
    margin-bottom: 0 !important;
}

/* Alignment */

.d-block {
    display: block;
}
.d-flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-row {
    flex-direction: row;
}
.flex-column {
    flex-direction: column;
}

.flex-grow-1 {
    flex-grow: 1;
}

.col-set {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.col2-set .col {
    width: 50%;
    margin-bottom: 1em;
}
.col3-set .col {
    width: 33.33333%;
    margin-bottom: 1em;
}
.col4-set .col {
    width: 25%;
    margin-bottom: 1em;
}

/* Layout */

@for $i from 0 through 5 {
    .m-t-#{$i} {
        margin-top: #{$i}rem !important;
    }
    .m-b-#{$i} {
        margin-bottom: #{$i}rem !important;
    }
    .m-l-#{$i} {
        margin-left: #{$i}rem !important;
    }
    .m-r-#{$i} {
        margin-right: #{$i}rem !important;
    }

    .m-t--#{$i} {
        margin-top: -#{$i}rem !important;
    }
    .m-b--#{$i} {
        margin-bottom: -#{$i}rem !important;
    }

    .p-t-#{$i} {
        padding-top: #{$i}rem !important;
    }
    .p-b-#{$i} {
        padding-bottom: #{$i}rem !important;
    }
    .p-l-#{$i} {
        padding-left: #{$i}rem !important;
    }
    .p-r-#{$i} {
        padding-right: #{$i}rem !important;
    }
}

.m-b-0-25 {
    margin-bottom: 0.25rem !important;
}
.m-b-0-5 {
    margin-bottom: 0.5rem !important;
}
.m-b-0-75 {
    margin-bottom: 0.75rem !important;
}
.m-b-1-25 {
    margin-bottom: 1.25rem !important;
}
.m-b-1-5 {
    margin-bottom: 1.5rem !important;
}
.m-b-1-75 {
    margin-bottom: 1.75rem !important;
}
.m-b-2-5 {
    margin-bottom: 2.5rem !important;
}

.m-t-0-25 {
    margin-top: 0.25rem !important;
}
.m-t-0-5 {
    margin-top: 0.5rem !important;
}
.m-t-0-75 {
    margin-top: 0.75rem !important;
}
.m-t-1-25 {
    margin-top: 1.25rem !important;
}
.m-t-1-5 {
    margin-top: 1.5rem !important;
}
.m-t-1-75 {
    margin-top: 1.75rem !important;
}
.m-t-2-5 {
    margin-top: 2.5rem !important;
}

.m-l-0-25 {
    margin-left: 0.25rem !important;
}
.m-l-0-5 {
    margin-left: 0.5rem !important;
}
.m-l-0-75 {
    margin-left: 0.75rem !important;
}
.m-l-1-5 {
    margin-left: 1.5rem !important;
}
.m-l-2-5 {
    margin-left: 2.5rem !important;
}

.m-r-0-25 {
    margin-right: 0.25rem !important;
}
.m-r-0-5 {
    margin-right: 0.5rem !important;
}
.m-r-0-75 {
    margin-right: 0.75rem !important;
}
.m-r-1-5 {
    margin-right: 1.5rem !important;
}
.m-r-2-5 {
    margin-right: 2.5rem !important;
}

.p-b-0-25 {
    padding-bottom: 0.25rem !important;
}
.p-b-0-5 {
    padding-bottom: 0.5rem !important;
}
.p-b-0-75 {
    padding-bottom: 0.75rem !important;
}
.p-b-1-5 {
    padding-bottom: 1.5rem !important;
}

.p-t-0-25 {
    padding-top: 0.5rem !important;
}
.p-t-0-5 {
    padding-top: 0.5rem !important;
}
.p-t-0-75 {
    padding-top: 0.5rem !important;
}
.p-t-1-5 {
    padding-top: 1.5rem !important;
}

.no-margin {
    margin: 0 !important;
}
.no-padding {
    padding: 0 !important;
}

$sizes: (
    "xl": $lg,
    "lg": $md,
    "md": $sm,
    "sm": $xs,
);
@each $sizeName, $size in $sizes {
    @media screen and (min-width: $size) {
        @for $i from 0 through 4 {
            .m-t-#{$sizeName}-#{$i} {
                margin-top: #{$i}rem !important;
            }
            .m-b-#{$sizeName}-#{$i} {
                margin-bottom: #{$i}rem !important;
            }
            .m-l-#{$sizeName}-#{$i} {
                margin-left: #{$i}rem !important;
            }
            .m-r-#{$sizeName}-#{$i} {
                margin-right: #{$i}rem !important;
            }
        }
    }
}

/* laptop < 1370 */
@media screen and (max-width: $xl) {
    html {
        font-size: 19px;
    }
}

@media screen and (max-width: $lg) {
}

@media screen and (max-width: $md) {
}

/* mobile < 768 */
@media screen and (max-width: $sm) {
}

@media screen and (max-width: $xs) {
}

@media screen and (max-width: $xxs) {
}
