* {
    box-sizing: border-box;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInBackwards {
    from {
        opacity: 0;
        transform: translateY(-30px);
        transform: scaleX(-1);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        transform: scaleX(-1);
    }


}

body {
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
}

.monster {
    display: none;
}

/* headern */

header {
    height: 60px;
    background-color: #131212;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 24px;
}

.black {
    color: black;
    background-color: #FFA31A;
    border-radius: 5px;
    font-weight: 800;
}

header img {
    width: 30px;
    height: 59px;
}

#bottomimage img {
    opacity: 0;
    width: 90vw;
    height: 100%;
    margin-left: 5vw;
    margin-right: 5vw;
    margin-top: 10%;
    animation: fadeInBackwards 1s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}
#bottomimage2 img {
    opacity: 0;
    width: 90vw;
    height: 100%;
    margin-left: 5vw;
    margin-right: 5vw;
    margin-top: 10%;
    animation: fadeIn 1s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}

/* länkarna */

#linkbuttons {
    display: flex;
    gap: 5px;
    padding: 5px;
    background-color: #131212;
}

#linkbuttons a {
    flex: 1;
    background-color: #090808;
    color: #6E6E6E;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    transition: 0.2s;
}

#linkbuttons a:hover {
    background-color: #2B2929;
}

/* about */

#about {
    display: flex;
    flex-direction: column;
    margin: 5px;
    padding: 20px;
    gap: 20px;
    background-color: #131212;
    border-radius: 15px;
    animation: fadeIn 1s;
}

#about h2 {
    margin-bottom: 30px;
}

#about p {
    margin-bottom: 20px;
}


/* contact */

#contact {
    opacity: 0;
    background-color: #FFA31A;
    color: black;
    padding: 20px 20px 100px 20px;
    border-radius: 20px;
    margin: 5px;
    animation: fadeIn 1s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}

#contact a {
    margin: 5px;
}

#contact img {
    width: 50px;
    height: 50px;
}


/* projekt */

#projects {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    background-color: #FFA31A;
    color: black;
    border-radius: 20px;
    font-weight: 900;
    animation: fadeIn 1s;
}


.projectbuttons {
    opacity: 0;
    background-color: #151313;
    padding: 20px;
    border-radius: 20px;
    margin: 10px;
    animation: fadeIn 1s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
    text-decoration: none;
}

.projectbuttons h3 {
    margin-bottom: 10px;
}

#figma {
    text-decoration: none;
    color: inherit;
}


.projectbuttons img {
    width: 100%;
    height:100%;
    
}

.project{
        background-color: #090808;
        border-radius: 10px;
        padding: 10px;
        margin-bottom: 10px;
        transition: 0.2s;
    }

.projectbuttons .project:hover {
    background-color: #2B2929;
}

.projectbuttons a {
    text-decoration: none;
    color: inherit;
}
@media (min-width: 768px) {
    #wrapper {
        height: 100vh;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 60px 40px 1fr;
        gap: 5px;
    }

    #wrapper > div:first-child {
        grid-row: 1 / 3;
    }

    main {
        min-height: 0;
        min-width: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 5px;
    }

    /* ABOUT ME */
    #about {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        padding: 15px;
        overflow: auto;
    }

    #contact {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        height: 100%;
        min-height: 0;
        margin: 0;
        padding: 15px;
        overflow: auto;
    }
    #contact a {
    margin: 30px;
    }

    #contact img {
    width: 100px;
    height: 100px;
    }

    #bottomimage {
        grid-column: 1;
        grid-row: 2;
        min-height: 0;
        min-width: 0;
    }

    #bottomimage img {
        opacity:0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: 0;
        animation: fadeInBackwards 1s;
        animation-delay: 0.5s;
        animation-fill-mode: forwards;
    }

    #bottomimage2 img {
        opacity:0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: 0;
        animation: fadeIn 1s;
        animation-delay: 0.5s;
        animation-fill-mode: forwards;
    }

    .monster {
        display: block;
        grid-column: 2;
        grid-row: 1;
        min-height: 0;
        min-width: 0;
    }

    .monster img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        animation: fadeIn 1s;
    }

    /* PROJECTS */
    #projects {
        display: none;
    }

    #figma {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .projectbuttons {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        height: 100%;
        margin: 0;
        overflow: auto;
    }

}
