:root {
    --main-color: #3498db;
    --secondary-color: #f5fad3;
    --accent-color: #2c3e50;
    --text-color: #494b4d;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

header, footer {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    text-align: center;
    width: 100%;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 10px;
}

a {
    color: var(--main-color);
    text-decoration: none;
}

a:hover{
    color: var(--secondary-color);
}

.gallery {
    align-items: center;
    text-align: center;
    background-color: #58867f1f;
    margin-top: 20px;
    margin-bottom: 10px;
    border-radius: 20px;
}

.armypage {
    color: #2c3e50;
}

.armypage:hover{
    color: #3498db;
    text-decoration: underline overline;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 20px;
    align-items: center;
}

.art {
    padding: 20px;
    text-align: center;
}
.art img{
    width: 100%;
    max-width: 300px;
    transition: transform 0.3s ease-in-out, background-color 0.3s ease;
    cursor: pointer;
}

.art img:hover{
    transform: scale(1.05); /* Scales up the art div when hovered over */
}

h2{
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.container {
    text-align: center;
    color: var(--text-color);
    max-width: 800px; /* Restrains content width */
    margin: auto; /* Centers the container */
    padding: 20px;
    background-color: rgba(15, 67, 122, 0.2); /* Slightly transparent background for the content */
    border-radius: 10px;
}

.profile-photo {
    width: 100px; 
    height: 100px;
    border-radius: 50%; /* circular photo */
    object-fit: cover;
    margin: 10px 0; /* a bit of spacing */
}

#contact h2{
    margin-left: 20px;
}

/* change the grid when the screen is large or smaller then 600px */
@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

form {
    display: flex;
    flex-direction: column;
    margin: 20px;
    padding: 20px;
    background-color: #ecf0f1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Settings for all of the input variations */
input[type="text"],
input[type="email"],
select,
textarea {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
}

button {
    background-color: var(--main-color);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--accent-color);
}

footer {
    margin-top: auto;
    padding: 20px;
    text-align: center;
}

/* Army Pages */

.thumbnail {
    width: 100px; /* Set thumbnail size */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 5px;
    border-radius: 10%;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* Display window for large image when it is clicked */
#enlarged {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ecf0f1;
    height: 70vh;
    width: 70vh;
    margin-top: 20px;
    border-radius: 10px;
}

#display {
    max-width: 90%; /* limit size to avoid overflow */
    max-height: 100%;
}

.notes{
    margin-bottom: 30px;
}

/* Paints */

table {
    width: 80%;
    max-width: 600px;
    margin: auto;
    border-collapse: collapse;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.274);
}

thead {
    background-color: #2c3e50;
    color: #ffffff;
}

th, td {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 2px solid #dddddd;
}

th {
    padding-top: 12px;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background-color: #f5f5f5; /* change color of row when hovered over */
}

td:first-child {
    width: 50px; /* set width for color swatches in first column */
}

/* Short Story Page CSS*/

#story-container{
    margin: 20px;
    border-radius: 10px;
}

#story-container h2{
    text-align: center;
}

.navbar {
    background-color: #006280;
    padding: 10px 20px;
    text-align: center;
    border-radius: 0 0 100px 100px;
    border-top: solid #FAFAD2;
    border:solid #f5fad3;
}

.navbar a {
    color: white;
    font-size: 16px;
    padding: 10px 20px;
    margin: 0 10px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
}

.navbar a:hover {
    background-color: #306b61;
    color: #FFF8DC;
    border-radius: 10px;
}

.story {
    display: none;
    background-color: #FAFAD2;
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.story h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #008080;
}

.story p {
    text-indent: 40px;
    font-size: 18px;
}

/* Neat animation for the story content */
.story {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar a {
        font-size: 14px;
        padding: 8px 16px;
    }

    .story h2 {
        font-size: 20px;
    }

    .story p {
        font-size: 16px;
        text-indent: 20px;
    }
}