@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --color-primary: #010C80;
    --color-secondary: #EBBD46;
    --color-tertiary: #fbfbfb;
    --color-contactForm: #f5f5f5;

    --font-size-primary: 16px;
    --font-size-sm-primary: 15px;
}

/* Define the variable fonts */
@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900; /* This covers all weights from Thin to Black */
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900; /* This covers all weights from Thin to Black */
    font-style: italic;
}


.custom-container {
    max-width: 1920px;
    padding-left: 3.2rem;
    padding-right: 3.2rem;
}

.center-container{
    max-width: 1920px;
    padding-left: 15rem;
    padding-right: 15rem;
}

@media (max-width: 768px) {
    body {
        font-size: var(--font-size-sm-primary);
    }

    .custom-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .center-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 1024px) {
    .center-container {
        padding-left: 8rem;
        padding-right: 8rem;
    }
}

.content-wrapper {
    flex: 1;
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-size: var(--font-size-primary);
    display: flex;
    flex-direction: column;
    background-color: #fbfbfb;
}

.img-not-selectable {
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Daisy Ui styles overwrite */
.checkbox {
    --chkbg: var(--color-primary);
}

ol, ul, menu {
    padding-left: 1em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

menu {
    list-style-type: disc;
}


/* Styling for SwiperJS navigation buttons*/
.swiper-vertical .swiper-button-next,
.swiper-vertical .swiper-button-prev {
    left: 50%;
    transform: rotate(90deg);
    transform-origin: left center;
}

.swiper-vertical .swiper-button-prev {
    --swiper-navigation-top-offset: 0px;
}

.swiper-vertical .swiper-button-next {
    top: auto;
    bottom: calc(var(--swiper-navigation-size));
}

.swiper-button-next,
.swiper-button-prev {
    background-color: white;
    padding: 13px !important;
    color: black !important;
    outline: 2px solid #d3d3d3;
    --swiper-navigation-size: 15px;
}

.swiper-button-next, .swiper-button-prev {
    opacity: 1;
    transition: 0.1s ease-in-out;
}

.swiper-button-disabled {
    visibility: hidden;
    opacity: 0;
    transition: 0.1s ease-in-out;
}
/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    margin: 0;
    padding: 0;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
    margin-block-end: 0;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
    font: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}
