@import url('https://fonts.googleapis.com/css2?family=Fugaz+One&family=Nunito&display=swap');

/* || Reset */
*,
*::after,
*::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea {
    font: inherit;
}

/* || VARIABLES */  

:root {
    /*font */
    --FF : "Nunito", sans-serif;
    --FF-HEADING: "Fugaz One", cursive;
    --FS: clamp(1rem,  2.2vh, 1.5rem);
    /* Mordern css the clamp will make sure at minimum font size would be 1rem and maximum would be 1.5rem so the web page will respond according the size of the screen 

    /* colors */ 
    --BGCOLOR-FADE: rgb(255,220,260);
    --BGCOLOR: orange;
    --BGIMAGE: linear-gradient(to bottom,var(--BGCOLOR),var(--BGCOLOR-FADE));
    --BODY-BGCOLOR: #fff;
    --BORDER-COLOR: #333;
    --FONT-COLOR : black;
    --HEADER-BGCOLOR: #000;
    --HEADER-COLOR:#fff;
    --HERO-BGCOLOR:rgb(51, 156, 51,0.75 );
    --HERO-COLOR:#FFF;
    --HIGHLIGHT-COLOR: rgb(51, 156, 51);
    --LINK-ACTIVE :orange;
    --LINK-COLOR: #000;
    --LINK-HOVER: hsla(0,0%,0%,0.6);
    --NAV-BGCOLOR:#fff;


    /* BORDER */
    --BORDERS: 1px solid var(--BORDER-COLOR);

    /* STANDERD PADDING */
    --PADDING-TB:0.25EM;
    --PADDING-SIZE:2.5%;

    /* STANDERD MARGIN */
    --MARGINE : clamp(1em, 2.5vh, 1.5em) 0;

}
/* over write the variables */
@media (prefers-color-scheme: dark) {
    :root {
        --BGCOLOR : #000;
        --BGCOLOR-FADE: grey;
    }
}



/* || Utility Classes */
.offscreen {
    position: absolute;
    left: -10000px;
}

.nowrap {
    white-space: nowrap;
}

.center {
    text-align: center;
}

/* || GENERAL STYLES */
html {
    scroll-behavior: smooth;
    font-size: var(--FS);
    font-family: var(--FF);
    background-color: var(--BGCOLOR);
    background-image: var(--BGIMAGE);

}

body {
    background-color: var(--BODY-BGCOLOR);
    color: var(--FONT-COLOR);
    min-height: 100vh;
    max-width: 800px;
    margin: 0 auto;
    border-left: var(--BORDERS);
    border-right: var(--BORDERS);
    box-shadow: 0 0 10px var(--BORDER-COLOR);
}

h1, h2, h3 {
    font-family: var(--FF-HEADING);
    letter-spacing: 0.1em;
}

h2, h3 {
    margin-bottom: 1rem;
    color: var(--HIGHLIGHT-COLOR);
}

p {
    line-height: 1.5;
}
a:any-link {
    color: var(--LINK-COLOR) ;
}

a:hover, a:focus-visible {
    color: var(--LINK-HOVER);
    text-decoration: black underline;
}
a:active {
    color: var(--LINK-ACTIVE);
}

/* || Header */

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

.header__h1 {
    text-align: center;
    background-color: var(--HEADER-BGCOLOR);
    color: var(--HEADER-COLOR);
    padding: var(--PADDING-TB) var(--PADDING-SIZE);
}

.header__nav {
    background-color: var(--NAV-BGCOLOR);
    border-bottom: var(--BORDERS);
    font-weight: bold;
    box-shadow: 0 6px 5px -5px var(--BORDER-COLOR);
}

.header__ul {
    padding: var(--PADDING-TB) var(--PADDING-TB);
    list-style-type: none;
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;

}
.header a {
    text-decoration: none;
}

/* || HERO */

.hero {
    position: relative;
}

.hero__h2 {
    background-color: var(--HERO-BGCOLOR);
    color: var(--HERO-COLOR);
    padding: 0.25em o.5em;
    letter-spacing: 0.1rem;
    text-shadow: 2px 2px 5px var(--BORDER-COLOR);
    position: absolute;
    left: 20px;
    top: -100px;
    animation: showwelcome 0.5s ease-in-out 1s forwards;
}


@keyframes showwelcome {
    0% {
        top: -20px;
        transform: skew(0deg, -5deg) scaleY(0);
    }
    80% {
        top: 30px;
        transform:skew(10deg, -5deg) scaleY(1.2) ;
    }
    
    100% {
        top: 20px;
        transform:skew(-10deg, -5deg) scaleY(1) ;
    }
    
}

/*|| FOOTER */
.footer {
    display: block;
    position: sticky;
    bottom: 0;
    background-color: var(--HEADER-BGCOLOR);
    color: var(--HEADER-COLOR);
    padding: var(--PADDING-TB) var(--PADDING-SIZE);
    text-align: center;
}

/* MAIN */
.main {
    padding: var(--PADDING-TB) var(--PADDING-SIZE);
}
 .main_article {
    scroll-margin-top: 6.5rem;
    margin: var(--MARGINE);
 }

.main_article {
    margin-top: 1rem;
}

.main_article:first-child {
    margin-top: 1rem;
}
.main_article:last-child {
    min-height: calc(100vh - 20rem);
}

/* ABOUT */
.about__trivia {
    margin:var(--MARGINE);

}
.about__trivia__answer {
    margin-top: 1em;
}

/* CONTACT */

.contact__h2 {
    margin: 0;
}
.contact__fieldset {
    border: none;
}
.contact__p {
    margin: 1rem 0;
}
.contact__lable {
    display: block ;
    font-weight: bold;
}
.contact__input, 
.contact__textarea {
    padding: 0.5em;
    border-radius: 15px;
    border-width: 2px;
    width: 100%;
}

.contact__button {
    padding: 0.5em;
    border-radius: 15px;

}
.button__p {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.contact__button:hover {
    background-color: var(--HEADER-BGCOLOR);
    color: var(--HEADER-COLOR);
}

/* || menu */

thead, tbody, tfoot, tr {
    display: contents;
}

.menu_container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "hd1 hd2 hd3"
        "cr cr1 cr1p"
        "cr cr2 cr2p"
        "cr cr3 cr3p"
        "sf sf1 sf1p"
        "sf sf2 sf2p"
        "sf sf3 sf3p"
        "cs cs cs";
    gap: 0.1em;
    margin: 1em;

}

.menu__cr {
    grid-area: cr;
}
.menu__sf {
    grid-area: sf;
}
.menu__cs {
    grid-area: cs;

}
.menu__cr, 
.menu__sf,
.menu__cs,
.menu__header {
    color: var(--HIGHLIGHT-COLOR) ;
    font-weight: bold;
    height: 100%;
    display: grid;
    place-content: center;
}


.menu__header, .menu__items {
    width: 100%;
    padding: 1em;
    border: medium ridge var(--BORDER-COLOR);
}
.menu__items {
    display: grid;
    place-content: center;
}

thead th:first-child {
    border-top-left-radius: 15px;
}
thead th:last-child {
    border-top-right-radius: 15px;
}
tfoot td {
    border-bottom-left-radius: 15px;
}
tfoot td {
    border-bottom-right-radius: 15px;
}