:root {
  --clr-primary-400: rgba(57, 94, 102, 1);
  --clr-primary-900: rgba(34, 34, 34, 1);

  --clr-neutral-100: rgba(253, 247, 250, 1);
  --clr-neutral-400: rgba(250, 192, 94, 1);

  --clr-accent-300: rgba(139, 189, 142, 1);
  --clr-accent-500: rgba(238, 99, 82, 1);

  --clr-shadow-300: rgba(0, 0, 0, 0.25);
  --clr-highlight-300: rgba(255, 214, 146, 1);

  --ff-primary: 'Hubballi', cursive;
  --ff-secondary: 'Oswald', sans-serif;
  --ff-accent: 'Lora', serif;

  --ff-body: var(--ff-primary);
  --ff-heading: var(--ff-secondary);
  
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi-bold: 600;
  --fw-bold: 700;

  --fs-350: 1rem;       /* 16 px */
  --fs-400: 1.125rem;   /* 18 px */
  --fs-450: 1.25rem;    /* 20 px */
  --fs-500: 1.5rem;     /* 24 px */
  --fs-700: 2rem;       /* 32 px */
  --fs-800: 2.25rem;    /* 36 px */
  --fs-900: 3rem;       /* 48 px */
  --fs-950: 6rem;       /* 96 px */
  --fs-1000: 8rem;      /* 128 px */

  --fs-body: var(--fs-400);
  --fs-primary-heading: var(--fs-700);
  --fs-accent-heading: var(--fs-900);
  --fs-large-heading: var(--fs-950);
  --fs-nav: var(--fs-500);
  --fs-button: var(--fs-400);
  --fs-stat: var(--fs-1000);



}

@media (min-width: 50em) {
  :root {
    --fs-button: var(--fs-450);
  }

}


/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style-type: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

html {
	scroll-behavior: smooth;
}

html, 
body {
  height: 100%;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  overscroll-behavior: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
   scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Utility Classes */

.text-primary-400 {
  color: var(--clr-primary-400);
}

.text-primary-900 {
  color: var(--clr-primary-900);
}

.text-neutral-100 {
  color: var(--clr-neutral-100);
}

.text-neutral-400 {
  color: var(--clr-neutral-400);
}

.text-accent-300 {
  color: var(--clr-accent-300);
}

.text-accent-500 {
  color: var(--clr-accent-500);
}

.bg-primary-400 {
  background-color: var(--clr-primary-400);
}

.bg-primary-900 {
  background-color: var(--clr-primary-900);
}

.bg-neutral-100 {
  background-color: var(--clr-neutral-100);
}

.bg-neutral-400 {
  background-color: var(--clr-neutral-400);
}

.bg-accent-300 {
  background-color: var(--clr-accent-300);
}

.bg-accent-500 {
  background-color: var(--clr-accent-500);
}

.fw-regular { font-weight: var(--fw-regular); }
.fw-medium { font-weight: var(--fw-medium); }
.fw-semi-bold { font-weight: var(--fw-semi-bold); }
.fw-bold { font-weight: var(--fw-bold); }

.ff-primary { font-family: var(--ff-primary); } 
.ff-secondary { font-family: var(--ff-secondary); } 
.ff-accent { font-family: var(--ff-accent); } 

.fs-primary-heading { 
  font-size: var(--fs-primary-heading);
}

.fs-accent-heading {
  font-size: var(--fs-accent-heading);
}

.fs-large-heading {
  font-size: var(--fs-large-heading);
}

.fs-button {
  font-size: var(--fs-500);
}

.style-name {
  font-family: var(--ff-secondary);
  font-size: var(--fs-700);
}


/* general styling */

body {
  font-size: var(--fs-body);
  font-family: var(--ff-body);
  color: var(--clr-primary-900);
  background-image: url(./images/BackgroundGradient.png);
  background-size: cover;
  background-attachment: fixed;

}

button {
  font-size: var(--fs-button);
  font-family: var(--ff-secondary);
  color: var(--clr-primary-400);
  background-color: var(--clr-neutral-400);
  border-radius: 23px;
  border: 2px solid var(--clr-primary-400);
  width: 164px;
  min-width: 150px;
  height: 46px;
  filter: drop-shadow(5px 4px 0 var(--clr-shadow-300));
}

button:hover {
  background-color: var(--clr-highlight-300);
}
.not-default {
  color: transparent;
  background-color: transparent;
  width: auto;
  min-width: 30px;
  height: auto;
  filter: none;
  border: none;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  min-width: 130px;
  height: 46px;
  flex-shrink: 1;
}

.button img, .button svg {
  position: relative;
  left: 14px;
}

.secondary-button {
  color: var(--clr-accent-500);
  background-color: var(--clr-neutral-100);
  border-color: var(--clr-accent-500);
  min-width: 130px;
  /* height: 46px; */ 
}

.secondary-button:hover {
  background-color: var(--clr-accent-500);
  border-color: var(--clr-neutral-100);
  color: var(--clr-neutral-100);
}

.secondary-button:hover svg path {
  fill: var(--clr-neutral-100);
}

.not-default:hover {
  background-color: transparent;
}

.container {
  justify-content: center;
  margin-left: 13vw;
  margin-right: 13vw;
}

.flex {
  display: flex;
}

.padding-block-100 {
  padding-bottom: 20px;
}

.padding-block-500 {
  padding-bottom: 70px;
}

.padding-block-900 {
  padding-bottom: 146px;
}

/* Menu/Header Section */

.primary-header {
  padding-top: 8vh;
}

.menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-500);
  gap: 20px;
}

