/* Põhiseaded ja üldine kehaosa (body) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc; 
    color: #334155;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Veebilehe peamine konteiner */
header, nav, main, footer {
    width: 100%;
    max-width: 650px;
    text-align: center;
}

header {
    margin-bottom: 2rem;
}

/* Pealkiri (h1) */
h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    border-bottom: 3px solid #f472b6; /* Нежная розовая линия */
    display: inline-block;
    padding-bottom: 0.5rem;
}


img {
    width: 420px;
    height: 420px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 6px solid #ffffff;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 1.5rem 0;
    display: flex;
    justify-content: center;
}

nav li {
    width: 100%;
    max-width: 400px;
}

a {
    display: block;
    background-color: #ffffff;
    color: #db2777; 
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 2px solid #fbcfe8; 
    transition: all 0.25s ease;
}

a:hover {
    background-color: #fdf2f8; 
    color: #be185d;
    border-color: #f472b6;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(244, 114, 182, 0.2);
}

/* Sisuosa (main) */
main {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 14px;
    color: #475569;
    font-size: 1.05rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

/* Jalus (footer) */
footer {
    font-size: 0.875rem;
    color: #94a3b8;
    padding-top: 1rem;
}