img {
    width: 250px;
}

.topheader {
    margin: 70px 150px 50px 150px;
}

.secondheader {
    margin: 0 30px 0 60px;
}

h4desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 23px;
    font-weight: 300;
    text-shadow: 0 0 2px #ffffff;
    color: rgb(161, 161, 161);
    line-height: 1.6;
}

.accordion-container {
    justify-content: center;
    padding: 30px;
    display: grid;
    grid-template-columns:28% 28% 28%;
    row-gap: 30px;
    column-gap: 30px;
    margin-bottom: 100px;
}

.accordion-card {
    width: fit-content;
    background-color: rgb(255, 255, 255, 0.1);
    justify-content: center;
    display: grid;
    cursor: pointer;
    box-shadow: white 0px 0px 7px;
    height: fit-content;
    position: relative;
}
  
.accordion-card__header {
    color: #202020;
    position: relative;
    padding: 5px;
    margin: 10px;
}
  
.accordion-card__content {
    font-family: 'Genos', sans-serif;
    padding: 0px 15px 20px 15px;
    color: #ffffff;
    display: none;
    margin: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}
  
.active {
    display: block;
}

.info-container {
    overflow: hidden;
}

.info-cards {
    margin: 50px;
    display: grid;
    grid-template-columns: 22% 3% 22% 3% 22% 3% 22%;
    justify-content: center;
}
.infocard {
    color: #f6f6f6;
    height: auto;
    width: auto;
    padding: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 18px;
    font-weight: 300;
    text-shadow: 0 0 2px #ffffff;
}

.infocard-header {
    font-weight: 600;
    padding-bottom: 10px;
}

.icon {
    color: #3a59e1;
    text-align: center;
    font-weight: 800;
    font-size: 24px;
    position: relative;
    top: 40%;
}


.parent {
    position: relative;
    top: 0;
    left: 0;
    margin: 0 30px;
  }
  .image1 {
    position: relative;
    top: 0;
    left: 0;
    width: 140px;
    animation: rotate 5s linear infinite;
  }
  .image2 {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 80px;
  }
  .image3 {
    position: relative;
    top: 0;
    left: 30px;
    width: 325px;
    border-radius: 10px;
    animation: pulse 4.5s infinite;
  }
  .image4 {
    position: absolute;
    top: 55px;
    left: 180px;
    width: 135px;
    border-radius: 10px;
    animation: pulse 6s infinite;
  }
  .image5 {
    position: absolute;
    top: 25px;
    left: 80px;
    width: 40px;
    border-radius: 10px;
    animation: jump 2.4s infinite;
    z-index: 2;
  }
  .image6 {
    position: absolute;
    top: 90px;
    left: 0;
    width: 200px;
    border-radius: 10px;
  }

  @keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(.96);
    }
    100% {
        transform: scale(1);
    }
  }

  @keyframes jump {
    0% {
        transform: translateY(13px) rotate(0deg) scale(.96);
    }
    70% {
        transform: translateY(-20px) rotate(-7deg) scale(1.03);
    }
    100% {
        transform: translateY(15px) rotate(0deg) scale(.95);
    }
  }

.twop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    height: auto;
}

.twop-right {
    flex-direction: row;
    text-align:left;
}

.twop-left {
    flex-direction: row-reverse;
    text-align:right;
}

.textp {
    width: 50%;
    margin: 0px 0px 0px 0px;
}

  @keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
  }

@supports (animation-timeline: view()) {
    .card {
        --index0: calc(var(--index) - 1); /* 0-based index */
        --reverse-index: calc(var(--numcards) - var(--index0)); /* reverse index */
        --reverse-index0: calc(var(--reverse-index) - 1); /* 0-based reverse index */
    }

    @keyframes scale {
        to {
            transform:
                scale(calc(1.1 - calc(0.1 * var(--reverse-index))));
        }
    }

    #cards {
        --numcards: 4;
        view-timeline-name: --cards-element-scrolls-in-body;
    }

    .card__content {
        --start-range: calc(var(--index0) / var(--numcards) * 100%);
        --end-range: calc((var(--index)) / var(--numcards) * 100%);

        animation: linear scale forwards;
        animation-timeline: --cards-element-scrolls-in-body;
        animation-range: exit-crossing var(--start-range) exit-crossing var(--end-range);
    }
}

#cards {
	list-style: none;
	outline: calc(var(--outline-width) * 10) solid hotpink;

	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: repeat(var(--numcards), var(--card-height));
	gap: var(--card-margin);
}

.card__content {
	box-shadow: 0 0.3em 2em rgba(0, 0, 0, 0.2), 0 1em 2em rgba(0, 0, 0, 0.1);
	background: rgb(246, 246, 246);
	color: rgb(10, 5, 7);
	border-radius: 1em;
	overflow: hidden;

	display: grid;
	grid-template-areas: "text img";
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto;

	align-items: stretch;
}

.card__content > div {
	grid-area: text;
	width: 70%;
	place-self: center;
	text-align: left;

	display: grid;
	place-items: start;
    margin: 50px 0px 50px 70px;
    font-size: 17px;
}

.card__content > div > h2 {
    font-size: 38px;
}

.card__content > figure {
	grid-area: img, video;
	overflow: hidden;
    margin: 60px 0px 0px 0px;
}

.card__content > figure > img, video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


#cards {
	padding-bottom: calc(var(--numcards) * var(--card-top-offset));
	margin-bottom: var(--card-margin);
    padding-left: 0px;
}

#card_1 {
	--index: 1;
}

