@import url('https://fonts.googleapis.com/css2?family=Fugaz+One&family=Nunito&display=swap');

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    

}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea {
    font: inherit;
}

/* || VARIABLES */

:root {
    /* FONTS */
    --FF: "Nunito", sans-serif;
    --FF-HEADINGS: "Fugaz One", cursive;
    --FS: clamp(1rem, 2.2vh, 1.5rem);
    --FS-HEADINGS: clamp(0.5rem, 2.5vw, 1.8rem);

    /* COLORS */

        /*ROCALYSIS COLORS*/
        --LOGO-MAINCOLOR: #aaf683;
        --TAGLINE-TEXTCOLOR: #aaf683;
        --PARCHMENT-BGCOLOR: #fefee3;
        --BUSINESS-TEXTFIELDCOLOR: #fefee3;
        --BUSINESS-BGCOLOR: #f4e285;
        --BACKGROUND-BORDER: #2b9348;

        /* OLD COLORS */
        --BGCOLOR-FADE: rgb(160, 252, 183);
        --BGCOLOR: rgb(44, 61, 212);
        --BGIMAGE: linear-gradient(to bottom, var(--BGCOLOR), var(--BGCOLOR-FADE));
        --BODY-BGCOLOR: #fff;
        --BORDER-COLOR: #333;
        --BUTTON-COLOR: #000;
        --FONT-COLOR: #000;
        --HEADER-BGCOLOR: #00000093;
        --HEADER-COLOR: #fff;
        --HERO-BGCOLOR: rgba(51, 178, 51, 0.75);
        --HERO-COLOR: #fff;
        --HIGHLIGHT-COLOR: rgb(51, 178, 51);
        --LINK-ACTIVE: orange;
        --LINK-COLOR: #000;
        --LINK-HOVER: hsla(0, 0%, 0%, 0.6);
        --NAV-BGCOLOR: #fff;
        --CONSTRUCTION-COLOR: #df8243;

    /* BORDERS */
    --BORDERS: 1px solid var(--BORDER-COLOR);
    --BORDER-RADIUS: 15px;

    /* STANDARD PADDING */
    --PADDING-TB: 0.25em;
    --PADDING-SIDE: 2.5%;

    /* STANDARD MARGINS */
    --MARGIN: clamp(1em, 2.5vh, 1.5em) 0;
    --HEADING-MARGIN: clamp(1em, 2vw, 1.5em) auto;
}

@media (prefers-color-scheme: dark) {
    :root {
        --BGCOLOR-FADE: grey;
        --BGCOLOR: #000;
        --BODY-BGCOLOR: #333;
        --BORDER-COLOR: #f5f5f5;
        --BUTTON-COLOR: #000;
        --FONT-COLOR: whitesmoke;
        --HEADER-COLOR: whitesmoke;
        --HERO-COLOR: #333;
        --HIGHLIGHT-COLOR: whitesmoke;
        --LINK-ACTIVE: rgb(252, 200, 103);
        --LINK-COLOR: whitesmoke;
        --LINK-HOVER: orange;
        --NAV-BGCOLOR: rgb(20, 20, 20);
        --CONSTRUCTION-COLOR: #eaff29;
    }
}

/* || UTILITY CLASSES */
.offscreen {
    position: absolute;
    left: -9999px;
}

.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: 100%;
    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-HEADINGS);
    font-size: var(--FS-HEADINGS);
    letter-spacing: 0.1em;
}

h2, h3 {
    margin-bottom: 1em;
    color: var(--HIGHLIGHT-COLOR);
}

h3 {
    font-size: 1.2rem;
}


p {
    line-height: 1.5;
    margin-bottom: 1em;
}

a:any-link {
    color: var(--LINK-COLOR);
    
}

a:hover, a:focus-visible {
    color: var(--LINK-HOVER);
    box-shadow: 0 0 10px var(--BORDER-COLOR);
}

a:active {
    color: var(--LINK-ACTIVE);

}

/* || HEADER */

.hero {
    display: flex;
    flex-direction: row-reverse;
    background-color: var(--HEADER-BGCOLOR);
    position: relative;
    min-height: fit-content;
    width: 100%;
    align-items: center;
    justify-content: center;

}

header {
    display: flex;
    position: auto;
    top: 0;
    z-index: 1;

}

.header__h1 {
    
    display: flex;
    
    flex-shrink: inherit;
    text-align: left;
    margin: auto 0;
    height: auto;
    max-width: 50%;
   
    opacity: 0;
    position: sticky;
    
   /* background-color: var(--HEADER-BGCOLOR); */
    color: var(--HEADER-COLOR);
    padding: var(--PADDING-TB) var(--PADDING-SIDE); 
    animation: showWelcome 1.8s ease-in-out 0.2s forwards;
}

.header__nav {
    background-color: var(--NAV-BGCOLOR);
    border-bottom: var(--BORDERS);
    font-weight: bold;
    box-shadow: 0 6px 5px -5px var(--BORDER-COLOR);
}

.header__nav__ul {
    padding: var(--PADDING-TB) var(--PADDING-SIDE);
    list-style-type: none;
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
}

.hero__logo {
    margin: 1% 1% 1% 1%;
    max-width: 80%;
    height: auto;
    background-color: var(--HEADER-BGCOLOR);
    border-radius: var(--BORDER-RADIUS);
    position-anchor: initial;
    
    
    
}

