:root {
    --psipurple: #7E51FF;
    --psigrey: rgba(0, 0, 0, .6);
    --psiblack: #000000;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--psiblack);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    font-weight: 400;
}

h1 {
    font-weight: 600;
    font-size: 32px;
}

h2 {
    font-weight: 600;
    font-size: 16px;
}

p {
    font-weight: 400;
    font-size: 16px;
    line-height: 180%;
}

#nav h1 a {
    text-decoration: none;
    /* removes underline */
    color: inherit;
    /* same color as parent (h1) */
    font: inherit;
    /* inherit font family, size, weight */
    display: inline-block;
    /* optional: makes spacing consistent */
}

.bold {
    font-weight: 600;
}

#container {
    max-width: 1280px;
    padding: 12rem 2rem 0rem 2rem;
    /* padding: 137px 120px 0px 120px; */
    /* background-color: aqua; */
}

#header {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 128px 128px 128px repeat(2, 1fr);
    margin: 0 0 10em 0;
    width: 100%;
}

.block {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 5em 0 5em 0;
}

.title {
    width: 100%;
}

.text-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.text-container>p {
    width: 48%;
}

#footer {
    background-color: #7449FF;
;
    width: 100%;
    display: flex;
    justify-content: center;
}

#footer-container {
    width: 100%;
    max-width: 1280px;
    padding: 4rem 2rem 4rem 2rem;
    font-size: 16px;
    color: white;
    display: flex;
    flex-direction: column;
}

#name {
    display: flex;
    justify-content: space-between;
    padding: 4rem 0 4rem 0;
    font-size: 2em;
}

#name > button {
    border: none;
    width: 214px;
    height: 37;
    border-radius: 100px;
    padding: 4px 16px 4px 16px; 
    font-size: 16px;
}

#name > button:hover {
    border: none;
    width: 214px;
    height: 37;
    border-radius: 100px;
    padding: 4px 16px 4px 16px; 
    font-size: 16px;
    cursor: pointer;
}

#contacts {
    display: flex;
    justify-content: space-between;
    padding: 4rem 0 4rem 0;
    border-top: 1px solid #ffffff67;
    border-bottom: 1px solid #ffffff67;
}

#contacts > span > a {
    color: #FFFFFF;

}

#contacts > span {
        display: flex;
    flex-direction: row;
    align-items: center;
    margin: .5em 0 .5em 0;
}

#contacts>span>img {
    margin-right: 1em;
}

#legal-info {
    display: flex;
    justify-content: center;
    padding: 4rem 0 4rem 0;

}


#lang {
    grid-column: 12 / 13;
    grid-row: 1 / 2;
}

#lang>h1 {
    color: var(--psigrey);
    text-align: right;
}

#nav {
    grid-column: 1 / 7;
    grid-row: 1 / 4;
    /* background-color: aliceblue; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.selected {
    color: var(--psipurple) !important;
}

#nav>h1 {
    color: var(--psigrey);
    transition: color 500ms;
    cursor: pointer;
}

#nav>h1:hover {
    color: var(--psiblack);
    transition: color 500ms;
    cursor: pointer;
}

#logo {
    /* background-color: beige; */
    grid-column: 10 / 13;
    grid-row: 2 / 4;
    display: flex;
    justify-content: right;
    align-items: end;
}

#logo>img {
    width: 276px;
    height: 147px;
}

/* ACCORDION STYLE */
.acc-btn {
    padding: 1em;
    border-radius: 16px;
    border: 1px solid var(--psipurple);
    font-size: 16px;
    font-weight: 600;
    color: var(--psipurple);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* transition: background 0.3s ease, color 0.3s ease; */
}

.arrow {
    transition: transform 0.3s ease;
    width: 30px;
    height: 30px;
    color: var(--psipurple);
}

.acc-block {
    margin: 1em 0 1em 0 !important;
}

.acc-block p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.3s ease;
    padding: 1em;
}

.acc-block.active p {
    max-height: 1000px;
    opacity: 1;
    margin-top: 10px;
}

.acc-block.active .arrow {
    transform: rotate(180deg);
}

.shader-img{
    width: 100%;
}

#wave-canvas {
  width: 100%;
  height: 100%;
}

@media (max-width: 980px) {
    #container {
        padding: 2rem;
    }

    #header {
        display: flex;
        flex-direction: column;
        margin: 0 0 2rem 0;
        width: 100%;
    }

    #logo {
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
    }

    .text-container {
        flex-direction: column;
    }

    .text-container>p {
        width: 100%;
    }

    #footer-container {
        display: flex;
        flex-direction: column;
    }

    #contacts {
        flex-direction: column;
        padding: 1rem 0 1rem 0;
    }

    #name {
        height: 160px;
        box-sizing: border-box;
        flex-direction: column;
        justify-content: space-between;
        padding: 2rem 0 2rem 0;
        align-items: center;
    }
}
