@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

body {
    padding: 0;
    margin: 0;
    font-family: "Open Sans", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('./assets/background.jpg');
    background-size: cover;
    background-position: center;
}



/* Header */

header h1 {
    background-color: #567C48;
    width: max-content;
    padding: 10px;
    color: white;
    font-weight: 900;
    font-size: 4rem;
}

header h1 span {
    font-weight: 400;
}



/* Footer */

footer {
    background-color: black;
    color: white;
    text-align: center;
    margin-top: 50px;
}



/* Main content */

main {
    flex-grow: 1;
}

main h2 {
    text-align: center;
    font-size: 2rem;
}

main>section {
    max-width: 1290px;
    margin: auto;
}

main>p {
    max-width: 1290px;
    margin: auto;
    padding: 20px;
    margin-bottom: 50px;
}

/* Om mig */

.about-container {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

/* Teksten */
.about-container>*:first-child {
    background-color: rgb(0,0,0,0.1);
    border-radius: 5px;
    padding: 20px;
    width: 70%;
    font-size: 2rem;
}

.about-container>*:first-child p {
    margin: 0;
}

.about-container h3 {
    margin: 20px 0;
}

.about-container h3 span {
    font-weight: 900;
}

.about-container span {
    font-weight: 700;
}

/* Billedet */
.about-container>*:last-child {
    background-color: rgb(0,0,0,0.1);
    border-radius: 5px;
    width: 35%;
    object-fit: cover;
}


/* Mine projekter */

.project-container {
    background-color: rgb(0,0,0,0.1);
    border-radius: 5px;
    padding: 20px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* Selve kasserne */

.project-container article {
    width: 400px;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 5px;
}

/* Billederne og relaterede ting */

.project-image-preview-container {
    width: 100%;
    height: 225px;
    display: block;
}

.project-image-preview-container img {
    width: 100%;
    position: relative;
    transition-duration: 1s;
    top: 0;
}

.project-image-preview-container img:first-child {
    transition-timing-function: cubic-bezier(0.075, 0.885, 0.25, 1.175);
}

.project-image-preview-container img:last-child {
    z-index: 2;
    transition-timing-function: cubic-bezier(0.23, 1, 0.320, 1);
    top: 3%;
}

.project-visit-buttons>div {
    display: none;
}

/* Knapperne under billederne */

.project-visit-buttons a {
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-visit-buttons a:first-child {
    color: white;
    background-color: #E52C22;
    font-weight: 700;
    padding: 10px;
    margin: 0;
}

.project-visit-buttons a:last-child {
    padding: 10px;
    color: rgb(225, 225, 225);
    margin: 0;
}

.project-visit-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    position: relative;
    z-index: 10;
    background-color: rgba(0,0,0,0.5);
    gap: 10px;
}

.preview-button>span {
    color: white;
}

.preview-button>input {
    height: 30px;
    width: 30px;
    position: absolute;
    z-index: 10;
    opacity: 0;
}

.preview-button>input:checked ~ span {
    color: green;
}

.empty {
    flex-grow: 1;
}

@media only screen and (min-width: 1350px) {
    .project-container article:hover .project-image-preview-container img:last-child {
        top: -102.5%;
    }

    .project-container article:hover .project-image-preview-container img:first-child {
        top: 100%;
    }
}

@media only screen and (max-width: 1350px) {
    header h1 {
        font-size: 2.5rem;
    }


    .project-container {
        border-radius: 0;
        justify-content: center;
    }

    .project-visit-buttons>div {
        display: block;
    }

    .project-container article:has(.preview-button>input:checked) .project-image-preview-container img:first-child {
        top: 100%;
    }

    .project-container article:has(.preview-button>input:checked) .project-image-preview-container img:last-child {
        top: -102.5%;
    }
}

@media only screen and (max-width: 700px) {
    header h1 {
        font-size: 2.5rem;
        max-width: 100%;
        word-wrap: normal;
        box-sizing: border-box;
    }

    header h1 span {
        display: block;
    }

    .about-container {
        flex-direction: column;
        gap: 0;
    }

    .about-container>*:first-child,.about-container>*:last-child {
        width: 100%;
        border-radius: 0;
    }

    .about-container>*:first-child {
        box-sizing: border-box;
    }

    .about-container>*:last-child {
        height: 400px;
    }
}