﻿/* CSS Variables for Colors and Reusable Values */
:root {
    --white: #FFFFFF;
    --black: #000000;
    --primary-red: #c23035;
    --poppy-red: #F44336;
    --secondary-blue: #b7cee8;
    --dark-red: #8b0404;
    --light-yellow: #fffed7;
    --light-gray: #D7DEEA;
    --medium-gray: #777;
    --light-blue: #eff7ff;
    --dark-gray: #5d5d5d;
    --light-gold: #FFF9C4;
    --light-border: #DCC19A;
    --form-input-max-width: 500px;
}

/* Base Styles */
body, html {
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
}

body > form {
    height: 95%;
    width: 100%;
}
h3{
    color:var(--primary-red)
}
.footer {
    width: 100%;
}

.wizardLogo {
    float: right;
    margin-right:50px;
    font: italic 0.75em Georgia, serif;
}

.bg {
    background-image: url("/Images/Background/bg-soldier.jpg");
    height: 100%;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.body-content {
    width: 98%;
    height: 100%;
    padding: 0 15px; /* Shorthand padding */
}

li {
    margin: 4px 20px;
    display: list-item;
}

input, select, textarea {
    max-width: var(--form-input-max-width);
    padding: 4px;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    text-align: left;
    height: 400px;
}

.flex-item-left {
    padding: 10px;
    flex: 40%;
    height: 100%;
}

    .flex-item-left h3 {
        color: var(--primary-red);
    }

    .flex-item-left div {
        margin: 80px 0;
    }

.flex-item-right {
    padding: 10px;
    flex: 45%;
    height: 100%;
}

/* Base Button Styles */
.base-button {
    border: solid 1px var(--light-border);
    color: var(--light-yellow);
    cursor: pointer;
}

.btn {
    @extend .base-button;
    background-color: #6a6dfc;
    margin-left: 10px;
}

    .btn > hover {
        background-color: #34a2f5;
        color: var(--white);
    }

.delBtn {
    @extend .base-button;
    border-color: var(--poppy-red);
    color: red;
}

/* Search and Contact Box Styles */
.searchBox, .contactBox {
    border: solid 1px var(--light-border);
    display: block;
    padding: 10px;
    margin: 70px auto;
    width: 500px;
}
.searchBox input[type=submit], .contactBox input[type=submit], .smallSearchBox input[type=submit] {
    float: left;
    margin: 10px 0 0 140px;
    width: 20%;
    padding: 10px;
    background: var(--primary-red);
    color: white;
    font-size: 17px;
    border: 1px solid grey;
    cursor: pointer;
}
.smallSearchBox input[type=submit] {
    padding:0;
    float:right;
}
.smallSearchBox >span {
    padding: .5em;
}
.contactBox {
    margin: 0px 200px;
}

table {
    margin-top: 50px; /* Ensure 50px spacing from the top */
}

.contactBox input {
    width: 80%;
    margin: 10px 0;
}

.contactBox input[type=submit] {
    width: 30%;
}

/* Grid Styles */
.Grid {
    border: solid 2px var(--secondary-blue);
    width: 100%;
    position: static;
    margin-bottom: 30px;
}

    .Grid td {
        padding: 8px;
        border: solid 1px var(--secondary-blue);
    }

    .Grid th {
        padding: 10px;
    }

.Gridheader {
    background-color: var(--primary-red);
    color: var(--white);
    border: none 0 transparent;
    height: 25px;
    text-align: center;
    font-size: 16px;
}

    .Gridheader a {
        color: var(--white);
        text-decoration: none;
    }

        .Gridheader a:hover {
            color: var(--light-gray);
            text-decoration: none;
        }

.Gridrows {
    font-size: 14px;
    color: #000;
    min-height: 25px;
    text-align: left;
}

    .Gridrows:hover {
        background-color: var(--light-blue);
        color: var(--primary-red);
        text-align: left;
    }

.selectedrow {
    background-color: #ff8000;
    color: var(--white);
    font-weight: bold;
    text-align: left;
}

/* Other Styles */
.smallSearchBox {
    padding: 10px;
    border: solid 1px var(--light-border);
    display: block;
}

    .smallSearchBox input {
        height: 30px;
        border: solid 1px var(--medium-gray);
        display: inline-block;
    }

.tableheader {
    font-size: 1.5em;
    color: #BA301D;
    font-weight: bold;
}

.info {
    color: red;
}

.activeLink {
    border: solid 1px red;
    height: 48px;
    background-color: #eee;
}

.header {
    margin: 100px 450px 0;
    font-size: 1.8em;
    font-weight: bold;
    border: solid 2px #ccc;
    border-bottom: solid 6px rgba(0,0,0,0.04);
    background: rgba(0,0,0,0.04);
    padding: 0 14px;
}

.diggerHeader {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--dark-red);
}

