/* Button styles */

.btn {
    padding: var(--vertical-spacing) var(--horizontal-spacing);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--dark-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn:not(.text-only):not(.link):hover {
    box-shadow: 0 4px 8px var(--dark-shadow-color);
}

.btn.text-only {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn.text-only:hover {
    text-decoration: none;
    opacity: 0.7;
}

.btn.link {
    background-color: transparent;
    padding: 0;
    color: var(--primary-color);
    font-weight: normal;
}

.btn.contains-image {
    display: flex;
    align-items: center;
    gap: var(--horizontal-spacing);
    padding: var(--vertical-spacing);
}

.btn.contains-image>img {
    height: 30px;
}

.btn.outline {
    background-color: transparent;
    outline: 3px solid var(--primary-color);
    outline-offset: -3px;
}

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


/* Review styles */

.review {
    background-color: var(--secondary-color);
    color: var(--light-color);
    max-width: 400px;
    padding: var(--vertical-spacing) var(--horizontal-spacing);
}

.review.right {
    border-radius: var(--border-radius) var(--border-radius) 0 var(--border-radius);
    float: right;
}

.review.left {
    border-radius: var(--border-radius) var(--border-radius) var(--border-radius) 0;
    float: left;
}


/* icon styles */

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
    /* Support for IE. */
    font-feature-settings: 'liga';
}


/* Devider style */

hr,
.devider {
    height: 5px;
    background-color: var(--primary-color);
    margin: var(--spacing) 0;
}

@media (max-width: 768px) {
    hr,
    .devider {
        margin: calc(var(--spacing) / 2) 0;
    }
}


/* Split container */

.split-container {
    display: flex;
    flex-direction: row;
    gap: var(--spacing);
    justify-content: space-between;
    margin-bottom: calc(var(--spacing) / 2);
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
        gap: 0;
    }
    .split-container.gap {
        gap: calc(var(--spacing) / 2);
    }
}


/* forms */

.login-form {
    width: fit-content;
    margin: 0 auto;
}

.form-element {
    margin-bottom: calc(var(--spacing) / 2);
}

.form-element * {
    display: block;
}

.form-element label {
    font-weight: bold;
}

.form-element input {
    width: 100%;
}

.form-info {
    font-size: 80%;
    width: fit-content;
    display: flex;
    flex-direction: column;
}


/* Grid layout styles */

.grid-layout-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing)/2);
}

.grid-layout-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing)/2);
}

.grid-layout-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: calc(var(--spacing)/2);
}

.grid-layout-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: calc(var(--spacing)/2);
}

@media (max-width: 1100px) {
    .grid-layout-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-layout-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-layout-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-layout-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-layout-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .grid-layout-5 {
        grid-template-columns: 1fr;
    }
    .grid-layout-4 {
        grid-template-columns: 1fr;
    }
    .grid-layout-3 {
        grid-template-columns: 1fr;
    }
    .grid-layout-2 {
        grid-template-columns: 1fr;
    }
}


/* Checkbox */

.checkbox-wrapper {
    box-sizing: border-box;
    --background-color: #fff;
    --checkbox-height: 18px;
    margin-bottom: calc(var(--spacing) / 3)
}

@-moz-keyframes dothabottomcheck {
    0% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) / 2);
    }
}

@-webkit-keyframes dothabottomcheck {
    0% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) / 2);
    }
}

@keyframes dothabottomcheck {
    0% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) / 2);
    }
}

@keyframes dothatopcheck {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) * 1.2);
    }
}

@-webkit-keyframes dothatopcheck {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) * 1.2);
    }
}

@-moz-keyframes dothatopcheck {
    0% {
        height: 0;
    }
    50% {
        height: 0;
    }
    100% {
        height: calc(var(--checkbox-height) * 1.2);
    }
}

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

.checkbox-wrapper .check-box {
    height: var(--checkbox-height);
    width: var(--checkbox-height);
    /* The wrapper (e.g. .plush-consent) is a flex row with a long label; without
       this the fixed-size box shrinks width-wise into a thin sliver next to the
       text (Gery first-round bug list, item 1). Harmless in non-flex wrappers. */
    flex: 0 0 auto;
    background-color: transparent;
    border: calc(var(--checkbox-height) * .1) solid var(--secondary-color);
    border-radius: 5px;
    position: relative;
    display: inline-block;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -moz-transition: border-color ease 0.2s;
    -o-transition: border-color ease 0.2s;
    -webkit-transition: border-color ease 0.2s;
    transition: border-color ease 0.2s;
    cursor: pointer;
}

.checkbox-wrapper .check-box::before,
.checkbox-wrapper .check-box::after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    height: 0;
    width: calc(var(--checkbox-height) * .2);
    background-color: var(--primary-color);
    display: inline-block;
    -moz-transform-origin: left top;
    -ms-transform-origin: left top;
    -o-transform-origin: left top;
    -webkit-transform-origin: left top;
    transform-origin: left top;
    border-radius: 5px;
    content: " ";
    -webkit-transition: opacity ease 0.5;
    -moz-transition: opacity ease 0.5;
    transition: opacity ease 0.5;
}

.checkbox-wrapper .check-box::before {
    top: calc(var(--checkbox-height) * .72);
    left: calc(var(--checkbox-height) * .41);
    box-shadow: 0 0 0 calc(var(--checkbox-height) * .05) var(--background-color);
    -moz-transform: rotate(-135deg);
    -ms-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.checkbox-wrapper .check-box::after {
    top: calc(var(--checkbox-height) * .37);
    left: calc(var(--checkbox-height) * .05);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.checkbox-wrapper input[type=checkbox]:checked+.check-box,
.checkbox-wrapper .check-box.checked {
    border-color: var(--primary-color);
}

.checkbox-wrapper input[type=checkbox]:checked+.check-box::after,
.checkbox-wrapper .check-box.checked::after {
    height: calc(var(--checkbox-height) / 2);
    -moz-animation: dothabottomcheck 0.2s ease 0s forwards;
    -o-animation: dothabottomcheck 0.2s ease 0s forwards;
    -webkit-animation: dothabottomcheck 0.2s ease 0s forwards;
    animation: dothabottomcheck 0.2s ease 0s forwards;
}

.checkbox-wrapper input[type=checkbox]:checked+.check-box::before,
.checkbox-wrapper .check-box.checked::before {
    height: calc(var(--checkbox-height) * 1.2);
    -moz-animation: dothatopcheck 0.4s ease 0s forwards;
    -o-animation: dothatopcheck 0.4s ease 0s forwards;
    -webkit-animation: dothatopcheck 0.4s ease 0s forwards;
    animation: dothatopcheck 0.4s ease 0s forwards;
}