header {
   background-color: var(--backgrund-body-2);
}

#frontImage img {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    object-position: 50% 30%;
}

.motionTag {
    text-decoration: underline;
    color: #F15A22;
    font-weight: bold;
}

.motionTag:hover {
    color: #f04203;
}

.introTitle {
    margin: auto;
    max-width: 1200px;
    padding-bottom: 2rem;
    padding-top: 0rem;
}


.introContainer {
    display: block;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--base-color);
    font-family: Inter;
    line-height: 1.6;

}

.introSideBar {
    position: absolute;
    left: -15em;
    width: 18em;
    margin-top: 20rem;
}

.introTextContent {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.introContentWrapper{
    margin: auto;
    max-width: 1000px;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.researchIdeation > img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    border-radius: 1rem;
}

#descriptionImg {
    height: 28rem;
    object-fit: cover;
    object-position: 50% 60%;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.boxRole{
    flex: 1;
}

.boxRole ul {
    list-style-type: none;
}

.boxProblem{
    flex:2
}

#manual {
    width: 100%;
    height: 35rem;
    object-fit: cover;
    margin-bottom: 1rem;

}

.researchIdeation h3{
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.fullWidthImage {
    width: 100%;
    display: block;
    margin-bottom: 0;
}

.contextLabel {
    display: block;
    margin-bottom: .5rem;
    font-weight: bold;
    font-size: 1rem;
}

.textSidebar {
    font-size: .8rem;
    margin-bottom: .5rem;
    text-align: justify;
    line-height: 1.2rem;
    margin-top: .5rem;
}

.disclaimer {
    font-size: .8rem;
    margin-top: .5rem;
    font-style: italic;
    opacity: .4;
}

.grid-item {
    border-radius: .2rem;
    overflow: hidden;
    width: 100%;
}

.grid-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.grid-item:hover img {
    transform: scale(1.1);
}



.bright {
    filter: brightness(1.5);
}

.introGrid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: .5rem; 
       width: 18em;
}
.introGrid img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


.VideoSidebar {
    position: absolute;
    right: -15em;
    width: 18em;
    margin-top: 20rem;
}

.gridMockup {
    display: flex;
    gap: 0.5rem;
}

.VideoSidebar .grid-item {
    flex: 1;
    height: 10rem;
    margin-bottom: 1rem;
}

.VideoSidebar.grid-item img {
    height: 100%;
    object-fit: cover;
}

.VideoSidebar p {
    margin-bottom: 1rem;
    margin-top: 0rem;
    text-align: justify;
}


.showcasing-sidebar {
    position: absolute;
    left: -15em;
    width: 18em;
    margin-top: -2rem;
}

.showcasing-sidebar2 {
    position: absolute;
    left: -15em;
    width: 18em;
    margin-top: -2rem;
}

.showcasing-sidebar p {
    margin-bottom: .5rem;
    margin-top: 0rem;
}

/**DIALOG DIALOG POPUP**/
dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

dialog {
    border: none !important;
    outline: none !important;
    border-radius: 1rem;
    padding: 0;

    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    margin: 0;

    max-width: 90vw;
    max-height: 90vh;
    background: transparent; 
    overflow: visible;
}

.dialog-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

#dialogTitle {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

dialog img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/**DIALOG DIALOG POPUP**/

.gridEval {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gridEval img{
    height: 310px;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

#finalprototyp {
    height: 650px;
    width: 100%;
    object-fit: cover;
}


.bottomSpacer {
    height: 0rem;
}

#disclaimer2 {
    margin-top: .5rem;
}

.demoVideo {
    height: 15rem;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
}


.Sidebar {
    position: absolute;
    left: -15em;
    width: 18em;
    margin-top: 20rem;
}

.SidebarTemplates {
    position: absolute;
    right: -15em;
    width: 18em;
    margin-top: 0rem;
}

.SidebarTemplates img {
    border-radius: 1rem;
}


.SidebarSlots {
    position: absolute;
    left: -15em;
    width: 18em;
    margin-top: -10rem;
}

.boxHeader {
    padding-bottom: .1rem;
}

#magnetic{
    width: 100%;
    height: 29rem;
    object-fit: cover;
    border-radius: 1rem;
}

#ringlight {
    width: 100%;
    height: 40rem;
    object-fit: cover;
    border-radius: 1rem;
}

#friction {
    width: 100%;
    height: 28rem;
    object-fit: cover;
    border-radius: 1rem;
}

#buttons {
    width: 100%;
    height: 25rem;
    object-fit: cover;
    border-radius: 1rem;
}

#twist {
    width: 100%;
    height: 28rem;
    object-fit: cover;
    border-radius: 1rem;
}

#LaserCutting {
    width: 100%;
    height: 40rem;
    object-fit: cover;
}

#prototypes {
    width: 100%;
    height: 30rem;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1rem;
}


.gradient-section {

    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);

    background: linear-gradient(
        to bottom, 
        transparent, 
        var(--backgrund-body-3) 0%, 
        var(--backgrund-body-2) 100%, 
        transparent
    );
    
    padding-top: 1rem; 
    padding-bottom: 10rem; 
    margin-top: 2rem;
}

#YunengTag {
    color: #FFD400;
}

.mainText {
    text-align: start;
}

    .gradient-section #ringlight, #magnetic, #friction, #buttons, #twist, #prototypes {
        margin: 1rem 0;
        border-radius: 1rem;
    }

    .gridEval .fullWidthImage {
        margin: 1rem 0;
    }

.grid-item .the-tool-border {
    border-radius: 1rem;
}


.grid-item .template-border {
    border-radius: 1rem;
}

#polar-uppdelad {
    margin-bottom: 1rem;
    height: 35rem;
}