:root {
    --navbar-color: #274972;
    --background-color: #335a8a;
    --hr-color: #00000034;
    --h1-color: #ffdaa2;
    --navbar-border-color: #ffffffaf;
    --standard-text-color: #000000;
    --white-color: #f5f5f5;
    --content-box-border-color: #9b9b9baf;
    --content-header-text-color: #5e2d00;
    --content-text-date-color: #5e5e5e;
    --green-color: rgb(0, 153, 0);
}
body {
    background-color: var(--background-color);
    font-family: Arial, sans-serif;
    margin: 0px;
    padding: 0px;
}
nav {
    background-color: var(--navbar-color);
    padding-left: 2.5rem;
    padding-block: 1rem;
    border-bottom: 1px solid var(--navbar-border-color);
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}
nav ul li {
    margin-right: 2.5rem;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
}
.logo {
    margin-right: auto;
}
hr {
    border: 0;
    display:block;
    width: 90%;               
    background-color:var(--hr-color);
    height: 1px;
    margin-block: 10px;
}
h1 {
    color: var(--h1-color);
    text-align: center;
    font-size: 16px;
    margin-top: 40px;
    font-family: Arial, Helvetica, sans-serif;
}
h2 {
    color: var(--white-color);
    text-align: center;
    display: block;
    font-size: 30px;
    margin-top: 2rem;
    margin-bottom: 3rem;
    font-family: Arial, Helvetica, sans-serif;
}
p {
    font-family: Arial, Helvetica, sans-serif;
}
div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px;
}
.searchbar-container {
    background-color: var(--white-color);
    display: flex;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 1rem;
}
.searchbar-container input[type="text"] {
    width: 50%;
    padding: 0.5rem;
    font-size: 16px;
    border: 1px solid var(--content-box-border-color);
    border-radius: 5px;
}
#year-filter {
    padding: 0.5rem;
    font-size: 16px;
    border: 1px solid var(--content-box-border-color);
    border-radius: 5px;
    margin-inline: 2rem;
}

.content-boxes {
    display: grid;
    flex-wrap: wrap;
    list-style: none;
    grid-template-columns: repeat(auto-fill, minmax(400px, auto));
    background-color: var(--white-color);
    padding-inline: 4.8rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin: 0px;
    gap: 3rem;
}
.content-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    background-color: var(--white-color);
    width: 400px;
    height: 425px;
    border-radius: 5px;
    border: 1px solid var(--content-box-border-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.content-box:hover {
    transform: translateY(-0.3rem);
}
.content-image {
    width: 100%;
    max-height: auto;
    object-fit: cover;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    aspect-ratio: 3/2;
}
.image-info-container {
    position: absolute;
    width: 100%;
    top: 0;
    background-color: #000000a6;
    text-align: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.image-heading {
    -webkit-text-stroke: 1px #000000;
    margin: 15px;
    color: rgb(255, 255, 255);
    font-size: 22px;
    font-weight: bold;
    text-transform: uppercase;
}
.image-profile-container {
    position: absolute;
    display: flex;
    flex-wrap: wrap-reverse;
    width: 92%;
    justify-content: flex-end;
    gap: 0.5rem;
    bottom: 10.3rem;
}
.image-profile {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    font-weight: bold;
    text-align: center;
}
.content-text-container {
    display: flex;
    align-self: center;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 87%;
}
.text-heading-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-block: 0px;
    margin-bottom: 8px;
    margin-top: 3px;
}
.content-text-heading {
    color: var(--content-header-text-color);
    font-size: 18px;
    font-weight: bold;
    margin: 0px;
}
.content-text-date {
    margin: 0px;
    color: var(--content-text-date-color);
    font-size: 14px;
}
.content-text {
    color: var(--standard-text-color);
    font-size: 16px;
    margin-block: 0px;
    line-height: 1.4;
}
#profile-jakob {
    border: 2px solid lab(22.62% 0 0 / 0.87);
}
#profile-eliah {
    border: 2px solid lab(22.62% 0 0 / 0.87);
}
#profile-simen {
    background-color: #ffbdbd;
    color: #640000;
    border: 2px solid lab(22.62% 0 0 / 0.87);
}
#profile-marcel {
    background-color: #adff77;
    color: #184b00;
    border: 2px solid lab(22.62% 0 0 / 0.87);
}
#profile-vegard {
    background-color: hwb(197 51% 0%);
    color: #002249;
    border: 2px solid lab(22.62% 0 0 / 0.87);
}
#profile-alexander {
    background-color: lab(98.84% -7.57 17.74);
    color: #494e00;
    border: 2px solid lab(22.62% 0 0 / 0.87);
}
#profile-william {
    background-color: lch(78.99% 44.01 313.75);
    color: #370057;
    border: 2px solid lab(22.62% 0 0 / 0.87);
}
#profile-dawid {
    background-color: #ffdbb1;
    color: #533200;
    border: 2px solid lab(22.62% 0 0 / 0.87);
}

.skjema-content-box {
    display: grid;
    width: 60%;
    background-color: var(--white-color);
    padding-inline: 4.8rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin: 0px;
    gap: 3rem;
}
.skjema-content-box form {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    background-color: var(--white-color);
    width: 35rem;
    height: auto;
    min-height: 425px;
    gap: 1rem;

}
.skjema-content-box input, .skjema-content-box textarea {
    box-sizing: border-box;
    padding: 0.5rem;
    border: 1px solid var(--content-box-border-color);
    border-radius: 5px;
    font-family: Arial, sans-serif;
}
.skjema-content-box textarea {
    min-height: 120px;
    resize: vertical;
}
.skjema-content-box input[type="submit"] {
    margin-top: 1rem;
    background-color: var(--navbar-color);
    color: white;
    border: none;
    cursor: pointer;
}
.skjema-content-box input[type="submit"]:hover {
    opacity: 0.9;
}
.apprentice-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
    margin-bottom: 1rem;
}
.apprentice-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--content-box-border-color);
    border-radius: 5px;
    background-color: #ffffff;
    cursor: pointer;
}
.apprentice-option:hover {
    background-color: #eeeeee;
}
.apprentice-option input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.apprentice-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.6rem;
    width: 2.6rem;
    height: 2.6rem;
    box-sizing: border-box;
    object-fit: cover;
}
.apprentice-name {
    flex: 1;
}

.project-year-fields {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    width: 100%;
}
.project-year-field {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    width: 20rem;
    gap: 0.5rem;
}
.project-year-field input {
    width: 100%;
    text-align: center;
}

.project-form-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    align-items: baseline;
}
.project-form-actions input, .project-form-actions button {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
#delete-project {
    background-color: #b3261e;
    color: white;
}
#delete-project:hover {
    opacity: 0.85;
}

footer {
    background-color: var(--navbar-color);
    color: var(--white-color);
    text-align: center;
    padding: 1rem;
}