html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: #f4f4f4;
    flex-direction: column;
    display: flex;
}

header {
    background: #222;
    color:white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 0 20px;
}

/*Navigation bar*/
header nav ul{
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

header nav ul li a {
    text-decoration: none;
    color: white;
}

header nav ul li a:hover {
    opacity: 0.5;
}

html {
    scroll-behavior: smooth;
}

/*Main body*/
main {
   flex: 1;
}
    /*Add a new project window*/
section {
    background: #fff;
    padding: 1.2rem;
    margin: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

label {
    display: block;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

button {
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #222;
    color: white;
    font-weight: 600;
    margin: 5px 0px;
}

button:hover {
    opacity: 0.9;
}
    /*Dropdown*/
#add-project summary {
    cursor: pointer;
    list-style: none;
    padding-right: 25px;
    position: relative;
}

#add-project summary h2 {
    display: inline-block;
    margin: 0;
}

        /*Add + sign*/
#add-project summary::after {
    content: " ▼";
    position: center;
    right: 0;
    top: 0;
}

        /*Change from arrow down to arrow to the side*/
#add-project details[open] summary::after {
    content: " ▲";
}

    /*Project list*/
.project-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    background: #fafafa;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.3rem;
}

/*Images*/
.project-images {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-image-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/*Image popup*/
.image-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/*The image it-self*/
.image-popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

/*Click area for closing*/
.image-popup.hidden {
    display: none;
}

/*Footer*/
footer {
    background: #222;
    color: white;
    padding: 1px 0;
    margin: 0;
    text-align: center;
}

