@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Slabo+13px&display=swap');

:root {
    --clr-white: #ffffff;
    --clr-black: #000000;

    --clr-primary: #eeeeee;
    --clr-secondary: #283135;
    --clr-supporting: #ffd9c3;
    --clr-supporting2: #e8ceb1;

    --size-xxs: .5rem;
    --size-xs: .75rem;
    --size-sm: .875rem;
    --size-base: 1rem;
    --size-lg: 1.125rem;
    --size-xl: 1.25rem;
    --size-2xl: 1.5rem;
    --size-3xl: 1.875rem;
    --size-4xl: 2.25rem;
    --size-5xl: 3rem;
    --size-6xl: 3.75rem;
    --size-7xl: 4.5rem;
    --size-8xl: 6rem;
    --size-9xl: 8rem;
    --size-10xl: 10rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    font-family: 'Inter', 'General serif', 'sans-serif';
}

body {
    background-color: var(--clr-primary);
    width: 100%;
    color: var(--clr-black);
    line-height: 1.5;
    letter-spacing: 0.5px;
    overflow-x: hidden;
    
}

.container {
    max-width: 1560px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    /* border: 1px solid red; */
}

li,
a,
button {
    list-style: none;
    text-decoration: none;
    color: var(--clr-black);
}

/* navbar block */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 4rem;
    font-size: var(--size-xl);
}

.logo {
    height: 2rem;
}

.nav__links li {
    display: inline-block;
    margin-right: 5rem;
}

/* hero block */

.hero {
    /* background-image: url(Hero-background.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover; */
    margin-top: 1rem;
    height: 55rem;
    display: flex;
}

.hero__text {
    width: 66%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hero h1 {
    font-size: var(--size-7xl);
    text-align: center;
    line-height: 1;
}

.hero p {
    font-size: var(--size-xl);
    margin-top: 3rem;
}

.hero__image-container {
    width: 33%;
    display: flex;
    justify-content: center;
}

/* main block */

.main {
    margin-top: 10rem;
    margin-bottom: 10rem;
}

.main__header {
    text-align: center;
    font-size: var(--size-4xl);
    margin-bottom: 5rem;
}

.main__grid {
    display: grid;
    grid-template-columns: 50% 50%;
    margin-top: 2rem;
}


.main img {
    max-width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    
}

/* Card 1 & 3 - Start off-screen to the LEFT */
.main img.animate {
    opacity: 0;
    transform: translateX(-200px);
    transition: all 1s ease-in-out; /* This makes it smooth */
}

/* Card 1 & 3 - Move to normal position when in view */
.main img.animate.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Card 2 - Start off-screen to the RIGHT */
.main img.animatealt {
    opacity: 0;
    transform: translateX(200px);
    transition: all 1s ease-in-out;
}

/* Card 2 - Move to normal position when in view */
.main img.animatealt.show {
    opacity: 1;
    transform: translateX(0);
}


.main__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 50%;
}

.main__text h2 {
    font-size: var(--size-5xl);
}

.main__text p {
    font-size: var(--size-xl);
    max-width: 63ch;
}

/* test block */

.test {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    overflow-x: hidden;
}

.test:hover {
    animation: animation2-rotate;
    animation-iteration-count: infinite;
    animation-delay: 0s;
    animation-timing-function: linear;
    animation-duration: 1s;
}


.card {
    height: 12rem;
    width: 5rem;
    border: 1px solid red;
    border-radius: 5px;

}

@keyframes animation2-rotate {
    100% {
        transform: rotateZ(360deg);
    }
}
 
