/*global properties*/
@font-face {
    font-family: 'header'; /* Choose a name for your font */
    src: url('/static/fonts/AlfaSlabOne-Regular.ttf') format('truetype');
    /* --- Recommended: Add other formats if available for better browser support --- */
    /* src: url('/static/fonts/AlfaSlabOne-Regular.woff2') format('woff2'),
           url('/static/fonts/AlfaSlabOne-Regular.woff') format('woff'),
           url('/static/fonts/AlfaSlabOne-Regular.ttf') format('truetype'); */
    font-style: normal;
  }

@font-face {
    font-family: 'subheader'; /* Choose a name for your font */
    src: url('/static/fonts/RobotoFlex-Regular.ttf') format('truetype');
    font-style: normal;
    }

@font-face {
    font-family: 'body'; /* Choose a name for your font */
    src: url('/static/fonts/Lato-BoldItalic.ttf') format('truetype');
    font-style: normal;
    }

/*    COMPONENTS    */
.header {
    font-family: 'header';
    font-size: 1.85rem; /* Roughly similar to an h3 heading */
    font-weight: 400;   /* Common value for bold */
    /* Alternatives: bold, 600 (semi-bold), 400 (normal) */
  
    /* Color: Set a text color if different from the default. */
    color: #212529; /* Bootstrap's default dark text color, adjust if needed */
    margin-bottom: 1rem; /* Adjust spacing as needed (e.g., 0.5rem, 1.5rem) */
    /* Line Height: Can be adjusted for better readability with larger fonts. */
    line-height: 1.2;
    letter-spacing: 0.05rem;
  }

/* Apply different styles on smaller screens (<860px) */
@media (max-width: 860px) {
    .header {
        font-size: 1.6rem;
    }
}

.data-card-header {
    font-family: 'header';
    font-size: 0.90rem; /* Roughly similar to an h3 heading */
    font-weight: 220;   /* Common value for bold */
    /* Alternatives: bold, 600 (semi-bold), 400 (normal) */
  
    /* Color: Set a text color if different from the default. */
    color: #212529; /* Bootstrap's default dark text color, adjust if needed */
    margin-bottom: 1rem; /* Adjust spacing as needed (e.g., 0.5rem, 1.5rem) */
    /* Line Height: Can be adjusted for better readability with larger fonts. */
    line-height: 1.2;
    letter-spacing: 0.05rem;
  }

.data-card-header-big {
    font-family: 'header';
    font-size: 1.6rem; /* Roughly similar to an h3 heading */
    font-weight: 220;   /* Common value for bold */
    /* Alternatives: bold, 600 (semi-bold), 400 (normal) */
  
    /* Color: Set a text color if different from the default. */
    color: #212529; /* Bootstrap's default dark text color, adjust if needed */
    margin-bottom: 1rem; /* Adjust spacing as needed (e.g., 0.5rem, 1.5rem) */
    /* Line Height: Can be adjusted for better readability with larger fonts. */
    line-height: 1.2;
    letter-spacing: 0.05rem;
  }

.subheader {
    font-family: 'subheader';
    font-size: 1.75rem; /* Roughly similar to an h3 heading */
    font-weight: 400;   /* Common value for bold */
    /* Alternatives: bold, 600 (semi-bold), 400 (normal) */
  
    /* Color: Set a text color if different from the default. */
    color: #282c30; /* Bootstrap's default dark text color, adjust if needed */
    margin-bottom: 1rem; /* Adjust spacing as needed (e.g., 0.5rem, 1.5rem) */
    /* Line Height: Can be adjusted for better readability with larger fonts. */
    line-height: 1.2;
  }


.body {
    font-family: 'body';
    font-size: 1.25rem; /* Roughly similar to an h3 heading */
    font-weight: 200;   /* Common value for bold */
    /* Alternatives: bold, 600 (semi-bold), 400 (normal) */
  
    /* Color: Set a text color if different from the default. */
    color: #33373b; /* Bootstrap's default dark text color, adjust if needed */
    margin-bottom: 1rem; /* Adjust spacing as needed (e.g., 0.5rem, 1.5rem) */
    /* Line Height: Can be adjusted for better readability with larger fonts. */
    line-height: 1.2;
  }

/*This affects the whole page*/
body {
    line-height: 1.6;
    padding: 20px;
}
/* Media query: Apply styles only when the viewport width is at least 768px */
@media (min-width: 860px) {
    body {
        margin: 0 60px;
    }
}

/*Tsndard container*/
.custom-container {
    margin-left: auto;
    margin-right: auto;
    width: 100%;  
    /* Optional: You might want to add some padding so content isn't flush against the border */
    /* padding: 1rem; */
  }

/* Code to modify share popup Overlay styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
  }
  
  .overlay-content {
    background: white;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
  }
  .btn-download {
    /* Match your existing button styles */
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    /* Add your preferred colors and other styles */
}

/*HOMEPAGE NAVBAR */
/* Optional: Adjust logo size */
.navbar-brand.logo img {
    height: 30px; /* Adjust as needed */
}

/* Optional: Style the active link */
.navbar-nav .nav-link {
    font-family: 'header', serif;
}

.dropdown-item {
    font-family: 'header', serif;
}
/* Optional: Customize hover effect */
.navbar-nav .nav-link:hover {
    color: #00ffb3; /* Example hover color */
}

/* Card_Stack in the homepage */
.card {
    width: 90%;
    max-width: 315px;
    height: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.5s ease-in-out, z-index 0s 0.5s;
    position: relative;
    border-radius: 10px;
    margin: 0.75rem;
}

.card-body {
    text-align: center;
    margin-top: 0px;
    padding: 15px;
    display: flex;
    justify-content: space-between; /* Distribute buttons with space between */
    align-items: center; /* Vertically center buttons */
}

.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* buttons inside the card container in the homepage */
.card-body a, 
.card-body button {
    flex: 1; /* Make each button take up equal space */
    margin: 0 5px; /* Optional: add spacing between buttons */
    text-align: center; /* Ensure text is centered inside buttons */
}
.btn-share-x {
    background-color: #007bff; /* Set your desired background color */
    color: #fff; /* Set your desired text color */
    border: 1px solid #007bff; /* Set your desired border color */
}
.dropdown-menu {
    z-index: 1000; /* Set a higher z-index */
    background-color: #ffffff; /* Set background color */
    border: 1px solid #ced4da; /* Set border color */
    padding: 10px; /* Add padding */
}



/* Hero section */
.cta-container button {
    font-family: 'header', serif;
    letter-spacing: 0.07em;
    font-weight: 400;
  }


.marker-effect {
    position: relative;
    display: inline;
    line-height: 1;
    z-index: 1;
    white-space: nowrap;
}

.marker-effect::before {
    content: '';
    position: absolute;
    z-index: -2;
    left: -0.25em;
    right: -0.25em;
    bottom: 0.03em;
    height: 1.3em;
    border-radius: 0.45em;
}

.marker-effect::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: -0.25em;
    right: -0.25em;
    bottom: 0.03em;
    height: 1.3em;
    border-radius: 0.45em;
    filter: url(#grainEffect); /* Ensure you have this SVG filter defined somewhere */
}

/* Color and background for each marker */
.marker-red { color: rgb(255, 255, 255); }
.marker-red::before { background-color: rgba(166, 28, 28, 0.95); }

.marker-green { color: rgb(255, 255, 255); }
.marker-green::before { background-color: rgba(36, 132, 36, 0.95); }

.marker-blue { color: rgb(255, 255, 255); }
.marker-blue::before { background-color: rgba(26, 95, 174, 0.95); }

