@font-face {
    font-family: 'Romanica'; /* The name you will use in CSS */
    src: url('/css/romanica/Romanica.ttf') format('truetype'); /* Path to the font file */
    font-weight: normal; /* Optional: Define weight */
    font-style: normal;  /* Optional: Define style */
}

/* Example usage */

html, body {
    height: 100%; /* Ensure the body and html elements fill the viewport height */
    margin: 0; /* Remove default margin to avoid unwanted space */
    display: flex;
    flex-direction: column; /* Arrange children (header, main, footer) in a column */
}

h1 {
    font-size: 2rem;      /* 32px */
    font-weight: bold;
    margin: 0px;
    line-height: 1.2;
    font-family: 'Romanica', sans-serif;

}

h2 {
    font-size: 1.5rem;     /* 24px */
    font-weight: bold;
    font-family: 'Romanica', sans-serif;
    line-height: 1.1;
}

h3 {
    font-size: 1.17rem;    /* ~18.7px */
    font-weight: bold;
    line-height: 1.4;
    font-family: 'Romanica', sans-serif;

}

body {
    font-family: 'Romanica', sans-serif; /* Use your font as the primary font */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

div.centerVertically {
    height: 100%;
    width: 100%;
    display: flex; /* Enables Flexbox */
    justify-content: center; /* Horizontally center content */
    align-items: center; /* Vertically center content */
    flex-direction: column; /* Optional: Align items in a column */
}

footer {
    background-color: #f9f9f9; /* Optional: Light background for better contrast */
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1); /* Optional: Shadow for subtle separation */
}

.sticky-header {
    z-index:100;
    position: sticky;
    top: 0;
    -webkit-box-shadow: 0px 10px 13px -7px #e1e1e1, 5px 5px 15px 5px rgba(0,0,0,0);
    box-shadow: 0px 10px 13px -7px #e1e1e1, 5px 5px 15px 5px rgba(0,0,0,0);
}

span.title{
    font-family: 'Romanica', sans-serif;
    font-size: 1.5rem;
}

.stdButton, 
.stdForm input[type="text"],
.stdForm input[type="email"],
.stdForm input[type="password"],
.stdForm input[type="submit"],
.stdForm textarea {
    padding: 6px;
    font-size: 15px;
    border-width: 2px;
    border-color: #d3d3d3;
    background-color: #ffffff;
    color: #000000;
    border-style: solid;
    border-radius: 10px;
}

.stdButton, 
.stdForm input[type="submit"] {
    background-color: black;
    color: white;
}

.stdForm input[type="text"]::placeholder,
.stdForm input[type="password"]::placeholder,
.stdForm input[type="email"]::placeholder,
.stdForm textarea::placeholder {
    color: rgb(161, 161, 161);
}

a:link,
a:visited,
a:hover,
a:active {
    color: #000000;
    text-decoration: underline;
    line-height: 1rem; 
    display: inline-block
}


a.stdLinkButton:link,
a.stdLinkButton:visited,
a.stdLinkButton:hover,
a.stdLinkButton:active {
    background-color: #000000;
    color: #ffffff;
    border-style: solid;
    border-radius: 10px;
    padding: 6px;
    font-size: 15px;
    border-width: 2px;
}


div.videoScroll {
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevent items from wrapping to the next line */
}
  
div.videoScroll div {
    display: inline-block; /* Ensure all items stay in a single row */
    margin-right: 10px; /* Optional: Add space between items */
}

p{
    color: #373737;
    font-family: 'Romanica', sans-serif;
    line-height: 1rem;
}

p.light{
    color: #c9c9c9;
}

#mainMediaContainer {
    border: 1px dashed rgb(230, 230, 230);
    position: relative;
    overflow: hidden;
    background-color: #f9f9f9;
    height: 200px; /* Default height for mobile */
}

/* For medium-sized screens (tablets, small desktops) */
@media (min-width: 768px) {
    #mainMediaContainer {
        height: 300px;
    }
}

/* For large screens (desktops) */
@media (min-width: 1200px) {
    #mainMediaContainer {
        height: 500px;
    }
}

