/* Import custom font */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300;400;700&display=swap');

@font-face {
    font-family: 'CustomHeading';
    src: url('https://fonts.gstatic.com/s/robotoslab/v34/BngbUXZYTXPIvIBgJJSb6s3BzlRRfKOFbvjojISmb2Rm.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

/* Container to center all content */
#container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #f9f9f9;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 100vh;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #e8e8e8;
    line-height: 1.6;
}

/* Header styling */
header {
    background: linear-gradient(135deg, #2c3e50, #4a6741);
    color: white;
    padding: 20px;
    text-align: center;
}

#title {
    color: #fff;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    text-shadow: 2px 2.5px 1px #333333;
    margin: 0 0 20px 0;
    font-size: 2.5em;
}

/* Navigation styling with 5 different states */
nav ul {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

nav li {
    -webkit-align-items: center;
    -ms-flex-pack: center;
    align-items: center;
    list-style: none;
    margin: 0.5em;
}

/* 5 different hyperlink states for nav */
nav a:link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav a:visited {
    color: #bdc3c7;
    background: rgba(255,255,255,0.05);
}

nav a:hover {
    color: #2c3e50;
    background: #ecf0f1;
    border-color: #ecf0f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

nav a:active {
    color: #fff;
    background: #e74c3c;
    border-color: #e74c3c;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

nav a:focus {
    outline: 3px solid #f39c12;
    outline-offset: 2px;
    background: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* Main section styling */
#main {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    width: 100%;
    background-color: #fff;
    min-height: 600px;
}

.column1 {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border-right: 1px solid #5D5D5D;
    padding: 20px;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

.column2 {
    -webkit-flex: 2;
    -ms-flex: 2;
    flex: 2;
    border-right: 1px solid #5D5D5D;
    padding: 20px;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.column3 {
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 20px;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
}

/* Custom font for h2 headers */
h2 {
    font-family: 'CustomHeading', 'Roboto Slab', serif;
    text-align: center;
    text-decoration: underline;
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-decoration-color: #4a6741;
    text-underline-offset: 8px;
}

/* Image styling */
img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Text styling */
p {
    color: #444;
    font-size: 1em;
    margin-bottom: 15px;
    text-align: justify;
}

/* Footer styling */
footer {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: space-around;
    -ms-flex-pack: distribute;
    justify-content: space-around;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 30px 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-media {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-media img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.social-media img:hover {
    transform: scale(1.2);
    filter: brightness(0) invert(1) sepia(1) hue-rotate(200deg);
}

.contact-info {
    text-align: right;
}

.contact-info p {
    margin: 5px 0;
    color: #ecf0f1;
    text-align: right;
}

/* Media Queries */
@media screen and (max-width: 1000px) {
    #container {
        width: 100%;
    }
}

@media screen and (max-width: 700px) {
    #main {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .column1, .column2, .column3 {
        border-right: none;
        border-bottom: 1px solid #5D5D5D;
        padding: 15px;
    }
    
    .column3 {
        border-bottom: none;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.25em 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info p {
        text-align: center;
    }
    
    #title {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
}