* {
    padding: 0;
    margin: 0;
}

body.fire {
    font-family: 'Poppins', sans-serif;
    background: url('../img/Advertisement_Wall.jpg') rgba(39, 39, 39, 0.65);
    background-blend-mode: multiply;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
}

body.about-page {
    font-family: 'Poppins', sans-serif;
    background: rgb(21, 21, 21);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0% 0%;
}

h1 {
    font-size: 6rem;
    text-transform: capitalize;
    font-weight: 800;
    color: #efefef;
    margin-bottom: 2em;
    margin-top: 1em;
    line-height: 0.95em;
}

h2 {
    font-size: 4rem;
    font-weight: 800;
    color: #efefef;
    margin-bottom: 1em;
    margin-top: 0.25em;
    line-height: 0.95em;
}

h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #efefef;
    margin-bottom: 1em;
    margin-top: 1em;
    line-height: 0.95em;
}

h4 {
    font-size: 1.7rem;
    font-weight: 500;
    color: #efefef;
    margin-bottom: 1em;
    margin-top: 0.5em;
    line-height: 0.95em;
}

p {
    color: #efefef;
}

header {
    text-align: center;
    align-items: center;
    justify-content: center;
    display: grid;
    align-self: center;
    min-height: 100vh;
    width: 100vw;
    filter: url(#threshold) blur(0.6px);
}


.burger,
.menu,
.bg {
    position: fixed;
}

.burger {
    z-index: 4;
    top: 0;
    left: 0;
    display: grid;
    width: 96px;
    height: 96px;
    color: #efefef;
    border: none;
    place-items: center;
    background: none;
}

body.open .burger {
    background-image: url('../img/close_opsz48.svg');
}

.bg {
    position: fixed;
    z-index: 2;
    top: 44px;
    left: 44px;
    aspect-ratio: 1/1;
    translate: -50% -50%;
    height: 88px;
    background: #07030a;
    border-radius: 50%;
    opacity: 0;
    transition: 0.6s;
}

body.open .bg {
    height: 300vh;
    opacity: 0.8;
}

body.open .menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.newnav {
    transform: translateX(-500px);
}

.menu {
    z-index: 3;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    transition: 0.05s;
    pointer-events: none;
}

.material-symbols-outlined:hover {
    cursor: pointer;
}

body .menu nav:hover>a {
    opacity: 0.25;
}

body .menu nav>a:hover {
    opacity: 1;
    translate: 8px 0;
}

.menu nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 100px;
}

.menu a {
    position: relative;
    color: #f9f9f9;
    font-size: 32px;
    padding: 20px 0 20px 20px;
    text-decoration: none;
    opacity: 0;
    transition: 0.4s;
}

.menu a::after {
    opacity: 1;
}

@keyframes appear {
    0% {
        opacity: 0;
        translate: -30px 0;
    }

    100% {
        opacity: 1;
    }
}

body.open .menu a {
    opacity: 1;
    animation:
        appear 0.35s backwards;
}

/*.story-header {
    /*text-align: center;
    padding: 4% 0 0 8%;
}

.about {
    padding: 4% 0 0 8%;
}*/

.agrid-container {
    width: 75%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 33%);
    gap: 5.5em;
    justify-content: center;
}


.agrid-item {
    text-align: left;
    margin: 0 auto;
}

.agrid-item img {
    width: 100%;
    margin: 0 auto;
}

.ugrid-container {
    width: 75%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 50%);
    gap: 5.5em;
    justify-content: center;
}

.ugrid-item {
    margin: 0 auto;
}

.ugrid-item img {
    width: 100%;
    margin: 0 auto;
}

.ux {
    margin-bottom: 4em;
}

.ux-section {
    margin: 0 auto;
    width: 85%;
    padding-bottom: 4em;
}

.boards {
    display: grid;
    position: relative;
    max-width: 690px;
    height: 388px;
    width: 100%;
    justify-content: center;
    align-self: center;
    margin: 0 auto;
}

.boards img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
    opacity: 0;
}

.boards img.visible {
    opacity: 1;
}

.boards img:last-child {
    opacity: 0;
}

.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    justify-content: center;
    align-self: center;
    align-items: center;
    margin: 0 auto;
    padding: 2% 0 4% 0;
    width: 12%;
    z-index: 9999;
}

button {
    background: none;
    border: none;
    color: #efefef;
}

button #pause:hover {
    cursor: pointer;
}

button #restart:hover {
    cursor: pointer;
}

#text1,
#text2 {
    position: absolute;
    width: 100%;
    display: inline-block;
    font-size: 6rem;
    text-transform: capitalize;
    font-weight: 800;
    color: #efefef;
}

.wordscramble {
    font-size: 6rem;
    font-weight: 800;
    color: #efefef;
    text-transform: capitalize;
}

main {
    background-color: #07030a;
    padding: 6em 12em;
    position: relative;
}
 
main p {
    width: 50%;
}

.content {
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 1em;
    overflow: hidden;
}

.content p {
    width: 100%;
}

aside {
    object-fit: cover;
}

.content img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.btns {
    margin: 0;
    padding-top: 3em;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    justify-content: left;
    align-items: left;
}

.btn1 {
    background: #efefef;
    color: #07030a;
    padding: 1em 2em;
    border: #efefef 2px solid;
    border-radius: 5px;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
    text-align: center;
}

.btn1:hover {
    background: #07030a;
    color: #efefef;
    transform: scale(1.05);
}

footer {
    background: rgb(30, 30, 30);
    text-align: center;
    padding: 2em;
    position: relative;
}

footer a {
    color: rgb(202, 100, 5);
    font-weight: 600;
    text-decoration: none;
}

@media screen and (max-width : 1124px) {

    
    .agrid-container {
        grid-template-columns: repeat(1, 100%);
    }

    .agrid-item img {
        width: 80%;
    }

    .ugrid-container {
        grid-template-columns: repeat(1, 100%);
    }

    .ugrid-item img {
        width: 80%;
    }

}



@media screen and (max-width : 667px) {

    #text1,
    #text2 {
        font-size: 3.5rem;
    }
}