p.topicTitle{
    padding-left: 5px; 
    line-height: 1.2rem; 
    margin-bottom: 10px
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 1rem;
    transition: transform 0.2s ease-in-out;
}

.menu-item:last-child {
    margin-bottom: 0;
}

.menu-item:hover {
    transform: scale(1.02); /* Slight zoom on hover */
}

.menu-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333; /* Dark gray for readability */
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.menu-link:hover {
    color: #0078D4; /* Blue tint on hover */
}

.menu-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    max-width: 22px;
    max-height: 22px;
    object-fit: contain;
}

.stdLink-icon {
    height: 1em; /* Matches the text size */
    vertical-align: middle; /* Aligns with text */
    line-height: 1; /* Prevents extra spacing */
}

.menu-link:hover .menu-icon {
    filter: brightness(1.2); /* Subtle brightness on hover */
}

.category-item {
    display: flex;
    align-items: center; /* Align all elements vertically */
    gap: 10px; /* Add consistent spacing between elements */
}

.category-checkbox {
    width: 1.5rem; /* Match the width of the icon */
    height: 1.5rem; /* Match the height of the icon */
    margin: 0; /* Reset default margins */
    flex-shrink: 0; /* Prevent checkbox from resizing in flex container */

}

.category-checkbox:checked {
    background-color: #0078D4; /* Background color for checked state */
    border-color: #0078D4; /* Border color for checked state */
}


.file-upload-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.file-upload-label {
    display: block;
    width: 100%;
    background-color: #000000;
    color: white;
    text-align: center;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.file-upload-input {
    display: none; /* Hide the default file input */
}

#file-upload-text {
    display: inline-block;
    margin-right: 10px;
}

div.profileImageContainer {
    border: 1px dashed rgb(230,230,230); 
    border-radius: 100%;
    display: flex; 
    overflow: hidden;
    justify-content: center; 
    align-items: center;
}

img.profileImage {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
}

p.addingContentTextWarnings{
    line-height: 1.1rem;
}

div.customWidth{
    max-width:800px; 
    
}

.card-grid {
    /* This makes the grid cells always match height */
    display: flex;
    flex-wrap: wrap;
}

.card-cell {
    display: flex;
    /* Allows card to stretch to cell height */
    flex-direction: column;
}

.card-full {
    /* Fills the height of its flex parent */
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-start;
}

.card-description {
    margin-top: 10px;
    margin-bottom: 0;
    flex-grow: 1;
    color: #555;
}

.card {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: none !important;
    box-shadow: none !important;
    width: 100%;
    transition: box-shadow 0.2s;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.relevante-en-row {
    display: flex;
    align-items: stretch; /* key! */
    background: #f4f4f4;
    border-radius: 12px;
    font-size: 1em;
    margin-bottom: 6px;
    margin-top: 5px;
    overflow: hidden;
    padding: 0;
}

.relevante-en-text {
    flex: 1;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding-left: 14px;
}

.relevante-en-flag-container {
    flex: 0 0 44px; /* Fixed width */
    display: flex;
    align-items: stretch; /* Important! */
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 0 12px 12px 0;
    padding: 0;
    background: none; /* Remove background! */
    border: none;     /* Remove border! */
    height: 100%;     /* Take full height */
}

.relevante-en-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 12px 12px 0; /* Rounded right side only */
    display: block;
    margin: 0;
    box-shadow: none;
    min-width: 0;
    min-height: 0;
    border: none;
    background: none;
}

hr{
  border: none;
  border-top: 1px solid #eeeeee; /* lighter than default */
  margin: 1em 0;
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.custom-toast {
    background-color: #000; /* black background */
    color: #fff; /* white text */
    padding: 12px 20px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.4s ease-out forwards;
    font-size: 0.9rem;
}




@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add vertical spacing between cards on mobile */
@media (max-width: 640px) {
    .card-cell {
        margin-bottom: 28px;
    }
}

/* Optional: Remove last margin on last card-cell (for neatness) */
@media (max-width: 640px) {
    .card-cell:last-child {
        margin-bottom: 0;
    }
}