* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Verdana, sans-serif;
    color: #28396c;
    background-color: #B5E18B;
    line-height: 1.6; 
    margin: 0;
    padding: 0;
}

main {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 10px;
    border-radius: 8px;
}

header {
    background: #28396c;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 10px solid #eae6bc;
}

.hero-container {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
}

.hero-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.hero-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 5px 4px 5px black;
}

h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 1000; 
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

section {
    margin-bottom: 40px;
    padding: 10px 0;
}

h2 {
    color: #454545;
    border-bottom: 2px solid #28396c;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 1.2rem;
}

h3 {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.hobby-list {
    list-style: none;
    padding: 0;
}


.hobby-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid lightgray;
    border-radius: 8px;
    box-shadow: 2px 4px 8px black;
}


.hobby-image {
    flex: 0 0 250px;
    max-width: 100%;
}

.hobby-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}


.hobby-text {
    flex: 1; 
    min-width: 250px;
}

p {
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

ul {
    padding-left: 25px; 
}

nav {
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

nav a {
    font-size: 14pt;
    text-decoration: none;
    color: #28396c;
    font-weight: bold;
    padding: 12px 24px;
    border: 2px solid #28396c;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 0 1 auto;
    text-align: center;
    min-width: 150px;
}

nav a:hover {
    background-color: #28396c;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px black;

}
.special-font {
    font-size: 14pt;
    font-family: "Playwrite NO", cursive;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    text-decoration: none;
    color: #28396c;
    font-weight: bold;
    padding: 10px 20px;

}

figure {
    margin-left: 0;
    margin-right: auto;
    max-width: 100%;
    display: table;
}

figure img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

figcaption {
    text-align: left;
    font-size: 0.9rem;
    margin-top: 8px;
    color: #454545;
}

footer {
    background: #F0FFC2;
    color: #454545;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    font-size: 0.9rem;
    border-top: 5px solid #eae6bc;
}

aside {
    font-style: italic;
    margin-top: 15px;
    opacity: 0.8;
}

/* New responsive */

@media (max-width: 1024px) {
    main {
        max-width: 95%; 
    }
    .hobby-image {
        flex: 0 0 200px; 
    }
}


@media (max-width: 600px) {
    header {
        padding: 20px 10px;
    }
    
    
    .hobby-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .hobby-image {
        width: 100%;
    }

    
    nav a {
        display: none;
    }
    
    nav a:nth-last-child(-n+4) { 
        display: block; 
    }
}