#card_2 {
	--index: 2;
}

#card_3 {
	--index: 3;
}

#card_4 {
	--index: 4;
}


.card {
	position: sticky;
	top: 0;
	padding-top: calc(var(--index) * var(--card-top-offset));
}


:root {
	--card-height: 40vw;
	--card-margin: 1vw;
}

.stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    position: relative;
    top: 100px;
    left: 0;
    margin: 0 30px;
}

.img1 {
    position: absolute;
    display: flex;
    top: 40px;
    left: 350px;
    width: 250px;
    height: 180px;
    transform: rotate(-340deg);
    z-index: 2;
}

.img2 {
    position: relative;
    display: flex;
    top: 60px;
    left: 50px;
    width: 300px;
    rotate: -5deg;
    z-index: 3;
    height: 190px;
    box-shadow: #636363 0px 0px 7px;
    filter: brightness(1.2);
}

.img3 {
    position: absolute;
    display: block;
    top: 30px;
    left: 30px;
    width: 170px;
    height: auto;
    rotate: -25deg;
    z-index: 1;
}

.comp {
    position: relative;
    width: 600px; /* Adjust based on your iPad PNG size */
    height: 400px; /* Adjust accordingly */
  }
 
  .compvid {
    position: absolute;
    right: 5%;
    z-index: 1; /* Ensures it's behind the frame */
    width: 384px; height: 204px; top: 70px; left: 50px;
  }
 
  .compimg {
    position: absolute;
    top: 0px;
    left: -15px;
    width: 500px; /* Ensures the frame covers everything */
    height: 360px;
    z-index: 2; /* Ensures the frame is on top */
}
 
.handvid {
    position: absolute;
    z-index: 2; /* Ensures it's behind the frame */
    width: 160px; height: 240px; top: 50px; left: 90px;
  }
 
  .handimg {
    position: absolute;
    left: 43px;
    width: auto; height: 410px; top: 0px;
    z-index: 1; 
}

.tablet {
    width: 70%; height: 60%; top: 45px; left: 32px; z-index: 5;
    position: relative;
}

@media (max-width: 1000px) {
    .topheader {
        margin: 50px 20px 50px 25px;
    }
    .secondheader {
        margin: 0px;
    }
    .info-cards {
        margin: 20px;
        display: grid;
        grid-template-columns: 20% 5% 20% 5% 20% 5% 20%;
        justify-content: center;
    }
    .infocard {
        color: #f6f6f6;
        height: auto;
        width: auto;
        padding: 0px;
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: 12px;
        font-weight: 300;
        text-shadow: 0 0 2px #ffffff;
    }
    
    .infocard-header {
        font-weight: 600;
        padding-bottom: 10px;
    }
    h4desc {
        font-size: 15px;
    }
    .img1 {
        top: 40px;
        left: 10px;
        width: 150px;
        height: 80px;
    }
    
    .img2 {
        top: 110px;
        left: 5px;
        width: 140px;
        height: 90px;
    }
    
    .img3 {
        top: 150px;
        left: 10px;
        width: 90px;
    }

    :root {
        --card-height: 70vw;
        --card-margin: 50vw;
    }
    .card__content > div > h2 {
        font-size: 20px;
    }
    .card__content > figure > ipad > ipadvid {
        width: 50px;
    }
    .card__content > div > p {
        font-size: 13px;
    }
.card__content > div {
	grid-area: text;
	width: 70%;
	place-self: center;
	text-align: left;

	display: grid;
	place-items: start;
    margin: 30px 0px 40px 0px;
    font-size: 17px;
}

.card__content > div > h2 {font-size: 38px;}
.twop {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    height: auto;
}

.twop-right {
    flex-direction: row;
    text-align:left;
}

.twop-left {
    flex-direction: row-reverse;
    text-align:right;
}

.textp {
    width: 50%;
    margin: 0px 0px 0px 0px;
}
.parent {margin: 0 10px;}
.comp {
    position: relative;
    width: 600px;
    height: 400px;
  }
 
  .compvid {
    position: absolute;
    z-index: 1; /* Ensures it's behind the frame */
    width: 180px; height: 120px; top: 80px; left: 15px;
  }
 
  .compimg {
    position: absolute;
    top: 50px;
    left: -15px;
    width: 240px; /* Ensures the frame covers everything */
    height: 190px;
    z-index: 2; /* Ensures the frame is on top */
  }
  .handvid {
    position: absolute;
    z-index: 2; /* Ensures it's behind the frame */
    width: 130px; height: 200px; top: 90px; left: 63px;
  }
 
  .handimg {
    position: absolute;
    left: 20px;
    width: auto; height: 350px; top: 50px;
    z-index: 1; 
}

.tablet {
    width: 71%; height: 64%; top: 75px; left: 6px; z-index: 5;
    position: relative;
}
.image3 {
    position: relative;
    top: 0;
    left: 0;
    width: 200px;
    border-radius: 10px;
    animation: pulse 4.5s infinite;
  }
  .image4 {
    position: absolute;
    top: 55px;
    left: 135px;
    width: 9ch;
    border-radius: 10px;
    animation: pulse 6s infinite;
  }
  .topheader h2 {
    width: 70%;
  }
  .image5 {
    position: absolute;
    top: 30px;
    left: 10px;
    width: 25px;
    border-radius: 10px;
    animation: jump 2.4s infinite;
    z-index: 2;
  }
  .image6 {
    position: absolute;
    top: 75px;
    left: -40px;
    width: 130px;
    border-radius: 10px;
  }
}