* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #1e3a2f;
    color: #ecf0f1;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 4px solid #7B9087;
    max-height: 148px;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

header p {
    margin: 10px 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

nav {
    background-color: #456558;
    padding: 15px 0;
    text-align: center;
}

nav a {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a:focus {
    color: #ffffff;
    background-color: #1e3a2f;
    text-decoration: none;
}

main {
    flex: 1;
    max-width: 900px;
    width: 95%;
    max-height: 625px;
    margin: 30px auto;
    padding: 30px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    border-left: 5px solid #7B9087;
    box-sizing: border-box;
    overflow: hidden;
}

main h2 {
    color: #1e3a2f;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

main li {
    list-style-position: inside;
}

.section {
    max-width: 100%;
    max-height: 100%;
}

.figures-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.outer {
    height: 320px;
    background-color: #7f8c8d;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #ecf0f1;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.middle {
    width: 220px;
    height: 220px;
    background-color: #27ae60;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-weight: 600;
}

.inner {
    width: 120px;
    background-color: #34495e;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    padding: 5px;
}

.media-img {
    max-width: 30%;
    height: auto;   
    border-radius: 8px;
    margin: 20px auto; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #bdc3c7;
    display: block;
}

main a {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
}

main a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #456558;
    color: #bdc3c7;
    font-size: 0.9rem;
    border-top: 1px solid #34495e;
}

footer a {
    color: #27ae60;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 800px) {
    nav a {
        display: block;
        margin: 5px 0;
        padding: 10px;
    }

    .figures-container {
        flex-direction: column;
        align-items: center;
    }

    .outer {
        width: 90%;
        height: 280px;
        margin-bottom: 20px;
    }

    .middle {
        width: 180px;
        height: 180px;
    }

    .inner {
        width: 100px;
        font-size: 0.8rem;
        padding: 8px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    main h2 {
        font-size: 1.5rem;
    }

    main {
        padding: 15px;
        margin: 20px auto;
        width: 95%;
    }

    .media-img {
        max-width: 30%;
        height: auto;
    }
}