/*!
 * Project: KISS - Keep It Simple Stylesheets
 * Description: A simple, lightweight CSS framework designed for ease of use.
 * Author: Niko Hoffrén
 * License: MIT
 * Version: 1.0.0
 */

/* ============= Normalize or Reset Styles ============= */

/* Remove default padding and margin from all elements */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* ========== Base Styles (typography, colors etc) ========== */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: gold;
}

a,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: orange;
}

/* Define primary, secondary and accent colors */
:root {
    --primary-color: black;
    --secondary-color: purple;
    --accent-color: #28a745;
    --red-color: #f44336;
    --blue-color: #2196f3;
    --green-color: #4caf50;
    --yellow-color: #ffeb3b;

    /* Gradient colors */
    --gradient-primary: linear-gradient(45deg, #007bff, #6610f2);
    --gradient-secondary: linear-gradient(45deg, #6c757d, #343a40);
    --gradient-accent: linear-gradient(45deg, #28a745, #218838);
}

/* ========== Font Families ========== */

/* Serif Fonts */
.serif {
    font-family: "Times New Roman", Times, serif;
}

/* Sans-Serif Fonts */
.sans-serif {
    font-family: Arial, Helvetica, sans-serif;
}

/* Monospace Fonts */
.monospace {
    font-family: "Courier New", Courier, monospace;
}

/* Cursive Fonts */
.cursive {
    font-family: "Brush Script MT", cursive;
}

/* Fantasy Fonts */
.fantasy {
    font-family: "Impact", fantasy;
}

/* =========== Header Styles =========== */

/* Base header style */
.header {
    font-family: Arial, sans-serif;
    line-height: 1.2;
    color: #303030;
    padding: 10px;
    text-align: center;
}

/* Large header */
.header--large {
    font-size: 2.5em;
    margin-bottom: 1rem;
}

/* Medium header */
.header--medium {
    font-size: 2em;
    margin-bottom: 0.75rem;
}

/* Small header */
.header--small {
    font-size: 1.5em;
    margin-bottom: 0.5rem;
}

/* Header with primary color */
.header--primary {
    color: var(--primary-color);
}

/* Header with secondary color */
.header--secondary {
    color: var(--secondary-color);
}

/* ============ Grid System ============ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Large container max-width is 1400px */
.container--large {
    max-width: 1400px;
}

/* Medium container max-width is 960px */
.container--medium {
    max-width: 960px;
}

/* Small container max-width is 720px */
.container--small {
    max-width: 720px;
}

/* Extra small container max-width is 540px */
.container--extra-small {
    max-width: 540px;
}

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

.col {
    flex: 1;
}

/* =========== Component Styles =========== */

/* =========== Additional Button Styles =========== */

.button {
    display: inline-block;
    padding: 10px 20px;
    color: #ff1064;
    background-color: var(--primary-color);
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

/* Button sizes */
.button--large {
    padding: 15px 30px;
    font-size: 1.2em;
}

.button--small {
    padding: 5px 10px;
    font-size: 0.8em;
}

/* Button with secondary color */
.button--secondary {
    background-color: var(--secondary-color);
}

/* Button with accent color */
.button--accent {
    background-color: var(--accent-color);
}

/* Outlined button */
.button--outlined {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Rounded button */
.button--rounded {
    border-radius: 50px;
}

.button--gradient-primary {
    background: var(--gradient-primary);
}

.button--gradient-secondary {
    background: var(--gradient-secondary);
}

.button--gradient-accent {
    background: var(--gradient-accent);
}

/* Pulse Buttons */
.btn-floating {
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========== Button Hover Styles =========== */

/* Change color and add shadow on hover */
.button:hover {
    background-color: var(--secondary-color);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.button--secondary:hover {
    background-color: var(--primary-color);
}

.button--accent:hover {
    background-color: var(--secondary-color);
}

.button--outlined:hover {
    background-color: var(--primary-color);
    color: rgb(255, 255, 0);
    border-color: var(--primary-color);
}

/* Change gradient color on hover */
.button--gradient-primary:hover {
    background: var(--gradient-accent);
}

.button--gradient-secondary:hover {
    background: var(--gradient-primary);
}

.button--gradient-accent:hover {
    background: var(--gradient-secondary);
}

/* =========== Utility Classes =========== */

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

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

/* Margin Classes */
.m-1 {
    margin: 0.25rem;
}

.m-2 {
    margin: 0.5rem;
}

.m-3 {
    margin: 0.75rem;
}

.m-4 {
    margin: 1rem;
}

.m-5 {
    margin: 1.25rem;
}

.m-6 {
    margin: 1.5rem;
}

.m-7 {
    margin: 1.75rem;
}

.m-8 {
    margin: 2rem;
}

.m-9 {
    margin: 2.25rem;
}

.m-10 {
    margin: 2.5rem;
}

/* Padding Classes */
.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-5 {
    padding: 1.25rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-7 {
    padding: 1.75rem;
}

.p-8 {
    padding: 2rem;
}

.p-9 {
    padding: 2.25rem;
}

.p-10 {
    padding: 2.5rem;
}

/* Shadow Classes */
.shadow-1 {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.shadow-2 {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.shadow-3 {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.shadow-4 {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.shadow-5 {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.text-center {
    text-align: center;
}

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

/* ============ Border Radius Classes ============ */

/* Small border radius */
.border-radius-sm {
    border-radius: 5px;
}

/* Medium border radius */
.border-radius-md {
    border-radius: 10px;
}

/* Large border radius */
.border-radius-lg {
    border-radius: 20px;
}

/* Circle border radius */
.border-radius-circle {
    border-radius: 50%;
}

/* Pill border radius */
.border-radius-pill {
    border-radius: 50rem;
}

/* =========== Additional Component Styles =========== */

/* Card component */
.card {
    border: 1px solid gold;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(255, 255, 0, 0.68);
}

.card .card-header {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.card .card-body {
    font-size: 1em;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    color: grey;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: orange;
    text-decoration: none;
    margin: 0 10px;
}

.navbar a:hover {
    text-decoration: underline;
}

/* Side Navbar */
.side-navbar {
    background-color: var(--primary-color);
    color: brown;
    width: 200px;
    padding: 20px;
}

.side-navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.side-navbar li {
    margin-bottom: 10px;
}

.side-navbar a {
    color: green;
    text-decoration: none;
}

.side-navbar a:hover {
    text-decoration: underline;
}

/* =========== Form Styles =========== */

/* Form Group styling */
.form-group {
    margin-bottom: 1.5rem;
}

/* Label styling */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Input styling */
.form-input {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: black;
    background-color: olive;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Input focus effect */
.form-input:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Select styling */
.form-select {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: pink;
    background-color: grey;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Textarea styling */
.form-textarea {
    display: block;
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: pink;
    background-color: gray;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Checkbox styling */
.form-checkbox {
    display: inline-block;
    margin-right: 0.5rem;
}

/* Radio button styling */
.form-radio {
    display: inline-block;
    margin-right: 0.5rem;
}

/* Form button styling */
.form-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: purple;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

/* Form button hover effect */
.form-button:hover {
    background-color: var(--primary-color-hover);
}

/* =========== Additional Utility Classes =========== */

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

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

.text-right {
    text-align: right;
}

/* Hiding/Showing Content */
.hide {
    display: none !important;
}

.hide-on-small-only {
    display: none !important;
}

.hide-on-med-only {
    display: block !important;
}

.hide-on-med-and-down {
    display: block !important;
}

.hide-on-med-and-up {
    display: none !important;
}

.hide-on-large-only {
    display: block !important;
}

.show-on-small {
    display: block !important;
}

.show-on-medium {
    display: none !important;
}

.show-on-large {
    display: none !important;
}

.show-on-medium-and-up {
    display: none !important;
}

.show-on-medium-and-down {
    display: block !important;
}

/* Scale Transition */
.scale-transition {
    transition: transform 0.3s ease;
}

/* Scale In */
.scale-transition.scale-in {
    transform: scale(1);
}

/* Scale Out */
.scale-transition.scale-out {
    transform: scale(0);
}

/* Apply focus styles to focused elements */
:focus {
    outline: 2px solid var(--primary-color);
}

/* Add focus styles to specific elements */
.button:focus,
.link:focus {
    /* Custom focus styles for buttons and links */
    outline: 2px solid var(--secondary-color);
}

/* Striped Table */
.table-striped tbody tr:nth-child(odd) {
    background-color: #f5f5f5;
}

/* Responsive Table */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Highlighted Table Row */
.table-highlighted tbody tr.highlighted {
    background-color: yellow;
}

/* Centered Table */
.table-centered {
    margin-left: auto;
    margin-right: auto;
}

/* Typography */
.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

/* Backgrounds */
.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

.bg-red {
    background-color: var(--red-color);
}

.bg-blue {
    background-color: var(--blue-color);
}

.bg-green {
    background-color: var(--green-color);
}

.bg-yellow {
    background-color: var(--yellow-color);
}

/* Borders */
.border-primary {
    border-color: var(--primary-color);
}

.border-secondary {
    border-color: var(--secondary-color);
}

.border-accent {
    border-color: var(--accent-color);
}

.border-red {
    border-color: var(--red-color);
}

.border-blue {
    border-color: var(--blue-color);
}

.border-green {
    border-color: var(--green-color);
}

.border-yellow {
    border-color: var(--yellow-color);
}

/* Flexbox */
.flex {
    display: flex;
}

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

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

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

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

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

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

.items-baseline {
    align-items: baseline;
}

.items-stretch {
    align-items: stretch;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

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

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

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

/* Display */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline {
    display: inline;
}

.hidden {
    display: none;
}

/* ========== Width & Height Utilities ========== */

/* Width */
.w-1 {
    width: 10%;
}

.w-2 {
    width: 20%;
}

.w-3 {
    width: 30%;
}

.w-4 {
    width: 40%;
}

.w-5 {
    width: 50%;
}

.w-6 {
    width: 60%;
}

.w-7 {
    width: 70%;
}

.w-8 {
    width: 80%;
}

.w-9 {
    width: 90%;
}

.w-10 {
    width: 100%;
}

/* Height */
.h-1 {
    height: 10%;
}

.h-2 {
    height: 20%;
}

.h-3 {
    height: 30%;
}

.h-4 {
    height: 40%;
}

.h-5 {
    height: 50%;
}

.h-6 {
    height: 60%;
}

.h-7 {
    height: 70%;
}

.h-8 {
    height: 80%;
}

.h-9 {
    height: 90%;
}

.h-10 {
    height: 100%;
}

/* ========== Position Utilities ========== */

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

/* ========== Flex Utilities ========== */

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

/* ========== Font Utilities ========== */

.font-bold {
    font-weight: bold;
}

.font-semibold {
    font-weight: 600;
}

.font-light {
    font-weight: 300;
}

/* ========== Visibility Utilities ========== */

.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

/* ========== Overflow Utilities ========== */

.overflow-auto {
    overflow: auto;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-scroll {
    overflow: scroll;
}

.overflow-x-auto {
    overflow-x: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

/* ========== Border Utilities ========== */

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-l {
    border-left-width: 1px;
}

.border-r {
    border-right-width: 1px;
}

.border-0 {
    border-width: 0;
}

.rounded-t {
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.rounded-b {
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.rounded-l {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.rounded-r {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* ========== Transform Utilities ========== */

.scale-50 {
    transform: scale(0.5);
}

.scale-75 {
    transform: scale(0.75);
}

.scale-90 {
    transform: scale(0.9);
}

.scale-100 {
    transform: scale(1);
}

.scale-110 {
    transform: scale(1.1);
}

.scale-125 {
    transform: scale(1.25);
}

.scale-150 {
    transform: scale(1.5);
}

.rotate-45 {
    transform: rotate(45deg);
}

.rotate-90 {
    transform: rotate(90deg);
}

.rotate-180 {
    transform: rotate(180deg);
}

.rotate-270 {
    transform: rotate(270deg);
}

/* ========== Opacity Utilities ========== */

.opacity-0 {
    opacity: 0;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.opacity-100 {
    opacity: 1;
}

/* ========== Background Blend Mode Utilities ========== */

.bg-blend-normal {
    background-blend-mode: normal;
}

.bg-blend-multiply {
    background-blend-mode: multiply;
}

.bg-blend-screen {
    background-blend-mode: screen;
}

.bg-blend-overlay {
    background-blend-mode: overlay;
}

.bg-blend-darken {
    background-blend-mode: darken;
}

.bg-blend-lighten {
    background-blend-mode: lighten;
}

.bg-blend-color-dodge {
    background-blend-mode: color-dodge;
}

.bg-blend-color-burn {
    background-blend-mode: color-burn;
}

.bg-blend-hard-light {
    background-blend-mode: hard-light;
}

.bg-blend-soft-light {
    background-blend-mode: soft-light;
}

.bg-blend-difference {
    background-blend-mode: difference;
}

.bg-blend-exclusion {
    background-blend-mode: exclusion;
}

.bg-blend-hue {
    background-blend-mode: hue;
}

.bg-blend-saturation {
    background-blend-mode: saturation;
}

.bg-blend-color {
    background-blend-mode: color;
}

.bg-blend-luminosity {
    background-blend-mode: luminosity;
}

/* ========== Box Decoration Break Utilities ========== */

.decoration-slice {
    box-decoration-break: slice;
}

.decoration-clone {
    box-decoration-break: clone;
}

/* ========== Flexbox Grid Utilities ========== */

.grid-cols-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.grid-cols-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

/* ========== Box Shadow Utilities ========== */

.shadow-xs {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ========== Aspect Ratio Utilities ========== */

.aspect-ratio-square {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
}

.aspect-ratio-16-9 {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.aspect-ratio-4-3 {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
}

/* ========== Backdrop Filter Utilities ========== */

.backdrop-blur {
    backdrop-filter: blur(4px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

.backdrop-grayscale {
    backdrop-filter: grayscale(100%);
}

.backdrop-sepia {
    backdrop-filter: sepia(100%);
}

.backdrop-saturate {
    backdrop-filter: saturate(200%);
}

.backdrop-hue-rotate {
    backdrop-filter: hue-rotate(90deg);
}

.backdrop-invert {
    backdrop-filter: invert(100%);
}

.backdrop-brightness {
    backdrop-filter: brightness(50%);
}

.backdrop-contrast {
    backdrop-filter: contrast(200%);
}

.backdrop-opacity {
    backdrop-filter: opacity(50%);
}

/* ========== Custom Cursor Utilities ========== */

.cursor-pointer {
    cursor: pointer;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.cursor-crosshair {
    cursor: crosshair;
}

.cursor-zoom-in {
    cursor: zoom-in;
}

.cursor-grab {
    cursor: grab;
}

/* ========== Text Overflow Utilities ========== */

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overflow-ellipsis {
    text-overflow: ellipsis;
}

.overflow-clip {
    text-overflow: clip;
}

/* ========== Text Transform Utilities ========== */

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

/* ========== Object Fit Utilities ========== */

.object-contain {
    object-fit: contain;
}

.object-cover {
    object-fit: cover;
}

.object-fill {
    object-fit: fill;
}

.object-scale-down {
    object-fit: scale-down;
}

/* ========== Custom Transform Utilities ========== */

.transform-none {
    transform: none;
}

.scale-x-50 {
    transform: scaleX(0.5);
}

.scale-y-50 {
    transform: scaleY(0.5);
}

.translate-x-10 {
    transform: translateX(10px);
}

.translate-y-10 {
    transform: translateY(10px);
}

.skew-x-10 {
    transform: skewX(10deg);
}

.skew-y-10 {
    transform: skewY(10deg);
}

/* ========== Aspect Ratio Utilities ========== */

.aspect-ratio-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========== Flexbox Grid System ========== */

.grid-12 {
    display: flex;
    flex-wrap: wrap;
}

.grid-col-1 {
    flex: 0 0 8.33%;
    max-width: 8.33%;
}

.grid-col-2 {
    flex: 0 0 16.66%;
    max-width: 16.66%;
}

.grid-col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

/*... and so on for grid-col-4 up to grid-col-12*/

/* ========== 3D Transform Utilities ========== */

.transform-3d {
    perspective: 1000px;
}

.rotate-x-90 {
    transform: rotateX(90deg);
}

.rotate-y-90 {
    transform: rotateY(90deg);
}

.rotate-z-90 {
    transform: rotateZ(90deg);
}

.translate-z-10 {
    transform: translateZ(10px);
}
