/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}

html, body {
    min-height: 100%;
}
#workoutForm {
    align-items: center;
    align-content: center;
    text-align: center;
    
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    background: #eef1f4;
}
.treo{
    text-align: center;

}
div.blog-scroll {
    height: 600px;              /* fast højde */
    overflow-y: auto;           /* aktiver scroll */
    padding-right: 1rem;
}
.blog-entry {
    margin-bottom: 3rem;
}

.blog-entry h2 {
    margin-bottom: 0.5rem;
}
.blog-entry + .blog-entry {
    border-top: 2px solid #083A66;
    padding-top: 2rem;
    margin-top: 2rem;
}
/* =========================
   HEADER
========================= */
header {
    position: fixed;
    background: #083A66;
    color: #fff;
    padding: 1rem;
    text-align: center;
    height: 120px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    width: 100%;
    z-index: 1000;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

header h1 {
    margin-bottom: 0.25rem;
    font-size: xx-large;
}

header h2 {
    font-weight: 400;
    opacity: 0.85;
    font-size: large;
}
header.site-header-tr{
    height: 75px;
}
/* =========================
   SIDENAV
========================= */
.sidenav {
    position: fixed;
    top: 120px;
    bottom: 50px;
    left: 0;
    width: 170px;
    background: #083a66f5;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    z-index: 1000;
}

.sidenav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidenav a:hover {
    background: rgba(255,255,255,0.08);
    color: #C4161C;
}

/* =========================
   MAIN CONTENT
========================= */
main {
    max-width: 1200px;
    margin-left: 14%;
    padding: 2rem 3rem;
    flex: 1;
    margin-top: 9%;
}

/* Card-style sections */
main > section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    overflow: auto;
}
#Dfer {
    width: 100%;
    display: flex;
    justify-content: center;   /* horizontal center */
    align-items: center;       /* vertical center */
    max-width: 100vh;
    overflow: visible;
}

#WorkoutDisp {
    width: 100%;
    border-collapse: collapse;
}

#WorkoutDisp th,
#WorkoutDisp td {
    padding: 8px;
    text-align: center;
}

/* Make inputs fill their cell */
#WorkoutDisp input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

/* Make table scroll instead of breaking layout */
#Dfer {
    overflow-x: auto;
}
#Dfer button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 10px;
}
/* Typography rhythm */
main h2,
main h3 {
    margin-bottom: 0.75rem;
}
section.PDF{
    text-align: center;
    height: 1000px;
}
main p {
    margin-bottom: 1.5rem;
}
#WorkoutDisp{
    justify-content: center;
    align-content: center;
    margin: 0 auto;
}

/* =========================
   PROJECT GRID
========================= */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Project cards */
.project {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    background: #f4f4f4;
    padding: 1.5rem;
    border-radius: 6px;

    text-decoration: none;
    color: inherit;
    cursor: pointer;

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Project title link */
.foxhole {
    color: #000;
    text-decoration: none;
}

.foxhole:hover {
    color: #C4161C;
}

h3.TheHeadline {
    text-align: center;
    font-style: italic;
}
.site-header {
    padding: 1rem;
}

.brand {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.brand h1 {
    margin: 0;
    font-size: 2rem;
}

.tagline {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
}

p.cite{
    text-align: center;
    font-style: italic;
}
.headline{
    text-align: center;
    font-style: italic;
}
.equation {
  font-size: 26px;
  margin-top: 10px; 
  transform: scale(0.7);   /* 0.8 = 80% size */
    transform-origin: left top;
}
.card_eq{
    font-size: 26px;
   
}
/* =========================
   TECH TAGS
========================= */
.tech {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}
#Map {
    height: 600px;   /* adjust as you like */
    z-index: 1;
}

#map {
    height: 90%;
    width: 100%;
    z-index: 2;
}

.tech li {
    background: #ddd;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
div.list{
    text-align: left;
}
li {
    list-style: none;
}
ul {
    display: inline-block;
    text-align: left;
    margin-left: 40px; /* tweak this value */
}
.contact {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.list{
    list-style: circle;
}
.contact-info ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
li.trt{
    list-style: circle;
}

.contact-image {
    width: 140px;
    border-radius: 50%;
    border: 4px solid #083A66;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    margin-left: auto;
}


.contact a {
    color: #083A66;
    text-decoration: none;
    font-weight: 500;
}

.contact a:hover {
    color: #C4161C;
    text-decoration: underline;
}
.contact h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #083A66;
}
#contact {
    background: #fff;
    padding: 2rem 3rem;
    border-radius: 12px;
}

/* =========================
   FOOTER
========================= */
footer {
    background: #083A66;
    color: #fff;
    text-align: center;
    padding: 1rem;
    height: 4.9%;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    font-size: 0.85rem;
    position: fixed;
}

.nav-toggle {
    display: none;
}

/* Jobs table */
.jobs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.jobs-table th,
.jobs-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.jobs-table th {
    background-color: #f4f4f4;
}

.jobs-table tr:hover {
    background-color: #f9f9f9;
}

.jobs-table a {
    color: #007bff;
    text-decoration: none;
}

.jobs-table a:hover {
    text-decoration: underline;
}
/* Latest session section */
#Tab {
    width: 100%;
}

/* Make latest session table scrollable on small screens */
#jobs-container {
    width: 100%;
    overflow-x: auto;
}

/* Style the generated table */
#jobs-container table {
    width: 100%;
    min-width: 500px;   /* prevents ugly squashing */
    border-collapse: collapse;
}

/* Better spacing */
#jobs-container th,
#jobs-container td {
    padding: 8px;
    text-align: center;
}
#WorkoutDisp input {
    font-size: 16px;
}
/* Smaller text on very small screens */
@media (max-width: 600px) {
    #jobs-container th,
    #jobs-container td {
        font-size: 0.85rem;
        padding: 6px;
    }
}
@media (max-width: 900px) {
    header {
        height: 72px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-size: x-large;
    }
    h1.brand {
        margin: 0;
        line-height: 1;
        position: relative;
        top: 1px;
        font-size: x-large;
    }
    .tagline{
        font-size: small;
    }
    h2.Head{
        display: none;
    }
    .contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-image {
        margin-top: 1rem;
    }
    .sidenav {
        width: 100%; /* switch from % to fixed width */
    }

    .sidenav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
    .nav-toggle {
        display: block;
        position: fixed;
        top: 36px;                  /* center of header */
        transform: translateY(-50%); /* half of button height */

        left: 1rem;
        z-index: 1100;
        background: #083a66;
        color: #fff;
        border: none;
        padding: 0.6rem 0.8rem;
        font-size: 1.4rem;
        border-radius: 6px;
        cursor: pointer;
    }

    .sidenav {
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        padding: 4rem 1rem 1rem;
        transform: translateY(-100%);
        transition: transform 0.25s ease;
        z-index: 3;
    }

    .sidenav.open {
        transform: translateY(0);
    }

    .sidenav a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        top: 9%;
    }
    main {
        margin-left: 0;
        padding: 0.05;
        margin-top: 82px;
    }
    main > section {
        margin-left: 0;
        margin-right: 0;
    }
    #Map {
        height: 600px;   /* adjust as you like */
        z-index: 1;
    }

    #map {
        height: 85%;
        width: 100%;
        z-index: 2;
    }
    header.site-header-tr{
    height: 45px;
    }
}