.menu-toggle {
  display: none;
  min-height: 25px;
  width: 25px;
}

.menu a img {
  min-width: 32px;
}

.nav-list {
  display: flex;
  gap: 69px;
}

.menu-item {
  text-decoration: none;
  color: var(--clr-primary-400);
}

.menu-item:hover {
  color: var(--clr-shadow-300);
}

.selected {
  text-decoration: underline;
}

.selected:hover {
  color: var(--clr-primary-400);
}

.mobile-flow {
  display: flex;
  justify-content: space-between;
}

.mobile-only {
  display: none;
}


@media (max-width: 60em) {

  .nav-list {
    font-size: var(--fs-350);
    gap: 45px;
  }

  .menu button {
    font-size: var(--fs-350);
    min-width: 135px;
  }

  .home-icon {
    min-height: 25px;
    width: 25px;
  }

  .menu {
    gap: 20px;
  }

  .container {
    margin-left: 6vw;
    margin-right: 6vw;
  }

  .padding-block-900 {
    padding-bottom: 70px;
  }

  .open-menu {
    background-color: var(--clr-highlight-300);
  }

}


@media (max-width: 40em) {

  .padding-block-900 {
    padding-bottom: 40px;
  }

  .primary-header {
    padding-top: 6vh;
  }

  .mobile-only {
    display: block;
  }

  .line {
    display: block;
    width: 100%;
    border-bottom: 2px solid var(--clr-primary-400);
    opacity: 20%;
    margin-bottom: 20px;
  }

  .open-menu {
    height: 100vh;
    margin-bottom: 2rem;

  }

  .menu-toggle {
    display: block;
    min-height: 25px;
    width: 25px;
  }

  .menu button {
    font-size: var(--fs-350);
    min-width: auto;
  }

  .menu-item {
    font-size: var(--fs-500);
  }

  .primary-navigation {
    margin-left: 2rem;
    padding-top: 1.875rem;
  }

  .mobile-flow {
    width: 100%;
  }

  .hidden {
    display: none;
  }  

  .menu {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 20px;
  }

  #hero-mobile .logo {
    width: 80%;
    margin-bottom: 30px;
    padding-bottom: 0;

  }
}

/* Hero Section */

.logo {
  width: 50vw;
  margin: auto;
  padding-bottom: 53px;
}

.slogan {
  font-size: var(--fs-800);
  font-family: var(--ff-accent);
  font-style: italic;
  text-align: center;
  padding-bottom: 106px;
  opacity: 85%;
  line-height: 46px;
}


.hero {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.center {
  display: flex;
  justify-content: center;
}


@media (max-width: 50em) {
  .slogan {
    font-size: var(--fs-450);
    padding-bottom: 40px;
    line-height: 30px;
  }
  .fs-large-heading {
    font-size: var(--fs-800);
  }

  .logo {
    width: 75vw;
  }

  .padding-block-500 {
    padding-bottom: 35px;
  }

}

@media (max-width: 40em) {

  .hidden {
    display: none;
  }  

  .slogan {
    padding-bottom: 0px;
  }

  .padding-block-500 {
    padding-bottom: 45px;
  }

}


/* Card Section */

.two-columns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.coder {
  height: 100%;
}

.card {
  background-color: var(--clr-neutral-100);
  border: 3px solid var(--clr-primary-900);
  border-radius: 38px;
  padding: 46px;  
  flex-grow: 3;
  max-width: 42vw;
  filter: drop-shadow(10px 7px 0 var(--clr-shadow-300));
}

.card p {
  padding-bottom: 22px;
}
.card h1 {
  padding-bottom: 18px;
}

.inline {
  display: flex;
  justify-content: end;
  gap: 15px;
}

.inline a {
  text-decoration: none;
  width: 180px;
  min-width: 130px;
  flex-shrink: 1;
}

.secondary-button {
  width:100%
}

@media (max-width: 60em) {
  .button {
    font-size: var(--fs-350);
    flex-basis: auto;
  }

  .cutoff {
    max-height: 30px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 10px;
  }
}

@media (max-width: 50em) {
  
  .card {
    padding: 31px;
    max-width: 90vw;
  }

  .button {
    min-width: 130px;
    /* max-width: 40%; */
  }

  .secondary-button {
    min-width: 130px;
  }

  .coder {
    display: none;
  }

}

@media (max-width: 40em) {

  .hidden {
    display: none;
  }  

}

@media (max-width: 35em) {
  .inline {
    display: block;
    align-items: center;
  }

  

  .button {
    margin-bottom: 10px;
    width: 100%
  }
}


/* Banner Section */

.full-banner {
  width: 100vw;
  text-align: center;
  margin:0;
  padding-top: 3rem;
}

.full-banner h1 {
  padding-bottom: 2rem;
}

.flow {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--fs-1000);
  color: var(--clr-neutral-100);
}

