html {
  scroll-behavior: smooth;
}

.divider {
    padding: 90px 0;
    width: 70%;
    height: auto;
    margin: 0 auto;
}

#front-long-form,
#front-short-form,
#front-collabs,
#front-ig-container,
#image-slider-container {
    background-color: #97ab8c;
}

/* HERO */

#front-hero {
    width: 100%;
    padding: 50px 0 10px 0;
    justify-content: center;
    display: flex;
}

#front-hero svg {
    width: 95%;
    height: auto;
    object-fit: cover;
}

#front-hero svg .cls-1 {
    fill: #97AB8C;
}

#front-hero svg .cls-2 {
    fill: #BD4B63;
}

/* WHO AM I */

#front-nav-buttons {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 3%;
    padding: 40px 0 0 0;
}

#front-about-me {
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: space-evenly;
    padding: 50px 50px;
    gap: 20%;
    height: auto;
    margin: 0;
}

#front-about-me h4,
#front-aboutme-hardskills h4 {
    margin: 0;
}

#front-whoami {
    padding: 0 50px 0 0;
}

#front-whoami p {
    line-height: 1.55;
    padding: 20px 0;
    width: 290px;
}

#leaf-frame {
    position: absolute;
    width: 500px;
    height: auto;
    z-index: -1;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
}

#front-aboutme-image {
  position: relative; /* the reference for children */
  height: 50vh; /* or whatever you want */
}

#front-aboutme-image img {
    width: 320px;
    padding: 0;
    position: absolute;
    top: 51%;
    left: 45%;
    transform: translate(-50%, -50%);
}

#front-aboutme-hardskills {
    flex-direction: column;
    align-items: left;
    text-align: left;
    padding-left: 50px;
}

.hardskill {
    padding: 5px 0;
}   

.hardskill p {    
    margin: 0;
    font-weight: bold;
}

#front-whoami {
    flex-direction: column;
    align-items: left;
    text-align: left;
}

#hardskills-some {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 auto;
    gap: 10px;
    padding: 10px 0 0 0;
}

#hardskills-some svg {
    width: 55px;
    height: 55px;    
    padding: 0;
    margin: 0;
}

#front-softskills {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
    justify-items: center;
    width: 92%;
    margin: 0 auto;
    padding: 20px 10px 70px 10px;
}

#front-softskills svg {
    width: auto;
    height: 270px;
}

#malrettet .cls-1, 
#organiseret .cls-1, 
#kreativ .st0,
#struktureret .cls-1 {
    fill: #e0c6a6;
}

#malrettet .cls-2,
#organiseret .cls-3,
#kreativ .st1,
#struktureret .cls-2 {
    fill: #97ab8c;
}

#malrettet .cls-3,
#organiseret .cls-2,
#kreativ .st2,
#struktureret .cls-3 {
    fill: #d7a4a6;
}

/* CONTENT */

.beige-header h2,
.beige-header h3, 
.beige-header h4,
.beige-header p{
    color: #f8f8f8;
}

#front-content p, 
#front-content h2,
#front-content h3 {
    color: #F8F8F8;
}

/* LONG-FORM */

#front-long-form {
    padding: 30px 0 0 0;
}

#front-long-form-intro {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: space-evenly;
    padding: 30px 50px 10px 50px;
    gap: 20%;
}

#front-long-form-intro p {
    width: 400px;
    padding: 0 0 30px 0;
    justify-content: center;
}

#front-long-form-headers {
    display: inline-block;
    position: relative;
    width: 420px;
}

#front-long-form-headers h3 {
    display: block;
    text-align: left;
}

#front-long-form-headers h2 {
    display: block;
    margin: -30px 0 0 0;
    text-align: right;
}

/* CENTERED CAROUSEL */

#front-long-form-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#front-long-form-container p {
    font-style: italic;
    font-weight: 300;
    width: 500px;
    padding: 5px;
    margin: 20px 50px 0 50px;
    text-align: center;
    background-color: #F2EFEC30;
    border-radius: 10px;
    border: 1px solid #F2EFEC;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    will-change: transform;
    padding: 0 70px 20px 70px;
}

.front-long-form-videos {
    flex: 0 0 500px;
    opacity: 0.5;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.front-long-form-videos.active {
    opacity: 1;
    transform: scale(1);
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
}

#front-long-form-container::before,
#front-long-form-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

#front-long-form-container::before {
    left: 0;
    background: linear-gradient(to right, #97AB8C, transparent);
}

#front-long-form-container::after {
    right: 0;
    background: linear-gradient(to left, #97AB8C, transparent);
}

/* CAROUSEL ARROWS */

.carousel-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.carousel-arrow svg {
    height: 55px;
    width: auto;
}

.carousel-arrow.left {
    left: 10px;
}

.carousel-arrow.right {
    right: 10px;
}

/* SHORT-FORM */

#front-short-form {
    padding: 30px 0 0 0;
}

