/* CSS Reset */
body, header, nav, main, footer, img, h1, ul {
    
    margin: 0;
    padding: 0;
    border: 0;
}

img { 
    max-width: 100%; display: block; 
}

.tab-desk { 
    display: none; 
}

body {
    font-family: 'Raleway', serif;
    text-align: center;
    background-image: url("../images/simple.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #fde5d8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    font-size: 1.5em;
    color: #373684;
}

h1, h2, h3, h4 { 
    font-family: 'Bitter', serif; 
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav li {
    display: inline-block;
    font-size: 1.1rem;
}

nav a {
    color: #2b2b2b;
    text-decoration: none;
    display: inline-block;
    padding: 0.5em 0.9em;
    border-radius: 8px;
    transition: background-color .18s ease, color .18s ease, transform .05s ease;
    outline: none;
}

nav a:visited {
    color: #3a2f2a;
}

nav a:hover,
nav a:focus-visible {
    background-color: #e5e9fc;
    color: #373684;
    box-shadow: 0 0 0 2px rgba(55,54,132,.12) inset;
}

footer {
    margin-top: auto;
    padding: 10px 0;
    text-align: center;
}

.homepageleft {
    display: block;
    margin: 0 auto;
    width: 60%;
    border-radius: 10px;
}

.homepageright {
    width: 120px;
    display: block;
    margin: 20px auto;
}

.home-images {
    text-align: center;       
    margin: 20px 0; 
}

.home-images img {
    display: inline-block;
    width: 250px;              
    height: auto;              
    margin: 0 10px;        
    border-radius: 10px;       
}

.resources img {
    width: 400px;
    display: block;
    margin: 0 auto 20px;
}

/* Form Styles */
form {
    max-width: 500px;
    margin: 20px auto;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

button, input[type="submit"] {
    background-color: #373684;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}

button:hover, input[type="submit"]:hover {
    background-color: #4a49a1;
}

/* Gallery Style Rules */
.gallery img {
    width: 200px;
    margin: 10px;
    border-radius: 8px;
}

/* Video Style Rules */
video {
    max-width: 90%;
    display: block;
    margin: 20px auto;
}

/* Contact Page Style Rules */
.intro {
    max-width: 700px;
    margin: 0 auto 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 25px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.08);
    text-align: left;
}

.contact-form label {
    font-weight: 600;
    margin-top: 12px;
    display: block;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
}

.contact-form input[type="submit"] {
    background-color: #373684;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.contact-form input[type="submit"]:hover {
    background-color: #4a49a1;
}

.radio-label {
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* About Me Style Rules */
.info-table {
    margin: 20px auto;
    border-collapse: collapse;
    width: 60%;
    background: rgba(255, 255, 255, 0.7);
}

.info-table th, .info-table td {
    border: 1px solid #ccc;
    padding: 10px;
}

.info-table caption {
    font-weight: bold;
    margin-bottom: 10px;
}

/* Sitemap Style Rules */
.sitemap-list {
    max-width: 500px;
    margin: 0 auto;
    padding: 0;
    list-style-type: none;
}

.sitemap-list li {
    margin: 10px 0;
    font-size: 1.1rem;
}

.sitemap-list a {
    color: #2b2b2b;
    text-decoration: underline;
}

.sitemap-list a:hover {
    color: #373684;
}

/* Resources Page Style Rules */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    max-width: 800px;
    margin: 0 auto 20px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 6px 0;
        display: block;
    }
}

@media screen and (max-width: 900px) {
    .image-row img {
        width: 45%;
  }
}

@media screen and (max-width: 600px) {
    .image-row {
        flex-direction: column;
        align-items: center;
  }

    .image-row img {
        width: 80%;
        margin-bottom: 15px;
  }
}