/* Styling website thomashaighton.com

Color palette:

purple:     rgb(198, 149, 198);
green:      rgb(153, 199, 148);
grey:       rgb(166, 172, 185);
orange:     rgb(249, 174, 88);
red:        rgb(235, 95, 102);
blue:       rgb(94, 141, 188);
turqoise:   rgb(95, 180, 180);

background: rgb(48, 55, 65);
dark bg:    rgb(33, 38, 42);
line dash:  rgb(61, 68, 78);
*/

body {
    background-color: rgb(48, 55, 65);
    color: white;
    font-family: 'Noto', 'Arial', 'sans-serif';
}

p {
    line-height: 1.3;
}

li {
    line-height: 1.8;
}

/* hyperlinks styling */
a:link {
    color: rgb(197, 149, 197);
}

a:visited {
    color: lightgrey;
}

a:hover {
    color: rgb(153, 199, 148);
}

a:active {
    color: rgb(235, 95, 102);
}


/* Unordered list blue circle bullets */
ul {
    list-style-type: circle;
}

ul>li {
    color: rgb(94, 141, 188)
}

ul>li>span {
    color: white;
}


/* Social Media Links */
#linkslist li {
    font-size: 20px;
    display: inline;
    margin-right: 15px;
    list-style-type: none;
    padding: 0;
}

.email {
    display: inline;
    margin-left: 15px;
}

#links {
    border: 1px dashed rgb(61, 68, 78);
}


/* intro text met image */
.container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    /* Ensures the text and image are aligned in height */
    justify-content: space-between;
    gap: 20px;
    max-width: 100%;
}

.text-container {
    flex: 1;
}

.text-container h1 {
    font-size: 24px;
    margin-bottom: 10px;
}

.text-container p {
    font-size: 18px;
    line-height: 1.6;
}

.image-container {
    flex: 1;
    display: flex;
    align-items: stretch;
    /* Stretch the image to match the text height */
}

.image-container img {
    width: 100%;
    height: 100%;
    /* Make the image take up the full height of the container */
    max-width: 400px;
    /* Maximum width for the image */
    max-height: 500px;
    /* Maximum height for the image */
    object-fit: cover;
    /* Maintain aspect ratio and cover the container */
    border: 1px solid #ccc;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        /* Stack text and image on smaller screens */
        align-items: center;
        /* Center items */
    }

    .text-container,
    .image-container {
        width: 100%;
        /* Make text and image take up full width */
        text-align: center;
    }

    .image-container img {
        height: auto;
        /* Reset height on small screens */
        width: 100%;
        /* Make sure the image scales properly */
        max-width: 100%;
        /* Ensure image takes up the full width on mobile */
    }
}