﻿* {
    box-sizing: border-box;
}

:root {
    --color_layout:    #054a91;
    --color_primary:   #333333;
    --color_secondary: #fe5722;
    --color_info:      #5ec5f5;
    --color_white:     #fefefe;
    --color_black:     #222222;
    --color_danger:    #dc3545;

    --body:            #fefefe;
    
    --linear_gradient: linear-gradient(95.85deg, #5ec5f5 3.58%, #054a91 95.77%);

    --box_shadow: 0 0 2px 0px rgba(0, 0, 0, .1);

	--deg: -86deg;
	--trans: all 0.4s ease 0s;
    --max_width: 1440px;
    --sidebar:    300px;
    --logo:        80px;
    
}

@media (min-width: 1280px) {
    :root {
        --sidebar: 400px;
    }
}

body, html {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    position: relative;
    min-height: 100vh;
    background-color: var(--body);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    outline: none;
}
ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}
img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.reveal-loaded .reveal [class*="reveal-"] {
    opacity: 0;
    transform: translateY(30px) !important;
    transition: 0s !important;
}
.reveal-loaded [class*="reveal-"] {
    transition: 1s cubic-bezier(0.5, 0, 0, 1);
}
.reveal-loaded .reveal-1 {
    transition-delay: 0.1s;
}
.reveal-loaded .reveal-2 {
    transition-delay: 0.2s;
}
.reveal-loaded .reveal-3 {
    transition-delay: 0.3s;
}
.reveal-loaded .reveal-4 {
    transition-delay: 0.4s;
}
.reveal-loaded .reveal-5 {
    transition-delay: 0.5s;
}

.message_container {
	text-align: center;
	display: inline-block;
	margin: 1rem auto;
	font-size: 12px;
	width: 100%;
}

.message_container.alert-danger {
	color: var(--color_danger);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-loaded [class*="reveal-"] {
        opacity: 1;
        transform: translateY(0px) !important;
    }
    [class*="reveal-"] {
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

.img--container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img--container > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.img--container > span.percent-text, .img--container > span.alt-text {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 82px;
    font-weight: bold;
    color: var(--color_info);
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 4px;
    background-color: var(--color_white);
    position: relative;
    z-index: 20;
}
.img--container > span.alt-text {
    font-size: 24px;
}

.btn-visit-site.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
    background-color: grey;    
}

/* UTILITIES */
/* ===============================
   COLORS & BACKGROUNDS
   =============================== */
.bg-primary { background-color: var(--color_primary); }
.bg-secondary { background-color: var(--color_secondary); }
.bg-info { background-color: var(--color_info); }
.bg-danger { background-color: var(--color_danger); }
.bg-white { background-color: var(--color_white); }
.bg-black { background-color: var(--color_black); }

/* Text colors */
.text-primary { color: var(--color_primary); }
.text-secondary { color: var(--color_secondary); }
.text-info { color: var(--color_info); }
.text-danger { color: var(--color_danger); }
.text-white { color: var(--color_white); }
.text-black { color: var(--color_black); }

/* ===============================
   FLEX & LAYOUT
   =============================== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }

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

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

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

/* Gap utilities */
/* Gap utilities */
.gap-1  { gap: 0.25rem; }   /* 4px */
.gap-2  { gap: 0.5rem; }    /* 8px */
.gap-3  { gap: 0.75rem; }   /* 12px */
.gap-4  { gap: 1rem; }      /* 16px */
.gap-5  { gap: 1.5rem; }    /* 24px */
.gap-6  { gap: 2rem; }      /* 32px */
.gap-7  { gap: 2.5rem; }    /* 40px */
.gap-8  { gap: 3rem; }      /* 48px */
.gap-9  { gap: 3.5rem; }    /* 56px */
.gap-10 { gap: 4rem; }      /* 64px */

/* ===============================
   TYPOGRAPHY
   =============================== */
.text-sm {
  font-size: 0.875rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}
.font-bold {
  font-weight: 700;
}
.text-center {
  text-align: center;
}
.text-white {
  color: #fff;
}
.text-gray-600 {
  color: #4b5563;
}
.text-underline {
  text-decoration: underline;
}
.no-underline {
  text-decoration: none;
}

/* ===============================
   SPACING (PADDING & MARGIN)
   =============================== */
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}

/* ===============================
   DIMENSIONS
   =============================== */
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.max-w-sm {
  max-width: 24rem;
}
.mx-auto {
  max-width: auto;
}

/* ===============================
   BORDERS & RADIUS
   =============================== */
.rounded {
  border-radius: 0.25rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}

/* ===============================
   COMPONENTS
   =============================== */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;          /* 8px 16px */
  border-radius: 40rem;       /* ~6px */
  font-size: 0.875rem;           /* text-sm */
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
  border: none;
  text-decoration: none;
}

/* Variants */
.btn-primary {
  background-color: var(--color_layout);
  color: var(--color_white);
}
.btn-primary:hover {
  background-color: #043570;
}

.btn-secondary {
  background-color: var(--color_secondary);
  color: var(--color_white);
}
.btn-secondary:hover {
  background-color: #e24d1f;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color_layout);
  color: var(--color_layout);
}
.btn-outline:hover {
  background-color: var(--color_layout);
  color: var(--color_white);
}

.btn-disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Link-style button */
.btn-link {
  display: inline; /* behave like text */
  padding: 0; /* remove button padding */
  border: none;
  background: none;
  color: var(--color_layout);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-link:hover {  
  text-decoration-thickness: 2px;
}

/* Additional utilities for error page */
.h-full { height: 100vh; } /* already exists but ensures full screen */
.flex-col { flex-direction: column; }
.gap-4 { gap: 1rem; }