.leftText {
    text-align: left;
}

.centerText {
    text-align: center;
}

.rightText {
    float: right;
    text-align: right;
}

.diggerDetailsRow {
    clear: both;
    margin-top: 10px;
    width: 100%;
}

.diggerPictureBlock {
    float: left;
    margin-right: 20px;
}

.DetailsImage, .GraveImage {
    width: 200px;
    max-width: 200px;
    margin: 4px 0;
}

.FormTable, .InvestigationDetails {
    width: 80%;
}

    .FormTable td:first-child, .InvestigationDetails td:first-child {
        width: 20%;
        font-weight: bold;
        text-align: right;
        padding: 4px;
        vertical-align: top;
    }

    .FormTable td:nth-child(2), .InvestigationDetails td:nth-child(2) {
        padding-left: 10px;
    }

.noResults {
    margin: 0 100px 0 300px;
    font-size: 1.2em;
    padding: 10px;
    border: solid 2px red;
}

.newsContainer {
    width: 98%;
    display: flex;
    flex-direction: column;
}

.newsItem {
    margin: 1em 0;
}

.newsTitle {
    font: bold 1em sans-serif;
}

.newsContent {
    margin: .5em;
}

.newsItem > img {
    margin: .5em;
    float: left;
}

.imgSmall {
    width: 5em;
}

.imgMedium {
    width: 10em;
}

.imgLarge {
    width: 20em;
}

.myrow p {
    width: 96%;
    font-size: 1.1em;
    padding: 10px;
    color: var(--black);
}

.myCol, .myrow:after {
    width: 100%;
}

.myCol1 {
    float: left;
    width: 30%;
    padding-right: 5px;
    text-align: right;
}

.myCol2 {
    float: left;
    width: 65%;
}

.myrow:after {
    content: "";
    display: table;
    clear: both;
}

.msg {
    display: block;
    font-size: 1.2em;
    color: red;
    padding: 20px;
    text-align: center;
}
/*Responsive section*/
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 30px;
        height: 15em;
        background-image: url("/Images/Background/poppybanner.png");
        background-size: cover;
        background-position: left top;
        padding: 10px 20px;
    }

    .jumbotron h1 {
        color: var(--dark-gray);
        font-size: 2em;
        margin: 0;
    }

    .detail_table {
        min-width: 750px;
    }

    .body-content {
        padding: 0;
        margin: 10px;
    }
}

.navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus {
    background-color: var(--medium-gray);
    border-color: var(--white);
}

.ToUpper {
    text-transform: capitalize;
}

.detail_table {
    border: solid 1px var(--dark-red);
}
/* Navigation Bar */
.nav {
    padding-top: 25px;
}

.navbar {
    background-color: var(--secondary-blue);
    height: 100px;
    border-bottom: none;
}

.navbar-brand {
    background: url("/Images/THPBanner.png") no-repeat left;
    height: 80px;
    width: 500px;
    background-size: contain;
}

.navbar-brand b {
    position: relative;
    margin-left: 226px;
    top: 48px;
    color: var(--dark-gray);
}

a.navbar-brand {
    font-size: 1em;
    color: var(--primary-red);
}
.custom-navbar {
    background-color: var(--light-blue);
    padding: 10px 0;
    font-family: Arial, sans-serif;
    border: 1px solid var(--light-gray);
    border-right:0;
    border-left:0;
    
}
.custom-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Makes the list horizontal */
    justify-content: center; /* Aligns menu items horizontally */
    align-items: center; /* Centers vertically */
}
.custom-nav li {
    margin: 0 15px;
}
.custom-nav li a {
    text-decoration: none;
    color: var(--black);
    padding: 5px 10px;
    border-radius: 5px; /* Optional rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
}
.custom-nav li a:hover {
    background-color: var(--primary-red); 
    color: var(--white);
}
.custom-nav li a:active {
    background-color: var(--primary-red);
    color: var(--white);
}

