*,
*::before,
*::after{
    box-sizing: border-box;
    text-decoration: none;
}
body{
    min-height: 100vh;
    background: rgba(6, 7, 37, 0.918);
    margin-inline: auto;
    font-family: Arial, Helvetica, sans-serif;
}
header{
    display: flex;
    background: rgba(6, 7, 37, 0.918);
    border-radius: 100px;
    padding: 15px;
    align-items: center;
    position: sticky;
    top: 0;
    font-family: Arial, Helvetica, sans-serif;
    justify-content: space-between;
}
nav{
    display: flex;
    border: 2px solid grey;
    border-radius: 100px;
    background: rgba(128, 128, 128, 0.479);
    padding: 10px;
    gap: 9px;
    font-weight: bold;
}
a{
    color: black;
    padding: 5px;
    transition: color .5s;
    border-radius: 10px;
}
nav a:hover{
    color: white;
}
.logo{
    width: 50px;
    height: 50px;
    border-radius: 100px;
}

/*
display grid below
*/
.wrapper{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
    margin-top: 5rem;
}
@keyframes scrol1 {
    from{
        opacity: 0;
        transform: translateX(-100px);
    }
    to{
        opacity: 1;
        transform: translateX(0px);
    }
}
img{
    max-width: 100%;
    display: block;
    box-shadow: 0 0 15px white;
    -moz-box-shadow: 0 0 15px white;
    -ms-box-shadow: 0 0 15px white;
    -o-box-shadow: 0 0 15px white;
    -webkit-box-shadow: 0 0 15px white;
    border-radius: 6px;
}
.container{
    margin: 9px;
    border: 1px solid white;
    border-radius: 6px;
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    padding: 2rem;
    animation: scrol1 linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
    text-align: center;
    z-index: -1;
}
h2, p{
    color: white;
}
.active{
    color: white;
}

@media (max-width: 320px){
    .wrapper{
        font-size: 15px;
    }
    .container{
        margin: 9px;
        border: 1px solid white;
        border-radius: 6px;
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
        padding: 2rem;
        text-align: center;
    }
}