@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

:root {
    --color1: #635985;
    --color2: #443C68;
    --color3: #393053;
    --color4: #18122B;
    --unique: #fff36f;
    --contrast: white;
}

html, body { 
    height: 100%;
    
    display: flex;
    flex-direction: column;

    background-color: var(--color4);
}

.loading-pannel {
    position: fixed;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: -1;
    opacity: 0;

    transition: 0.2s ease-in-out;
}

.loading-pannel h1 {
    color: var(--contrast);
    font-size: 50px;
    font-family: "Inter", sans-serif;
    font-weight: bold;
    font-style: italic;

    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.loading-pannel.active {
    background-color: var(--color2);
    opacity: 1;
    z-index: 1;
}

.loading-pannel.active body::-webkit-scrollbar {
    display: none;
}

.loading-pannel.active h1 {
    opacity: 1;
}

header {
    height: 70px;

    padding: 5px 20%;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;

    border-bottom: 2px solid var(--contrast);

    background-color: var(--color1);
}

.title {
    color: var(--contrast);

    font-size: 25px;
    font-family: "Inter", sans-serif;
    font-style: italic;
    font-weight: bold;
}

.title:hover{
    cursor: pointer;
    color: var(--unique);
}

.user-profile {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap-reverse;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.user-profile p {
    color: var(--contrast);
    font-weight: 700;
}

.profile {
    width: 50px;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    border: solid 2px var(--contrast);
    border-radius: 50%;

    background-color: var(--color4);
}

.profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.user-profile:hover {
    cursor: pointer;
}

.user-profile:hover .profile{
    border: solid 2px var(--unique);
}

.user-profile:hover p {
    color: var(--unique);
}

main {
    padding: 25px 20%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    gap: 10px;
}

.page-header {
    padding: 5px 10px;
    margin-bottom: 10px;

    display: flex;
    justify-content: center;

    border-bottom: 2px solid var(--contrast);
    
    color: var(--contrast);
    background-color: var(--color2);
}

.page-header h2 {
    text-transform: uppercase;
    font-size: 20px;
}

footer {
    min-height: 130px;
    height: 100%;

    padding: 90px 0;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;

    border-top: 2px solid var(--contrast);

    background-color: var(--color1);
    color: var(--contrast);
}

footer p {
    margin: 0 5px;
    margin-top: 10px;
    text-align: center;
}

.links-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.footer-links {
    margin: 0 5px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

#logout-button {
    display: none;
    text-decoration: underline;
}

.page-container {
    padding: 15px 40px;

    display: flex;
    flex-direction: column;
    gap: 5px;

    background-color: var(--color2);
}

.section-title {
    margin-top: 7px;
    color: var(--contrast);

    font-size: 22px;
}

.section-text {
    margin: 7px 0;
    color: var(--contrast);

    text-indent: 5px;
    font-size: 17px;
}

a {
    color: var(--contrast);
}

a:hover {
    color: var(--unique);
}

.message {
    color: var(--unique);
    font-size: 13px;
}

@media only screen and (max-width: 768px)
{
    .loading-pannel h1{
        font-size: 30px;
    }

    header {
        height: 50px;
        padding: 5px 5%;
    }

    .title {
        font-size: 20px;
    }

    .profile {
        width: 40px;
        height: 40px;
    }

    .user-profile p {
        font-size: 14px;
    }

    main {
        padding: 0;
    }

    .page-header {
        padding: 10px 0;
    }

    .page-header h2 {
        font-size: 22px;
        text-align: center;
    }

    footer {
        margin-top: 20px;
        min-height: auto;
    }

    footer p {
        font-size: 14px;
    }

    .links-section {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
    }

    .links-section a {
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-text {
        font-size: 14px;
    }

    .message {
        font-size: 12px;
    }
}