* {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 100%;
}

body {
    background-color: white;
}

section {
    padding: 10vh 24vw;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2rem;
    margin-top: 4rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

h4 {
    font-size: 1.6rem;
}

p {
    font-size: 1.4rem;
    line-height: 2.5rem;

    padding: 0.6rem 0;
    margin-bottom: 1rem;
}

img {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;

  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

figure {
    display: flex;
    margin-top: 4rem;
}

figure img {
    width: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
}

figcaption {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.6rem;
}

figcaption a {
    padding: 0.2rem 0;
    margin-top: 0.2rem;
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    font-style: normal;
    font-weight: 500;
    transition: color 0.4s ease, background-color 0.4s ease;
}

figcaption a:hover {
    color: white;
    background-color: black;
}

address {
    display: flex;
    flex-direction: column;

    font-style: normal;
    font-size: 1.4rem;

    gap: 0.4rem;
}

address a {
    padding: 0.2rem 0;
    font-size: 1.6rem;
    color: black;
    text-decoration: none;
    font-style: normal;
    font-weight: 500;
    transition: color 0.4s ease, background-color 0.4s ease;
}

address a:hover {
    color: white;
    background-color: black;
}

svg text, svg rect {
    fill: black;
    transition: fill 0.4s ease;
}

nav {
    position: fixed;
    top: 6vh;
    left: 6vw;
    z-index: 100; 
}

.row {
    display: flex;
    flex-direction: row;
}

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

.divider-row {
    display: block;
    width: 0.4rem;
}

.divider-column {
    display: block;
    height: 0.4rem;
}

.nav-normal {
    height: 4rem;
}

.nav-normal a {
    background-color: white;
    transition: background-color 0.4s ease;
}

.nav-normal button {
    width: 4rem;
    background-color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.4s ease;
}

.nav-normal button svg rect {
  transition: all 0.3s ease;
}

.nav-normal button.active svg .middle-bar {
    opacity: 0;
}

.nav-normal button svg .top-bar {
    transform-origin: 300px 135px;
}

.nav-normal button svg .bottom-bar {
    transform-origin: 300px 465px;
}

.nav-normal button.active svg .top-bar {
    transform: translateY(165px) rotate(45deg);
}

.nav-normal button.active svg .bottom-bar {
    transform: translateY(-165px) rotate(-45deg);
}

.nav-normal a:hover, .nav-normal button:hover {
    background-color: black;
}

.nav-normal a:hover svg text, .nav-normal button:hover svg rect {
    fill: white;
}

.nav-expanded {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 1rem;

    visibility: hidden;
    opacity: 0;
    transition: visibility 0.4s ease, opacity 0.4s ease;
}

.nav-expanded a {
    margin: 0.2rem;
    padding: 0.2rem;

    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 1000;

    color: black;
    background-color: white;
    transition: color 0.4s ease, background-color 0.4s ease;
}

.nav-expanded a:hover {
    color: white;
    background-color: black;
}

.nav-expanded.active {
    visibility: visible;
    opacity: 1;
}

.home {
    height: 80vh;
    box-sizing: border-box;

    padding: 10vh 10vw;

    background-image: url(src/MainPage.png);
    background-size: cover;

    color: white;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.home svg {
    width: 40vw;
    margin-bottom: 20vh;
}

.project {
    margin-top: 6vh;
}

.partners a img {
    width: 10vw;
}

.partners {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.partners a {
    transition: transform 0.4s;
}

.partners a:hover {
    transform: scale(1.1);
}

@media (max-aspect-ratio: 1/1) {
    figure {
        flex-direction: column;
    }
    figure img {
        width: 100%;
    }
    figcaption {
        padding: 1.6rem 0;
    }
}