#front-short-form-intro {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: space-evenly;
    padding: 50px 50px 10px 50px;
    gap: 20%;
}

#front-short-form-intro p {
    width: 400px;
    justify-content: center;
    padding: 0 0 30px 0;
}

#front-short-form-headers {
    display: inline-block;
    position: relative;
    width: 420px;
}

#front-short-form-headers h3 {
    display: block;
    text-align: left;
}

#front-short-form-headers h2 {
    display: block;
    margin: -30px 0 0 0;
    text-align: right;
}

/* CENTERED CAROUSEL - SHORT */

#front-short-form-container {
    position: relative;
    overflow: hidden;
}

.short-carousel-track {
    padding: 0 50px;
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.short-carousel-track .spacer {
    flex: 0 0 calc(50px); /* half of container width minus half of slide width */
}

.front-short-form-videos {
    flex: 0 0 300px;
    opacity: 0.5;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.front-short-form-videos.active {
    opacity: 1;
    transform: scale(1);
}

.short-video-wrapper iframe {
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
}

.short-video-wrapper blockquote {
    width: 100%;
    border-radius: 20px;
}

#front-short-form-container::before,
#front-short-form-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

#front-short-form-container::before {
    left: 0;
    background: linear-gradient(to right, #97AB8C, transparent);
}

#front-short-form-container::after {
    right: 0;
    background: linear-gradient(to left, #97AB8C, transparent);
}

/* CAROUSEL ARROWS */

.short-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.short-carousel-arrow svg {
    height: 55px;
    width: auto;
}

.short-carousel-arrow.left {
    left: 10px;
}

.short-carousel-arrow.right {
    right: 10px;
}

/* SHARED CAROUSEL */

.carousel-arrow-svg {
    width: 30px;
    height: auto;
}

.carousel-arrow-svg .cls-1 {
    fill: #f8f8f8;
    transition:
        fill 0.3s ease-in-out;
}

.carousel-arrow:hover svg .cls-1,
.short-carousel-arrow:hover svg .cls-1 {
    fill: #BD4B63;
}

/* COLLABS */

#front-collabs {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 30px 0 0 0;
}

#front-collab-headers {
    display: inline-block;
    position: relative;
    width: 610px;
}

#front-collab-headers h3 {
    display: block;
    text-align: left;
}

#front-collab-headers h2 {
    display: block;
    margin: -30px 0 0 0;
    text-align: right;
}

#front-collabs-intro {
    display: flex;
    flex-direction: column;
    padding: 50px 50px 50px 50px;
    justify-content: center;
    align-items: center;
}

#front-collabs-intro p {
    width: 500px;
    justify-content: center;
}

#collabs-container {
    position: relative;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    width: 100%;
    gap: 7%;
}

#collab-img-wrapper img {
    display: block;
    width: 800px;
    height: auto;
    padding: 0;
    left: 0;
}

.collab-logo {
    position: absolute;
    height: 120px;
    width: auto;
    opacity: 0;
    transform: translateX(-80px); /* start slightly under image */
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.collab-logo.show {
    opacity: 1;
    transform: translateX(0);
}

.collab-logo svg {
    width: 110px;
    height: auto;
}

.collab-logo img {
    width: 150px;
    height: auto;
}

#collab-logo1 { top: 150px; right: 450px; }
#collab-logo2 { top: 100px; right: 210px; }
#collab-logo3 { top: 270px; right: 300px; }
#collab-logo4 { top: 240px; right: 100px; }
#collab-logo5 { top: 460px; right: 300px; }
#collab-logo6 { top: 490px; right: 100px; }
#collab-logo7 { top: 580px; right: 450px; }
#collab-logo8 { top: 630px; right: 210px; }

#elgato-logo {
    height: 110px;
    width: auto;
}

#imvu-logo {
    height: 110px;
    width: auto;
}

#uno-logo  {
    height: 110px;
    width: auto;
}

#functionofbeauty-logo {
    border-radius: 90px;
    height: 110px;
    width: auto;
}

/* INSTAGRAM */

#front-ig-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 0;
}

