:root {
    --ctaColor: #328fb6;
    --bgColor: #f8f5cc;
    --primary: #ffcd95;
    --secondary: #b97735;
    --accentuation: #8c1616;
    --shadowColor: #59370e;
    --greyColor: #3e3e3e;
}

html {
    scroll-behavior: smooth;
}

body {
    background-image: url("../Images/triangulated-image.png");
    font-size: 18px;
}

.header-sticky {
    position: sticky;
    top: 0em;
    z-index: 100;
    padding: 1em;
}

header {
    border-bottom: 2px solid #6666;
    background-color: #f8f5cc50;
    backdrop-filter: blur(10px);

    & nav {
        display: grid;
        grid-template-columns: 1fr 5fr 1fr;
    }

    & h1 {
        text-align: center;
        text-shadow: 1px 1px 2px var(--shadowColor);
        color: var(--accentuation);
        text-shadow: 2px 2px 5px #fff, -2px -2px 5px #fff;
    }

    & img {
        border-radius: 0.5em;
    }
}

a {
    width: 100%;
    cursor: pointer;
    font-size: 1.1em;
    transition: color 0.2s;
    font-weight: bold;
    width: fit-content;
    color: var(--accentuation);

    &:hover {
        color: var(--ctaColor);
    }
}

main {
    gap: 1em;
    position: relative;
    margin: auto;
    max-width: 1200px;
    width: 80%;
}

article {
    & section {
        padding: 1em;
        border-radius: 1em;
        margin: 1em;
        display: inline-block;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1em;

        & img {

            display: inline-block;
            outline: 3px solid var(--greyColor);
            object-fit: cover;
			height: 300px;
            width: 100%;
        }

        & p {
            grid-column: 1/3;
        }
    }

    & h2 {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 208, 134, 1) 15%, rgba(0, 0, 0, 0) 30%);
        grid-column: 1/3;
        width: fit-content;

    }
}

/* Reset de base */


h2 {
    color: var(--accentuation);
    text-shadow: 1px 1px 1px var(--greyColor);
    padding-bottom: 5px;
    margin-top: 30px;
    font-size: 1.8em;
}

h3 {
    text-shadow: 1px 1px 1px var(--greyColor);
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.3em;

    & .svg-inline--fa {
        width: 0.5em;
        vertical-align: -0.35em;
        margin-left: 0.2em;
    }
}

h1,
h2,
h3 {
    font-family: 'Roboto Mono', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}


/*main style for section*/
section {
    border: 2px solid #333;
    margin: 0 2em;
    overflow: auto;
    background-color: var(--bgColor);

    & p {
        line-height: 1.5em;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        padding-top: 1em;
        margin: 1em 0;
    }

}

footer{
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	justify-items: center;
}


/*mobile size*/
@media screen and (max-width:720px) {
    body {
        font-size: 24px;
    }

    main {
        width: 98%;

        & article section {
            margin: 0.5em 0;
			border-radius: 0.25em;
			grid-template-columns: 1fr;
			& > img,&>p{
				grid-column: 1/2;
			}
        }
    }
}

header h1 img {
    animation-name: none;
    width: 1.5em;
    height: auto;
}

@keyframes levitationAnimation {
    0% {
        top: -2px;
        transform: rotate(-6deg);
    }

    5% {
        top: -3px;
    }

    10% {
        top: -2px;
    }

    15% {
        top: -3px;
        transform: rotate(6deg);
    }

    20% {
        top: -2px;
    }

    25% {
        top: -3px;
    }

    30% {
        top: -2px;
        transform: rotate(-6deg);
    }

    35% {
        top: -3px;
    }

    40% {
        top: -2px;
    }

    45% {
        top: -3px;
        transform: rotate(6deg);
    }

    50% {
        top: -2px;
    }

    55% {
        top: -3px;
    }

    60% {
        top: -2px;
    }

    65% {
        top: -3px;
        transform: rotate(-6deg);
    }

    70% {
        top: -2px;
    }

    75% {
        top: -3px;
        transform: rotate(6deg);
    }

    80% {
        top: -2px;
    }

    85% {
        top: -3px;
    }

    90% {
        top: -2px;
    }

    95% {
        top: -3px;
    }

    100% {
        top: -2px;
        transform: rotate(-6deg)
    }
}