/* RESET RULES */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1.2;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* GLOBAL */

* {
  box-sizing: border-box;
}

:root {
  /* Step 1: Tell the browser you support both themes */
  color-scheme: light dark;

  /* Step 2: Define colors for both modes */

  --color1: #13203d;
  --color2: #3a3354;
  --color3: #5f5fa5;
  --color4: #c4c4e1;
  --color5: #d6d6ea;
  --color6: #f7f7fb;
}

body {
  background-color: light-dark(var(--color4), var(--color2));
}

main {
  margin: 0px;
  padding: 0px;
  max-width: 100vw;
}

/* TYPOGRAPHY */

p,
label {
  font-family: "Raleway", Verdana, Geneva, Tahoma, sans-serif;
  font-size: 17px;
  padding-right: 0.25em;
}

p {
  color: light-dark(#000, #fff);
}

h1,
h2,
h3,
h4,
button,
.h3 {
  font-family: "DM Sans", Helvetica, Arial, sans-serif;
  margin: 0;
  color: light-dark(var(--color2), var(--color4));
}

h1 {
  font-size: 1.5rem;
  text-align: center;
  color: light-dark(var(--color2), var(--color4));
}

h2,
h3,
.h3 {
  font-size: 1.2rem;
  text-align: center;
  margin: 1rem 0.5rem;
}

.whiteBackground h2,
.whiteBackground h3,
.whiteBackground .h3 {
  color: var(--color2);
}
.whiteBackground p {
  color: #000;
}

.samplePicture {
  max-width: 50vw;
  max-height: 100vh;
  margin: 0.25rem;
  border-radius: 10px;
  float: right;
  width: 250px;
  min-width: 30%;
  margin-top: 1rem;
  margin-left: 0.5rem;
  object-fit: contain;
}

hr {
  border: 0;
  height: 2px;
    background-image: linear-gradient(
    to right,
    light-dark(var(--color4), var(--color2)),
    light-dark(var(--color3), var(--color3)),
    light-dark(var(--color4), var(--color2))
  );
}

/* LAYOUT */

#header {
  display: flex;
  justify-content: space-between;
  padding: 1vh 1.5vw;
}

footer {
  margin: 1em 0;
}

/* BUTTONS */

button {
  width: fit-content;
  background-color: light-dark(var(--color6), var(--color1));
  color: light-dark(var(--color2), var(--color4));
  border-color: light-dark(var(--color3), var(--color3));
  border-radius: 0.375rem;
  font-size: 1.2rem;
  margin: 0.2rem;
}

button:hover {
  box-shadow: 0 0 5px 1px light-dark(var(--color3), var(--color3));
}

.flex {
  display: flex;
  flex-wrap: wrap;
}

.container {
  max-width: 45vw;
  margin: 5px;
  border: 2px solid light-dark(var(--color6), var(--color1));
  border-radius: 10px;
}
/* LINKS */

a {
  position: relative;
}

a:link {
  color: light-dark(var(--color1), var(--color5));
}

a:visited {
  color: light-dark(var(--color2), var(--color3));
}

a:hover {
  text-decoration: none;
  background-color: light-dark(var(--color6), var(--color1));
  color: light-dark(var(--color1), var(--color5));
  border-radius: 5px;
}

a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

a:hover::before {
  visibility: visible;
  width: 100%; /* Expands to full width on hover  */
}

.link_noUnderline {
  text-decoration: none;
  font-weight: bold;
}

.link_noUnderline span {
  text-decoration: underline;
  font-weight: lighter;
}

.link-effect {
  /* text-decoration: none; */
  position: relative;
  display: inline-block;
  color: light-dark(#fff, #000);
  padding: 0 1px;
  transition: color ease 0.3s;

  &::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 5%;
    left: 0;
    bottom: 0;
    /* background-color: #ab4ccd; */
    background-color: light-dark(var(--color2), var(--color4));
    transition: all ease 0.3s;
  }

  &:hover {
    color: light-dark(#fff, var(--color3));
    &::after {
      height: 100%;
    }
  }
}

/* ACCORDION */

.accordion {
  background-color: light-dark(var(--color6), var(--color1));
  color: light-dark(var(--color2), var(--color4));
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 0.5rem;
  outline: none;
  transition: 0.4s;
  margin: 0px;
}

.accordion:hover {
  box-shadow: 0 0 5px 5px light-dark(var(--color3), var(--color3));
  font-weight: bold;
}

/* add a plus sign before and a minus sign after expansion */
.accordion:after {
  content: "\002B";
  color: light-dark(var(--color3), var(--color3));
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
  color: light-dark(var(--color3), var(--color3));
}

/* PANELS */

.panel {
  margin: 0.5rem auto;
  padding: 0 0.25rem;
  background-color: light-dark(var(--color4), var(--color2));
  max-height: 0;
  overflow: auto;
  transition: max-height 0.2s ease-out;
  display: block;
}

.panel p {
  /* margin: 0.25rem auto; */
  margin: 1rem auto;
  padding: 0.25rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

/* UTILS */

.centerContent {
  display: flex;
  text-align: center;
  justify-content: center;
  flex-wrap: wrap;
}

.verticallyCenterContent {
  display: flex;
  flex-direction: column;
}

/* others */

.hidden {
  display: none;
  border: none;
}

::selection {
  background-color: #5f5fa588;
  color: light-dark(var(--color1), var(--color5));
}

#socials a,
#note1 a {
  color: light-dark(var(--color2), var(--color5));
}

#socials {
  margin-bottom: 0.5rem;
  margin: 1rem auto;
  font-size: 1.15rem;
  text-align: center;
  border-radius: 0.5rem;
  background-color: light-dark(var(--color6), var(--color1));
  padding: 0 18px;
  max-height: 0;
  transition: max-height 0.2s ease-out;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.logo {
  min-width: 100px;
  text-align: end;
}

#logo {
  width: auto;
  color: light-dark(var(--color2), var(--color4));
}

#pageTitle {
  display: flex;
  margin: 0 auto;
  align-items: center;
}

.social-icons-div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-icons {
  fill: light-dark(var(--color3), var(--color3));
  display: inline;
}

.cls-1 {
  fill: light-dark(var(--color2), var(--color4));
}
.cls-2 {
  opacity: 0.5;
}
.cls-3 {
  fill: #fff;
}

.smallPic {
  width: 40vw;
  max-width: 300px;
  margin-bottom: 1.5em;
}

/* SKIP to main - accessibility */

.skip {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  color: light-dark(#000, #fff) !important; 
}

.skip:focus {
  position: static;
  width: auto;
  height: auto;
}

@media screen and (max-width: 500px) {
  /* Smartphone */

  .panel {
    flex-wrap: nowrap;
  }
}

@media screen and (min-width: 977px) {
  /* Desktop & Big Screen */
  .container {
    max-width: 33vw;
    margin: 15px;
  }
  .smallPic {
    width: 20vw;
    max-width: 500px;
    margin-bottom: 1.5em;
  }
}
