:root {
  /* Primary Brand Colors */
  --color-primary: #0F4C81;
  --color-secondary: #1F6FB2;

  /* Background Gradient */
  --color-bg-gradient-start: #57C4C9;
  --color-bg-gradient-end: #0D4EA6;

  /* Accent Color */
  --color-accent: #3BE08A;

  /* Text Colors */
  --color-text-primary: #0B1F33;
  --color-text-secondary: #6B7C93;

  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-light-gray: #F5F7FA;

  --color-blue:      #3B4FC8;
  --color-violet:    #9B3FD4;
  --color-lavender:  #C07AE8;
  --color-lime:      #7ED957;
  --color-sage:      #5DBF6A;
  --color-ghost:     #F0EEFF;
  --color-navy:      #1A1A3E;
  --color-mist:      #7B5EA7;

  --gradient-hero:   linear-gradient(135deg, #3B4FC8, #7B5EA7, #9B3FD4);
  --gradient-accent: linear-gradient(135deg, #7ED957, #5DBF6A);
  --gradient-dark:   linear-gradient(180deg, #1A1A3E, #3B4FC8);

  /* *  Font Family */
  --font-display: 'Outfit', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* *  Font Size */
  --text-sm: clamp(0.75rem, 1vw, .9rem);
  --text-base: clamp(1rem, 2vw, 1.25rem);
  --text-lg: clamp(1.25rem, 3vw, 2rem);
  --text-xl: clamp(1.5rem, 4vw, 3rem);
  /* Icons */
  --icon-base: clamp(1rem, 2vw, 1.25rem);
  --icon-lg: clamp(1.25rem, 3vw, 2rem);

  /* *  Screens Resolution */
  --screen-xs-min: 320px;
  --screen-xs-max: 480px;

  --screen-small-min: 481px;
  --screen-small-max: 767px;

  --screen-md-min: 768px;
  --screen-md-max: 1023px;

  --screen-mid-lg-min: 1024px;
  --screen-mid-lg-max: 1279px;

  --screen-lg-min: 1280px;
  --screen-lg-max: 1535px;

  --screen-lg-max: 1536px;
  /* * Language Switch sizes per resolution * */

  --language-small-width: clamp(4.2rem, 1vw, 4.8rem);
  --language-small-height: clamp(1.4rem, 1vw, 1.8rem);

  --language-medium-width: clamp(4.5rem, 1vw, 5.2rem);
  --language-medium-height: clamp(1.8rem, 1vw, 2rem);

  --language-lg-width: clamp(5.5rem, 1vw, 6rem);
  --language-lg-height: clamp(2.2rem, 1vw, 2.5rem);

}
*, *::after, *::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-display);
  margin: 0;
  padding: 0;
}

/* ****** Body container styles *******/

.page{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  min-width: 100vw;
  background: var(--gradient-hero);
  margin: 0 auto;
}

/* ****** Header Styles ****** */

.page__header{
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.icon {
  width: 5rem;
  height: 3.5rem;
  position: relative;
  top: 5px;
  left: 1px;
}

.icon__bar{
  width: 2.5rem;
  height: .5rem;
  border-radius: 5px;
  background-color: white;
  margin: 8px auto;
}

.icon:hover {
  border-radius: 15px;
  background-color: var(--color-navy);
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 15%;
  background-color: var(--color-navy);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: baseline;
  color: var(--color-accent);
  font-size: var(--text-lg);
  padding: 15px;
}

.icon, .sidebar, .icon__bar {
  /* display:none; */
  color: transparent;
  background-color: transparent;
  visibility: hidden;
}


#language {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.switch__item {
  display: block;
  position: relative;
  color: var(--color-accent);
  padding: 15px;
  margin: 5px;
  font-size: var(--text-base);
}

.slider {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  width: var(--language-small-width);
  height: var(--language-small-height);
  border-radius: 2rem;
  padding: 3px;
  position: relative;
  cursor: pointer;
  background-color: var(--color-navy);
  -webkit-transition: .4s;
  transition: .4s;
}

.slider__label {
  flex: 1;
  text-align: center;
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: 2rem;
  padding: 2px 0;
  transition: background-color .4s, color .4s;
  z-index: 1;
}

/* ES is active by default (unchecked) */
#language:not(:checked) + .slider .slider__label:first-child {
  background-color: var(--color-lime);
  color: var(--color-navy);
}

/* EN becomes active when checked */
#language:checked + .slider .slider__label:last-child{
  background-color: var(--color-lavender);
  color: var(--color-navy);
}

.sidebar__list {
  list-style: none;
}

/* ****** Main container styles *******/

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  height: 100%;
  margin-bottom: 15px;
}

.hero__profile {
  display: flex;
  margin: 10px auto;
  align-content: center;
}


.hero__image {
  width: 40%;
  margin: auto;
}

.hero__description {
  max-width: 80%;
  display: flex;
  flex-wrap: wrap;
}

.hero__title{
  font-size: var(--text-xl);
  color: var(--color-lime);
  text-align: center;
  width: 100%;
  margin: 15px 0;
  padding: 15px;
}


.hero__text {
  font-size: var(--text-lg);
  text-align: justify;
  flex: 1;
  color: var(--color-white);
  /* width: 60%; */
  padding: 15px;
}

.hero__link {
  color: var(--color-bg-gradient-start);
  font-size: var(--text-base);
  text-align: center;
  text-decoration: underline;
  width: 100%;
  align-self: flex-end;
  justify-self: end;
}

.hero__link:hover {
  cursor:pointer;
}

/* ***** Footer Styling ***** */

.page__footer{
  width: 100%;
}

.hero__announcement{
  color: var(--color-white);
  font-size: var(--text-lg);
  text-align: center;
  width: 100%;
  padding: 15px;
  margin: 15px 0;
}


@media screen and (min-width: 320px) and (max-width: 480px){
  .slider {
    width: var(--language-small-width);
    height: var(--language-small-height);
  }

}

@media screen and (min-width: 481px) {
  .slider {
    width: var(--language-medium-width);
    height: var(--language-medium-height);
  }
}

@media screen and (min-width: 768px) {
  .hero {
    width: 70vw;          /* tighten from 80vw */
  }
  .hero__image {
    width: 30%;           /* shrink image on wider screens */
  }
}

@media screen and (min-width: 1280px) {
  .hero {
    width: 55vw;          /* constrain hero content on wide screens */
    max-width: 900px;     /* hard cap for very large monitors */
  }
  .hero__image {
    width: 25%;
  }
}