/* ------------------- */
/* Reset               */
/* ------------------- */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
    margin: 0; 
}

/* set up the body */
body {
    line-height: 1.5;
    min-height: 100vh;
}

/* make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* make form elements easier to work with */
input,
button,
textarea,
select {
    font: inherit;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Fixing the title font weight */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 400;
}

/* Adding Fonts */
.noto-sans-arabic {
    font-family: "Noto Sans Arabic", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

.tajawal-regular {
    font-family: "Tajawal", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Styling */

:root {
    --box-bg: hsl(270, 64%, 38%);
}

body {
    /* background-color: #6826AB; */
    background-color: #552084;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: right;
    color: #DCE8FF;
    position: relative;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    background-color: transparent;
    padding: 1rem;
    color: white;
    border-radius: 10px;
}

main > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main > div:last-of-type img {
    width: 30px;
}

main > div:last-of-type {
    flex-direction: row;
    gap: 1rem;
}

main h2 {
    font-size: 3rem;
    font-weight: 800;
}

main h1 {
    font-size: 8rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

main p {
    max-width: max-content;
}

main a {
    display: block;
    text-decoration: none;
    /* background-color: #8943d4; */
    /* color: #DCE8FF; */
    background-color: white;
    color: #8943d4;
    padding: .5rem 1rem;
    border-radius: 10px;
    margin: 1rem;
    font-weight: 700;
    font-size: 20px;
}

main > img {
    padding: 1rem;
}

.animated-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    position: fixed;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    gap: .5rem;
    z-index: -1;
    transform: rotate(45deg);
    -webkit-transform:rotate(45deg);
    -moz-transform:rotate(45deg);
    -o-transform:rotate(45deg); 
}

/* @supports  */

.animated-grid .box {
    border-radius: 10px;
    width: 20vw;
    height: 20vw;
    max-width: 100px;
    max-height: 100px;
    background-color: var(--box-bg);
}

.glow-blue {
    animation: box-glow-blue ease-in-out 10000ms infinite;
}

@keyframes box-glow-blue {
    from {
        background-color: var(--box-bg);
    }

    10% {
        background-color: #007FE6;
    }

    20% {
        background-color: var(--box-bg);
    }

    to {
        background-color: var(--box-bg);
    }
}

.glow-green {
    animation: box-glow-green ease-in-out 10000ms infinite;
}

@keyframes box-glow-green {
    from {
        background-color: var(--box-bg);
    }

    10% {
        background-color: #33AE7E;
    }

    20% {
        background-color: var(--box-bg);
    }

    to {
        background-color: var(--box-bg);
    }
}

.glow-orange {
    animation: box-glow-orange ease-in-out 10000ms infinite;
}

@keyframes box-glow-orange {
    from {
        background-color: var(--box-bg);
    }

    10% {
        background-color: #E78033;
    }

    20% {
        background-color: var(--box-bg);
    }

    to {
        background-color: var(--box-bg);
    }
}

.glow-red {
    animation: box-glow-red ease-in-out 10000ms infinite;
}

@keyframes box-glow-red {
    from {
        background-color: var(--box-bg);
    }

    10% {
        background-color: #EA3353;
    }

    20% {
        background-color: var(--box-bg);
    }

    to {
        background-color: var(--box-bg);
    }
}

/* @media (max-width: 560px) {
    main {
        padding: 7vh 0;
    }
} */