.hero__h2 {
    background-color: var(--HERO-BGCOLOR);
    color: var(--HERO-COLOR);
    padding: 0.25em 0.5em;
    letter-spacing: 0.1rem;
    text-shadow: 2px 2px 5px var(--BORDER-COLOR);
    position: absolute;
    top: -100px;
    left: 20px;
    animation: showWelcome 10s ease-in-out 10s forwards;
}

@keyframes showWelcome {
    0% {
       
        transform: skew(0deg, -5deg) scaleY(0);
        
    }

    75% {
       
        transform: skew(0deg, -5deg) scaleY(.8);
        
    }

    75% {
       
        transform: skew(10deg, -5px) scaleY(1);
        
    }

    100% {
       
        transform: skew(0deg, 0deg) scaleY(1);
        opacity: 100;
    }
}

/* || FOOTER */

.footer {
    position: sticky;
    bottom: 0;
    background-color: var(--HEADER-BGCOLOR);
    color: var(--HEADER-COLOR);
    padding-top: var(--PADDING-TB);
    padding-right: var(--PADDING-SIDE);
    padding-left: var(--PADDING-SIDE);
    text-align: center;
}

/* || MAIN */

.main__h3 {
    font-size: 1.2rem;
    margin: 0.5em 0;
    font-family: var(--FF);
    display: grid;
    align-items: center;
    justify-content: center;
    font-style: italic;
    color: var(--CONSTRUCTION-COLOR);

    
}

.main {
    padding: var(--PADDING-TB) var(--PADDING-SIDE);
}

.main__article {
    scroll-margin-top: 6.5rem;
    margin: var(--MARGIN);
}

.main__article:first-child {
    margin-top: 1em;
}

.main__article:last-child {
    min-height: calc(100vh - 20rem);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

.definition {
    display: flex;
    flex-direction: column;
    align-items: left;
    position: relative;
    



    font-family: var(--FF);
    font-size: var(--FS);
    line-height: 1.5;
    text-align: left;

    padding: 1em;
    margin: 1.1em;
}

/* || ABOUT */

.about__trivia {
    margin: var(--MARGIN);
}

.about__trivia-answer {
    margin-top: 1em;
}

/* || CONTACT */

.contact {
    display: grid;
    flex-direction: column;
    align-items: left;
    position: relative;
    border: var(--BORDERS);
    border-radius: var(--BORDER-RADIUS);

    box-shadow: 0 0 10px var(--BORDER-COLOR);

    font-family: var(--FF);
    font-size: var(--FS);
    line-height: 1.5;
    text-align: left;

    padding: 1em;
    margin: 1em;
    
}

.contact__h2 {
    display: flex;
    align-items: top;
}

.contact__fieldset {
    border: none;
}

.contact__p {
    margin: 1em 0;
}

.contact__label {
    display: block;
    font-weight: bold;
}

.contact__input,
.contact__textarea,
.contact__form {
    padding: 0.5em;
    border-radius: var(--BORDER-RADIUS);
    border-width: 2px;
    width: 100%;
}

.contact__button {
    font-weight: bold;
    padding: 0.5em;
    border-radius: var(--BORDER-RADIUS);
    background-color: var(--HIGHLIGHT-COLOR);
    color: var(--BUTTON-COLOR);
}

/* || MENU */

thead, 
tbody, 
tfoot, 
tr {
    display: contents;
    
}


thead th:first-child {
    border-top-left-radius: var(--BORDER-RADIUS);
}

thead th:last-child {
    border-top-right-radius: var(--BORDER-RADIUS);
}

tfoot td {
    border-bottom-left-radius: var(--BORDER-RADIUS);
    border-bottom-right-radius: var(--BORDER-RADIUS);
}

/* @media screen and (min-width: 576px) {
    .header__h1::before {
        content: "🧪 ";
    }

    .header__h1::after {
        content: " 🧪";
    }


} */
@media screen and (max-width: 850px) {
        .js-tablist__item {
            flex: 1 0 100%;
        }
        
        .js-tablist__link {
            width: 100%;
        }
        
        .js-tablist {
            flex-direction: column;
            align-items: left;
        }

}

/* --------------- styles for tabs -----------------------*/

.invisible {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}


.example-tabs-tabs__list {
  margin: 0;
  padding: 0;


}

.example-tabs-tabs__item {
  display: inline-block;


}

.example-tabs-tabs__link {
  display: inline-block;
  padding: 1em  2em;
  background: #355a2c;
  cursor: pointer;
  color: #ffffff;
  

}

[aria-selected="true"].example-tabs-tabs__link {
  color: #000;
}

.example-tabs-tabs__content {
  background: #00000000;
  padding: 1em;
}

[aria-hidden="true"].example-tabs-tabs__content {
  display: none;
}

.js-tablist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    padding: .5em;
}


.js-tablist__link {
    align-items: left;

}

.js-tablist__link {
    display: inline-block;
    padding: .5em 2em;
    text-decoration: none;
    border-radius: var(--BORDER-RADIUS);
    margin: 0.1em;
    cursor: pointer;
    align-self: left;


}

.js-tabcontent {

    padding: 1em;
    margin: 1em;

    border: var(--BORDERS);
    border-radius: var(--BORDER-RADIUS);

    box-shadow: 0 0 10px var(--BORDER-COLOR);

    font-family: var(--FF);
    font-size: var(--FS);
    line-height: 1.5;
    text-align: left;

    overflow: auto;
    max-width: 100%;
    min-height: 200px;
    box-sizing: border-box;

}

.js_tabs {
    display: flex;
    flex-direction: column;
    align-items: left;
    position: relative;
    margin-left: 50%;
    margin-top: 0em;
    margin-right: 40%;
}