* {
    box-sizing: border-box;
}

/* Text */
@font-face {
    font-family: poppins;
    src: url(https://fonts.googleapis.com/css2?family=Poppins);
}

@font-face {
    font-family: roboto;
    src: url(https://fonts.googleapis.com/css2?family=Roboto);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #262C36;
    font-family: roboto;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

p,
a, button, li {
    font-size: 1rem;
    color: #262C36;
    font-family: poppins;
}

/* BG Colors */
body, .bgcolor-dark {
    background-color: #586F7C;
}

.bgcolor-white {
    background-color: #f4f4f9;
}

/* Links & Buttons */
a {
    color: #64B4B0;
}

a:hover {
    color: #dc8626;
}

.button {
    display: inline-flex;
    padding: 1em 1.5em;
    margin: 0.5em;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border: 2px solid #64B4B0;
    border-radius: 7px;
    color: #262C36;
    background-color: #f4f4f9;
    fill: #262C36;
    transition: background-color 0.25s ease, color 0.25s ease, fill 0.25s ease;
}

.button:hover {
    background-color: #64B4B0;
    color: #f4f4f9;
    fill: #f4f4f9;
}

.tile {
    display: inline-flex;
    width: 300px;
    height: 200px;
    padding: 2em;
    margin: 0.5em;
    font-size: 20px;
    text-align: center;
    align-items: center;
    text-decoration: none;
    border: 2px solid #64B4B0;
    border-radius: 7px;
    color: #262C36;
    background-color: #f4f4f9;
    fill: #262C36;
    transition: background-color 0.25s ease, color 0.25s ease, fill 0.25s ease;
}

.tile:hover {
    background-color: #64B4B0;
    color: #f4f4f9;
    fill: #f4f4f9;
}

.home {
    width: 100%;
    text-align: right;
    padding: 1em 1.5em;
    opacity: 0.5;
    position: fixed;
    bottom: 0;
}

.home:hover {
    opacity: 1;
}

/* Alert Popup */
.popup {
    position: relative;
    display: inline-block;
}

.popup .popuptext {
    visibility: hidden;
    width: 100px;
    background-color: #555;
    color: #f4f4f9;
    text-align: center;
    border-radius: 7px;
    padding: 0.5em 0;
    position: absolute;
    z-index: 1;
    bottom: 60%;
    left: 50%;
    margin-left: -50px;
}

.popup .popuptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.popup .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s;
}

/* Icons */
.icon {
    width: 2.25em;
    padding-right: 1em;
    align-self: center;
}

.icon-sm {
    width: 1.5em;
    margin: 25px;
    padding: 0 0.2em;
    fill: #262C36;
    transition: fill 0.25s ease;
}

.icon-lg {
    width: 3.5em;
    fill: #262C36;
    transition: fill 0.25s ease;
}

.icon-sm:hover, .icon-lg:hover {
    fill: #64B4B0;
}

.icon-vis {
    display: inline;
}

/* Spacing */
.margins {
    margin: 5% 25%;
}

div {
    margin: 5% 0;
}

    /* Extra Width & Height */
    .w-25 {
        width: 25%;
    }

    .w-50 {
        width: 50%;
    }

    .w-75 {
        width: 75%;
    }

    .w-100 {
        width: 100%;
    }

    .h-100 {
        height: 100%;
    }

    /* Extra Padding & Margin */
    .p {
        padding: 2.5em;
    }

    .p-x {
        padding: 0 2.5em;
    }

    .p-y {
        padding: 2.5em 0;
    }

    .m-x {
        margin: 0 2.5em;
    }

    .m-y {
        margin: 2.5em 0;
    }

    .p-x-0 {
        padding-left: 0;
        padding-right: 0;
    }

    .p-y-0 {
        padding-top: 0;
        padding-bottom: 0;
    }

    .m-x-0 {
        margin-left: 0;
        margin-right: 0;
    }

    .m-y-0 {
        margin-top: 0;
        margin-bottom: 0;
    }

.border {
    border: 2px solid #262C36;
    border-radius: 7px;
}

hr {
    border: 1px solid #262C36;
    width: 100%;
}

/* Alignment */
.center {
    text-align: center;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

.center-items {
    justify-content: center;
    align-items: center;
}

.space {
    justify-content: space-between;
}

/* Flexbox */
.flex-container {
    display: flex;
    flex-wrap: wrap;
}

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

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

/* Carousel */
:root {
    --slide-width: 40vmin;
    --slide-height: calc(var(--slide-width) * 1.4);
}

.slides {
    list-style: none;
    overflow-x: auto;
    width: 150vmin;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    border: 2px solid #262C36;
    border-radius: 7px;
    touch-action: pan-x;
    background-color: #262C36;
    padding: 0;
    margin: 0 auto;
}

.slide {
    padding: 0;
    margin: 0.5em 1em;
    display: inline-block;
    width: var(--slide-width);
    height: var(--slide-height);
    scroll-snap-align: center;
    position: relative;
    overflow: clip;
}

.slide > img {
	display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    right: 0;
    object-fit: cover;
	object-position: 100% 0;
    animation-name: adjust-image;
}
 
@keyframes adjust-image {
	0% {
		object-position: 100% 0;
	}
	100% {
		object-position: 0 0;
	}
}

@supports (animation-timeline: view()) {
    .slide > img {
        animation: adjust-image linear both;
        animation-timeline: view(x);
    }
}

/* Animation */
.fade-in {
    opacity: 1;
    animation-name: fade-in;
    animation-duration: 1s;
}

@keyframes fade-in {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Responsive Media */
@media screen and (max-width:992px) {
    .margins {
            margin: 5% 15%;
    }
    
    .p-x {
        padding: 0 2.5em;
    }

    .p-y {
        padding: 2.5em 0;
    }
}

@media screen and (max-width:768px) {
    .margins {
            margin: 5% 10%;
    }

    .p-x {
        padding: 0 2em;
    }

    .p-y {
        padding: 2em 0;
    }
}

@media screen and (max-width:576px) {
    .margins {
            margin: 5% 5%;
    }

    .icon-vis {
        display: none;
    }

    .p-x {
        padding: 0 1em;
    }

    .p-y {
        padding: 1em 0;
    }
}