@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&family=Comic+Neue:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: Poppins, 'Segoe UI', sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
      body::-webkit-scrollbar{
      display:none;
  }
    /*For bookmark links*/
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #ff7900;


}

main {
    padding: min(5em, 7%);
}

main p {
    margin-top: .35em;
}

nav {
    background-color: #24262b;
    background-size: cover;
    border-bottom: 1px solid var(--hover-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav .home-li {
    margin-right: auto;
}

nav li {
    display: flex;
    align-items: center;

}

nav h1 {
    display: flex;
    align-items: center;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
}

nav a {
    display: flex;
    text-decoration: none;
    color: var(--text-color);
    padding: 1em 2em;
    transition: background-color 150ms ease;
    font-size: 16px;
    text-transform: capitalize;
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    color: #bbbbbb;
    display: block;
    transition: all 0.3s ease;
}

nav a:hover {
    transition: all 0.6s ease-in-out;
    background-color: brown;
    color: #ffffff;
    transform: scale(1.09);
}

nav a.active-link {
    border-bottom: 2px solid white;
}

nav a.accent-link {
    background-color: var(--accent-color);
}

#open-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
}

#close-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
}

#overlay {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
}

.skip-link {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.skip-link:focus {
    opacity: 1;
    pointer-events: auto;
    outline: 3px solid #ffffff;
}

@media screen and (max-width: 1100px) {

    #open-sidebar-button,
    #close-sidebar-button {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(15em, 100%);
        z-index: 10;
        border-left: 1px solid var(--hover-color);
        transition: right 300ms ease-in-out;
    }

    nav.show {
        right: 0;
    }

    nav.show~#overlay {
        display: block;
    }

    nav ul {
        width: 100%;
        flex-direction: column;
    }

    nav a {
        width: 100%;
        padding-left: 2.5em;
    }

    nav a.active-link {
        border-bottom: none;
    }

    nav .home-li {
        margin-right: unset;
    }
}

h1 {
    font-size: 50px;
    margin-top: 20px;
    text-align: center;
    margin-left: 30px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;

}

h1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    column-gap: 5px;
}

h1::before,h1::after {
    content: "";
    height: 2px;
    background-color: black;
    display: block;
}

div {
    margin: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    height: auto;
    width: auto;
}

img {
    display: flexbox;
    margin-top: 20px;
    margin-bottom: 20px;
    height: 300px;
    width: 300px;
    justify-content: space-between;
    border-left: 10px solid black;
    border-top: 10px solid black;
    border-right: 10px solid transparent;
    border-bottom: 10px solid transparent;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;

}

img:hover {
    transform: scale(1.09);
    transition: 0.6s;
}