#front-ig-container p, 
#front-ig-container h2,
#front-ig-container h3 {
    color: #F8F8F8;
}

#front-ig-headers {
    display: inline-block;
    position: relative;
    width: 410px;
}

#front-ig-headers h3 {
    display: block;
    text-align: left;
}

#front-ig-headers h2 {
    display: block;
    margin: -30px 0 0 0;
    text-align: right;
}

#front-ig-intro {
    padding: 60px 50px 0 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#front-ig-intro p {
    width: 400px;
    justify-content: center;
    padding: 0 0 30px 0;
}

/* IMAGE SLIDER */

#image-slider-container {
    display: flex;
    flex-direction: column;
    padding: 0 0 30px 0;
}

ul {
    padding: 0;
}

li {
    list-style: none;
}

.image-slider-wrapper {
    position: relative;
    height: 450px;
    margin: 0 0 60px 0;
}

.image-slider-wrapper:before, .image-slider-wrapper:after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 1;
}

.image-slider-wrapper:before {
    left: 0;
}

.image-slider-wrapper:after {
    right: 0;
}

.slider-event-images {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* skjuler scrollbar i Firefox */
    width: 100%;
    display: flex;
    cursor: grab;
}

.slider-event-images::-webkit-scrollbar {
    display: none; /* skjuler scrollbar i Chrome, Safari og Opera */
}

.slider-event-images.active {
    cursor: grab;
}

.slider-event-image {
    flex: 0 0 auto;
    margin: 0 10px;
    user-select: none;
    width: auto;
    height: 450px;
}

.slider-event-image img {
    pointer-events: none;
    user-select: none;
    border-radius: 20px;
    width: auto;
    height: 100%;
    object-fit: cover; /* sikrer at billedet dækker hele boksen uden at blive forvrænget */
}

.slider-event-image:last-child {
    margin-right: 20px;
}

/* SCROLLBAR */

.slider-scrollbar {
    height: 15px;
    width: 70%;
    background: #f8f8f8;
    opacity: 1;
    border-radius: 10px;
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
}

.slider-scrollbar-thumb {
    height: 100%;
    width: 100px;
    background: #d7a4a6;
    border-radius: 10px;
    position: absolute;
    left: 0;
    top: 0;
    transition: background 0.2s ease;
    cursor: grab;
}

.slider-scrollbar-thumb.dragging,
.slider-scrollbar-thumb:active,
.slider-scrollbar-thumb:hover {
    background: #BD4B63;
}

.slider-scrollbar-thumb.dragging,
.slider-scrollbar-thumb:active {
    cursor: grabbing;
}

/* HIGHLIGHTED PROJECTS */

#front-projects {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 50px 0;
}

#front-projects-headers {
    display: inline-block;
    position: relative;
    width: 320px;
}

#front-projects-headers h3 {
    display: block;
    text-align: left;
}

#front-projects-headers h2 {
    display: block;
    margin: -30px 0 0 0;
    text-align: right;
}

#front-projects-container {
    position: relative;
    display: flex;
    flex-direction: row;
    margin: 0;
    min-height: 800px;
    width: 100%;
    gap: 7%;
}

.project-logo {
    position: absolute;
}

#project-logo1 { top: 150px; left: 54%; }
#project-logo2 { top: 50px; left: 19%; }
#project-logo3 { top: 550px; left: 60%; }
#project-logo4 { top: 450px; left: 25%; }

.project-logo img {
    width: 300px;
    height: auto;
}

.project-logo svg {
    width: 300px;
    height: auto;
    filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.3));
    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.project-logo svg:hover {
    cursor: pointer;
    transform: translateY(-2px);
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.4));
}

.project-logo svg:active {
    transform: translateY(0);
    filter: drop-shadow(1px 1px 6px rgba(0, 0, 0, 0.25));
}

#project-logo1 svg:hover .cls-2,
#project-logo2 svg:hover .cls-3,
#project-logo3 svg:hover .cls-2,
#project-logo4 svg:hover .cls-2 {
    fill: #BD4B63;
    transition: fill 0.3s ease-in-out;
}

/* CONTACT */

#front-contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#contact-grow {
    display: flex;
    font-size: 100px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 0 20px 0;
    margin: 0;
}

#front-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    justify-content: center;
}

#front-contact img {
    width: 50%;
    height: auto;
}

#front-contact-content {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    padding: 50px 60px 100px 0px;
    width: 23%;
    gap: 30px;
}

#front-contact-content h2 {
    margin-left: -5px;
}

#front-contact-content p {
    padding: 0 0 10px 0;
}