@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@font-face {
  font-family: "Nasalization";
  src:
    local("Nasalization"),
    url("assets/fonts/nasalization.ttf"),
}

:root{
    font-size: 16px;
    font-family: "Nunito", sans-serif;
    --header-font-size: 18px;
    --link-accent: #217EF0;
    --main-bg: linear-gradient(170deg, #1813A6, #217EF0);
}
body{
    margin: 0;
    background: var(--main-bg);
    color: white;
    fill: white;
}

a{
    color: white;
    text-decoration: none;
    transition: all 200ms;
}
a:focus {
    opacity: 0.5;
    outline: none;
}
a:hover{
    opacity: 0.5;
}
a:active{
    fill: var(--link-accent);
    color: var(--link-accent);
    opacity: 1;
}

header, footer{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1024px;   
}
header, footer, #motop-section{
    width: calc(100% - 4rem);
    padding-inline: 2rem; 
}
header{ top: 0; }
footer{ bottom: 0; }

header > *{
    font-size: 2rem;
    flex: 1;
    margin: 0;
    padding: 0;
}
header h1{
    text-wrap: nowrap;
    font-size: var(--header-font-size);
    font-family: 'Nasalization';
}
header menu {
    text-align: right;
    list-style: none;
    display: flex;
    justify-content: right;
}
header menu li{
    margin-inline: 0.5rem;
}
header menu a *  {
    font-size: var(--header-font-size);
    height: var(--header-font-size) !important;
    width: var(--header-font-size) !important;
}

main{
    position: relative;
    z-index: 1;
    height: 90vh;
    display: grid;
}
#motop-section {
    place-self: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5rem;
    max-width: 1024px; 
    color: white;
}
#motop-section div{
    flex: 1;
    place-self: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    flex-wrap: auto;
    gap: 1rem;
    width: 100%;
    min-width: 280px;
    max-width: 1024px; 
    color: white;
}
#motop-section h2{
    font-size: 2rem;
    margin: 0;
    
}
#motop-section p{
    max-width: 50ch;
    text-align: justify;
    margin: 0;
}
#motop-section > img#motop-icon {
    width: min(40vh, 250px);
    min-width: 150px;
    height: auto;
    border-radius: 22%;
    box-shadow: 0 0 60px rgba(255,255,255,0.3), 0 0 0 2px rgba(255,255,255,0.2);
    flex-shrink: 0;
}
footer {
    gap: 1rem;
    opacity: 0.4;
}