/* Desktop styles */

:root
{
    --intro-width: 90%;
    font-size: min(1.9vw, 2.9vh);
}

@media (min-aspect-ratio: 20/9)
{
    :root 
    {
        font-size: min(2.4vw, 3.5vh);
    }
}

header
{
    padding-top: calc(0.3 * max(1.5vw, 1.5vh));
}

header .text 
{
    font-size: calc(0.75 * max(1.5vw, 1.5vh));
    line-height: max(1.5vw, 1.5vh); 
}

li 
{
    margin-bottom: 0.5rem;
}

hr
{
    display: none;
    border-color: var(--font-color-darker);
    border-width: 0.12rem;
    border-left: none;
    border-right: none;
    margin-top: 2rem;
}

.text-wrapper
{
    justify-content: baseline;
    width: 60%;
}

.first-wrapper
{
    margin-top: 7vh;
    height: calc(100vh - 7vh - 1.3rem);
}

.name-wrapper .name
{
    font-family: Viga !important;
    font-size: min(6rem, 6vh);
    line-height: min(6rem, 6vh);
}

.name-wrapper .date
{
    font-size: min(1rem, 3vh);
    line-height: min(1rem, 3vh);
    margin-top: min(0.5rem, 1.5vh);

    color: var(--font-color);
}

.intro
{
    width: var(--intro-width);
}

.intro .text
{
    width: 100%;
    padding-top: 7vh;

    font-size: 0.8rem;
    line-height: 1rem;
}

.links-local-wrapper
{
    display: flex;
    flex-direction: row;

    width: var(--intro-width);

    justify-content: baseline;
    align-items: center;
}

.links-local-wrapper svg
{
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.link
{
    margin-left: 0.4rem;
    margin-right: 0.4rem;
}

.first-following-wrapper
{
    margin-top: 7vh;
    height: calc(100vh - 7vh);
}

.pic-wrapper
{
    display: flex;

    flex-direction: column;
    flex-wrap: nowrap;

    height: 70vh;
}

.pic-wrapper img
{
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.text-wrapper
{
    flex-wrap: nowrap;
}

@keyframes pulse-and-fade
{
    0%  {opacity: 1;}
    20% {opacity: 0.2;}
    60% {opacity: 1;}
    99% {opacity: 0; z-index: 888;}
    100%{opacity: 0; display: none; z-index: -9999;}
}

.helper
{
    width: 2rem;
    height: 2rem;
    
    position: fixed;
    bottom: 1rem;
    left: calc(50% - 1rem);

    border: none;

    z-index: 888;

    animation: pulse-and-fade 8s;
    animation-fill-mode: forwards;
}

.helper svg 
{
    height: 100%;
    width: 100%;

    stroke: var(--font-color);
    transition: stroke var(--animation-time) ease;

    cursor: pointer;
}

/* Mobile styles */

@media (max-aspect-ratio: 1/1)
{
    header
    {
        display: flex !important;
        z-index: 999 !important;
    }

    .first-wrapper, .first-following-wrapper
    {
        margin-top: 0 !important;
        flex-direction: column-reverse;
        top: 0 !important;
	margin-left: -7% !important;
	margin-right: 0px !important;
	width: 105% !important;
    }

    .text-wrapper
    {
        margin-top: 1rem;
    }

    .links-local-wrapper
    {
        margin-bottom: 1rem;
    }

    hr 
    {
        display: block;
    }

    .helper
    {
        display: none;
        z-index: -999;
    }

    .pic-wrapper
    {
        width: 90%;
        height: auto;
        padding: 0;
        align-self: center;

        margin-top: 2vh;
    }

    .first-following-wrapper
    {
        height: auto;
        margin-bottom: 0.5rem;
    }

    header
    {
        padding-top: 0.3rem;
    }

    header .text 
    {
        font-size: 0.6rem !important;
        line-height: 0.2rem !important; 
    }

    .intro .text
    {
        font-size: 0.7rem !important;
	line-height: 0.85rem !important;
    }
}
