/* Page directives */
html {
    font-family: "Source Sans Pro", "Arial", sans-serif;
}

html, body {
    height: 100%;
    margin: 0px; 
}

#body {
    margin-right: 25px;
    display: inline;
    float: left;
}

#wrap {
    min-height: 100%;
    display: grid;
    grid-template-areas: 'sidebar header' 'sidebar main' 'footer footer';
    grid-template-rows: 100px 1fr auto;
    grid-template-columns: 320px auto;
    gap: 25px;
}

header {grid-area: header;}
nav {grid-area: sidebar;}
#body {grid-area: main;}
footer {grid-area: footer;}

.padding {
    padding: 5px;
}

.margin {
    margin: 30px;
}

.margin-x {
    margin-left: 30px;
    margin-right: 30px;
}

.margin-y {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* MODAL */
.modal {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 5;
}

.modal-body::-webkit-scrollbar {
    display: none;
}

.modal-body {
    position: relative;
    overflow-y: auto;
    margin: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hide {
    display: none;
}

#close-modal {
    font-size: 48px;
    position: fixed;
    right: 20px;
    top: 5px;
    color: red;
    cursor: pointer;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

header>#user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 25px;
}

.username {
    color: white;
    font-size: 32px;
    margin: 0;
}

#dropdown_user {
    right: 0;
    margin-top: 200px;
}

.pfp {
    height: 100px;
    width: 100px;
    border-radius: 100%;
}

/* Sidebar */

#sidebar, #mobileSidebar {
    width: 300px;
    height: 100%;
    margin: 0;
    padding: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 50px;
    position: fixed;
    transition: all .5s;
}

#mobileSidebar {
    z-index: 5;
}

#links {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#links>.category {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 40px;
}

#links>.link, #links>.link>.symbol {
    color: white;
    font-size: 30px;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    transition: all .5s;
}

#links>.link:hover {
    color: lightgray;
}

#links>hr {
    width: 90%;
    border: 1px solid black;
}

#deploy, #deployMobile {
    background: none;
    border: none;
    color: white;
    align-self: center;
    font-size: 32px;
}

.menu {
    font-size: 36px;
}

@media (min-width: 1201px) {
    #sidebar>#links>a.link {
        display: block;
    }
    #sidebar>#deploy>.menu {
        display: none;
    }
    #wrap {
        grid-template-rows: 100px 1fr auto;
        grid-template-columns: 300px auto;
    }
}

@media (max-width: 1200px) {
    #wrap {
        grid-template-columns: 10px auto;
    }
    #sidebar>#links>.link>.text, #sidebar>#links>.category {
        display: none;
    }
    #sidebar>#deploy>.menu {
        display: block;
        font-size: 50px;
    }
    #sidebar {
        width: 50px;
    }

    #dropdown_user {
        margin-top: 150px;
    }

    #sidebar>#links>.link>span.symbol {
        display: block;
        font-size: 46px;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    #wrap {
        grid-template-rows: 50px 1fr auto;
        grid-template-columns: 50px auto;
    }
    header>#user>img {
        height: 50px;
        width: 50px;
    }
}

@media (max-height: 900px) {
    #mobileSidebar {
        position: sticky;
    }
}

@media (max-height: 700px) {
    #sidebar, #mobileSidebar {
        position: sticky;
    }

    #wrap {
        gap: 0px;
    }

    #body {
        margin: 20px;
    }
}

@media (max-height: 600px) {
    #sidebar {
        gap: 0px;
    }
}

#flaticon {
    position: fixed;
    bottom: 100px;
    color: white;
    font-size: 12px;
    text-align: center;
}

/* Flex and grids */
.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-grow: 1;
    justify-content: space-around;
}

.flex-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid-two {
    display: grid;
    column-gap: 50px;
    grid-template-columns: repeat(2, calc(50% - 25px));
}

.grid-item {
    margin-bottom: 25px;
}

/* Extra */
.card {
    padding: 5px 20px 5px 20px;
    margin: 30px;
    border-radius: 10px;
    scale: 1;
    transition: all .5s;
}

.scaleUp {
    transition: all .3s;
}

.scaleUp:hover {
    scale: 1.25;
}

.gray-background {
    background-color: lightgray;
}

.noDecoration {
    text-decoration: none;
    color: black;
}

.description {
    display: none;
    opacity: 0;
}

.descriptive:hover + .description {
    animation: fadeIn .5s;
    opacity: 1;
    display: block;
    background-color: black;
    color: white;
    padding: 5px;
    border-radius: 10px;
    /* position: fixed; */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

/* Header directives */
header {
    margin-bottom: 40px;
    padding-bottom: 10px;
    padding-top: 10px;

    display: flex;
    /* justify-content: space-around; */
    justify-content: flex-end;
}

.header_button {
    border-radius: 20px;
    font-size: 2vw;
    text-decoration: none;
    text-transform: uppercase;
    color: #000000;
    padding: 15px 40px 15px 40px;
    transition: all .5s;
    font-family: arial;
    border: none;
}

header hr {
    color: black;
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content {
    display: none;
    position: absolute;
    border-radius: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.6);
    padding: 12px 16px;
    z-index: 1;
}

.dropdown_button {
    text-align: center;
    text-decoration: none;
    color: black;
    font-size: 16px;
    padding: 10px 40px 10px 40px;
    transition: all .2s;
}

/* Colors and text */
.green {
    color: green;
}

.red {
    color:red;
}

.purple {
    color:purple;
}

.yellow {
    color: yellow;
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.center {
    text-align: center;
}