.flow p {
  font-size: var(--fs-400);
}

.stat {
  position: relative;
  bottom: 93px;
}

.right {
  right: 5%;
}

.left {
  left: 5%;
}

.mobile {
  display: none;
}

@media (max-width: 60em) {

  .full-banner {
    padding-top: 2rem;
    padding-bottom: 2rem;

  }

  .full-banner h1 {
    padding-bottom: 0px;
    /* padding-top: 2rem; */
  }

  .flow {
    gap: 100px;
  }

  .right, .left {
    right: 0;
    left: 0; 
  }

  .stat {
    position: static;
  }
  
  .large-hidden {
    display: none;
  }

}

@keyframes fadeIn {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 50em) {

  .mobile {
    display: none;
    
  }

  .mobile.active {
    display: block;
    width: 100%;
  }

  .full-banner {
    padding-top: 0px;
    padding-bottom: 0px;
  }

  .full-banner h1 {
    margin: auto;
    max-width: 95%;
    padding-bottom: 0;
    position: relative;
    top: 4rem;
  }

  .flow {
    flex-direction: column;
    height: 100%;
    justify-content: end;
    /* position: relative;
    top: 2rem; */
  }
  
  .stat {
    display: none;
  }

  .stat.active {
    animation: fadeIn 5s;
    display: block;
    position: relative;
    top: 6rem;

  }

}

@media (max-width: 40em) {

  .hidden {
    display: none;
  }  

}

@media (max-width: 35em) {

  .fs-accent-heading {
    font-size: var(--fs-700);
  }
}


/* Contact Form */

form .inline {
  justify-content: start;
  gap: 1%;
}

#name {
  width: 38%;
}

#email {
  width: 61%;
}

#subject {
  width: 100%;
}

#message {
  width: 100%;
  height: 300px;
}

input, textarea{
  font-size: var(--fs-500);
  border: 2px solid var(--clr-primary-900);
  border-radius: 38px;
  padding-left: 34px;
  margin-bottom: 15px;
  height: 57px;
}
textarea {
  padding-top: 21px;
}

input::placeholder, textarea::placeholder{
  color: var(--clr-primary-900);
  opacity: 0.65;
}

form button {
  margin-left: auto;
}

@media (max-width: 35em) {
  #name {
    width: 100%;
  }
  
  #email {
    width: 100%;
  }

}

/* About Page */

.theo {
  height: 100%;
  border: 3px solid var(--clr-primary-900);
  border-radius: 38px;
  filter: drop-shadow(10px 7px 0 var(--clr-shadow-300));
}

.about-columns {
  /* display: flex; */
  /* justify-content: center; */
  /* align-items: center; */
  gap: 32px;
}

.group-img {
  display: inline;
  position: relative;
  transform: translate(0, -135px);
}

.translate-banner {
  position: relative;
  transform: translate(0, -135px);
  padding-top: 30px;
}

.flow-about {
  display: flex;
  justify-content: center;
  align-items: center;
}

.team-name {
  padding-left: 7vw;
  padding-right: 7vw;
  padding-bottom: 30px;

}

.team-name a p {
  color: var(--clr-neutral-100);
  text-decoration: underline;
}

.small-alternate {
  display: none;
}

.no-bottom-padding {
  padding-bottom: 0;
}

@media (max-width: 75em) {
  .about-columns {
    display: block;
    padding-top: 50px;
  }

  .about-columns .card {
    max-width: 100%;
    margin-bottom: 48px;
  } 

  .theo {
    width: 100%;
    height: auto;
  }

  .group-img {
    transform: translate(0, -40px);
  }

  .translate-banner {
    transform: translate(0, -40px);
  }
}

@media (max-width: 45em) {
  .group-img {
    transform: translate(0, -10px);
  }
  .translate-banner {
    transform: translate(0, -10px);
  }
}

@media (max-width: 35em) {
  .style-name {
    font-size: var(--fs-500);
  }

  .small-alternate {
    display: inline;
  }

  .large-alternate {
    display: none;
  }

  .group-img {
    transform: translate(0, 20px);
  }

  .translate-banner {
    transform: translate(0, 0px);

  }
}

/* Donation Page */

.donation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.donation input, .paypal {
  width: 50vw;
}

.padding-block-100 .slogan {
  padding-bottom: 64px;
}

@media (max-width: 60em) {
  div.flow.donation {
    gap: 0;
  }
  .donation input, .paypal {
    width: 70vw;
  }
}

@media (max-width: 50em) {
  div.flow.donation {
    gap: 0;
    height: 40%;
  }
}