*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; 
    width: 100%; 
}

html {
    position: fixed;
    width: 100%;
    height: 100vh;
}

body {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100vh;
    background-image: url('./bilder/patrick-bateman-4.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
}

a:hover {
    color: red;
    transition: color 0.2s ease-in;
}

header {
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 3rem;
    width: 100%;
    box-sizing: border-box;
    user-select: none;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

header strong {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

article {
    display: flex;
    margin: 2rem 5rem;
    flex-grow: 1;
    height: auto;
    max-height: 60vh; 
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
}

.om-mig {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    flex: 1 1 50%;
    overflow-y: hidden; /* Går att byta till auto om jag vill lägga in mer content */
}

.om-mig h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.om-mig ul {
    padding-left: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

article img {
    flex: 1 1 50%;
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.7rem 1rem;
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    user-select: none;
}

footer a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer em {
    font-style: normal;
    color: #666;
}

@media (max-width: 900px) {
    html, body {
        position: static;
        height: auto;
        overflow-x: hidden; 
        overflow-y: auto;
        width: 100%; 
        max-width: 100vw; 
    }
    body {
        background-position: top center;
        background-size: cover;
    }
    article {
        flex-direction: column;
        margin: 1rem;
        max-height: none;
    }
    .om-mig, article img {
        flex: none;
        width: 100%;
        max-height: none;
        padding: 1rem;
    }
    .om-mig ul {
        font-size: 1rem;
    }
    header h1 {
        font-size: 2rem;
    }
    header strong {
        font-size: 1rem;
    }
    footer {
        flex-direction: column;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
}

@media (max-width: 500px) {


    header h1 {
        font-size: 1.5rem;
    }
    .om-mig h2 {
        font-size: 1.5rem;
    }
    .om-mig ul {
        font-size: 0.9rem;
    }
    footer {
        font-size: 0.8rem;
    }
}
