/* set some colour variables */
:root{
    /* main page */
    --primary: #333;
    --secondary: #fff;
    --button: #000;
    --subtext: #888888;

    /* project cards */
    --project-background: #dadada;
    --project-image-shadow: #aaaaaa;
    --link: rgb(48, 78, 211);
}

/* good default font */
body{
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--primary);
    background-color: var(--secondary);
}

/* header styles */
header{
    background-color: var(--primary);
    color: var(--secondary);
    padding: 1em;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}

header div.container{
    display: flex;
    align-items: center;
    max-width: max-content;
    min-width: min-content;
    margin: 0 auto;
}

header img.logo{
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 1em;
    vertical-align: middle;
    display: inline-block;
}

/* nav menu styles */
nav{
padding: 0.1em;
}

nav ul{
display: flex;
justify-content: space-around;
list-style: none;
margin: 0;
padding: 0;
}

nav ul a{
text-decoration: none;
text-align: center;
color: var(--secondary);
background-color: var(--button);
border-radius: 10px;
padding: 15px;
width: 35%;
transition: all 0.15s ease-in-out;
}

nav ul a:hover {
    color: #000;
        background-color: var(--project-background);
        box-shadow: 0 0 10px var(--button);
        border-radius: 5px;
        transition: all 0.15s ease-in-out;
}

/* Main Styles */
main{
    padding: 1em 0.5rem;
    max-width: 1800px;
    margin: 0 auto;
    animation: fadeIn 1s;
}

/* Small loading animation to let the pictures load in */
@keyframes fadeIn {
    0% {opacity: 0;}
    50% {opacity: 0;}
    100% {opacity: 1;}
  }

main h2{
    display:flex;
    align-items: center;
}

main h2 img{
    /* TODO changing the height of the actual image file is probaby a good idea */
    max-height: 50px;
    padding:5px;
}
main h2 img:hover {
    transform: scale(1.1);
  }



.about-me{
    max-width: 1280px;
    margin: 0 auto;
}

.about-me p{
    padding: 0 1rem;
    line-height: 1.5;
}

/* project card styling */
.project{
    min-height: 650px;
    max-width: 640px;
    margin: 1em;
    margin: 0 auto;
    padding: 1.5em;
    background-color: var(--project-background);
    border-radius: 10px;
    transition: all 0.05s ease-out;
}

p.project-compatiblity{
    text-align: center;
    font-size: 1.2rem;
    margin: 0;
    padding: 0;
    margin-bottom: 0.5em;
    color: var(--subtext);
}

.project h3 a{
    font-size: 1.3rem;
    color: var(--link);
    margin: 0;
    padding: 0;
    text-align: center;
    margin-bottom: 0.5em;
}

.project h3 a:visited{
    color: var(--link);
}

.project img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 15px var(--project-image-shadow);
}

.project img:hover{
    box-shadow: 0 0 0px var(--project-image-shadow);
    transition: all 0.15s ease-out;

}

.project:hover{
    box-shadow: 0 0 20px var(--project-image-shadow);
    transition: all 0.15s ease-out;
    scale: 1.025;
}

footer .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: max-content;
    margin: 0 auto;
}

.project-container{
    text-align: center;
    margin: 1rem 0;
}

.project-container-container{
    margin: auto;
    /* max-width: 1600px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.project-description{
    text-align: left;
}

/* contact form*/
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
label, input, textarea {
    display: block;
    margin-bottom: 10px;
}
input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}
textarea {
    min-height: 125px;
    resize: vertical;
}
input[type="submit"] {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
}
input[type="submit"]:hover {
    background-color: #2980b9;
}

/* media queries */