
body, head{
    background-color: white;
    font-family: Arial, Helvetica, sans-serif;
    color: black;
    margin: 0;
    padding: 0;
}

/* header styles */
header{
    background-color: transparent;
    color: black;
    padding: 14px 16px;
}

header h1{
    margin: 0;
    font-size: 18pt;
    font-weight: bold;
    text-shadow: 2px 2px 2px grey;
}

/* navigation styles */
nav{
    display: block;
    background-color: #0078d7;
    position: sticky;
    top: 0;
    z-index: 100;
    color: white;
    font-size: 12pt;
    font-family: Arial, Helvetica, sans-serif;
    padding: 14px 16px;
    border: 1px solid #00436a;
    border-radius: 8px;
    margin-top: 6px;
    margin-bottom: 12px;
}

nav ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

nav ul li{
    margin-right: 8px;
}

nav ul li a{
    text-decoration: none;
    color: white;
    background-color: #00436a;
    padding: 7px 8px;
    text-shadow: 2px 2px 2px grey;
    text-align: center;
    display: block;
    border-radius: 4px;
}

nav ul li a:hover{
    background-color: #005fa3;
    text-decoration: underline;
}

/* container layout */
.container{
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* section heading styles */
section h2{
    background-color: transparent;
    color: black;
    font-size: 16pt;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    border-bottom: 1px solid lightgrey;
    margin-top: 0;
    margin-bottom: 8px;
}

/* tertiary heading styles */
h3{
    background-color: transparent;
    color: black;
    font-size: 12pt;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
}

/* emphasis text */
.emphasisText{
    color: rgb(128, 0, 0);
    font-style: italic;
}

/* card component styles */
.card{
    background-color: #ffffff;
    color: black;
    padding: 12px 12px;
    border: 1px solid #00436a;
    border-radius: 8px;
    margin: 10px 12px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

.card:hover{
    background-color: #eef6ff;
    border: 1px solid #005fa3;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    opacity: 1;
}

.card h2{
    background-color: transparent;
    color: #00436a;
    font-size: 16pt;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    margin: 0 0 8px 0;
    cursor: pointer;
    text-decoration: underline;
}

.card img{
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.8rem;
    border-radius: 6px;
}

/* collapsible content behaviour */
.content{
    display: none;
}

.content.open{
    display: block;
}

/* table wrapper */
.table-wrapper{
    overflow-x: auto;
    margin: 2rem 0;
}

/* table styles */
table{
    margin: auto;
    border-collapse: collapse;
    width: auto;
    text-align: center;
}

tr{
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

th{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    padding: 0.6rem;
}

td{
    font-style: italic;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    padding: 0.6rem;
}

/* form styling */
form{
    background-color: white;
    font-family: Arial, Helvetica, sans-serif;
    margin: 10px;
    padding: 12px;
    border: 1px solid grey;
    border-radius: 8px;
}

fieldset{
    background-color: rgb(250, 250, 250);
    border: 1px solid grey;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}

form label{
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

form input,
form select,
form textarea{
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif;
}

.buttonbox{
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    gap: 1rem;
}

/* footer styles */
footer{
    background-color: white;
    color: black;
    font-size: 10pt;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: underline;
    text-align: center;
    padding: 1rem;
}

footer a:link,
footer a:hover,
footer a:focus{
    color: black;
}

footer a:visited{
    color: blue;
}

footer a:active{
    color: red;
}

/* two-column layout */
.two-column{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.two-column > *{
    flex: 1 1 45%;
}

@media (max-width: 768px){
    .two-column{
        flex-direction: column;
    }
}

/* back to top button */
#toTop{
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.6rem 0.8rem;
    background: black;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 200;
}

#toTop.show{
    opacity: 1;
    visibility: visible;
}

/* toggle button styles */
.toggle-btn{
    background-color: #0078d7;
    color: white;
    border: 1px solid #00436a;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.toggle-btn:hover{
    background-color: #005fa3;
}

/* article width constraint */
article{
    max-width: 900px;
    margin: 0 auto;
}

/* figure image styling */
figure img{
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0.6rem;
}

/* print layout */
@media print{
    nav,
    .no-print{
        display: none !important;
    }
    body{
        background: white;
        color: black;
    }
    .card{
        box-shadow: none;
        border: 1px solid #ccc;
    }
}