/*
Index:
-HEADER
-FOOTER
-SIDEBAR
-MAIN
-GRID
-COLOURED ITEMS
-ALIGNMENT
-FORMS
-GENERAL ELEMENTS
-DEVELOPMENT DATA
 */

@font-face {
    font-family: "Cantarell";
    font-style: normal;
    font-weight: 400;
    src: local(""), url("/s/Cantarell-Regular.ttf") format("truetype");
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-image: url("/s/bg.webp");
    background-size: cover;
    display: flex;
    flex-direction: column;
    /*color: #DDDDDD;*/
    /*color: #E0DDDD;*/
    color: #F0EEEEEE;
    font-family: "Cantarell";
}

/* ----------HEADER---------- */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    padding-left: 8px;
    padding-right: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    /*background: aqua; !* TODO: Remove this ig, this is temporary*!*/
    z-index: 1;
    /*background-color: #444444;*/
    backdrop-filter: blur(16px);
    border-bottom: 2px solid #00000033;
}

header h1 {
    /*align-self: center;*/
    /*margin-left: auto;*/
    /*margin-right: auto;*/
}

header img {
    margin-left: 16px;
    width: 32px;
    height: 32px;
}

header a {
    padding: 8px 12px 12px 12px;
    margin-right: 8px;
    border-radius: 8px;
    backdrop-filter: blur(16px);
    background: #00000055;
    color: #F0EEEEEE;
    text-decoration: none;
}

/*header a p {*/
/*    padding: 0;*/
/*}*/

header:last-child {
    margin-right: 16px;
}

#header_filler {
    width: 100%;
    height: 64px;
}

/* ----------FOOTER---------- */

footer {
    width: 100%;
    height: 32px;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1;
    backdrop-filter: blur(16px);
    background: #00000055;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
}

#footer_filler {
    width: 100%;
    height: 32px;
}

/* ----------SIDEBAR---------- */

#sidebar {
    position: fixed;
    top: 0;
    left: calc(-20%);
    width: calc(20% + 64px);
    height: 100%;
    transition: left 250ms;
    backdrop-filter: blur(2px);
    background: #00000066;
    border-right: 1px solid #00000011;
    display: flex;
    flex-direction: row-reverse;
}

#sidebar:hover {
    left: 0;
}

#sidebar_header {
    width: 64px;
    writing-mode: vertical-rl;
    text-orientation: sideways;
}

#sidebar_header h2 {
    margin: 0 8px 0 0;
    height: 100%;
    text-align: center;
}

#sidebar_body {
    flex-grow: 1;
}

/* ----------MAIN---------- */

main {
    max-width: 1344px;
    padding-left: 32px;
    padding-right: 32px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    backdrop-filter: blur(2px);
    background: #00000033;
    min-height: 100dvh;
    border-left: 1px solid #00000011;
    border-right: 1px solid #00000011;
}

main h1 {
    margin: 0;
    text-align: center;
    /*color: #E0DDDD;*/
}

main h2 {
    text-align: center;
}

main h3 {
    text-align: center;
}

/* ----------GRID---------- */

.stuff_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: minmax(300px, auto);
}

.stuff_grid_item {
    border-radius: 12px;
    grid-column: span 1;
    grid-row: span 1;
    padding: 24px;
    backdrop-filter: blur(8px);
    margin: 2.5%;
    transition: box-shadow 225ms;
    z-index: 0;

}

.stuff_grid_item::before, .stuff_grid_item::after {
    border-radius: inherit;
    content: "";
    position: absolute;
    inset: 0;
    transition: opacity 225ms;
    z-index: -1;

}

.stuff_grid_item::before, .stuff_grid_item:hover::after {
    opacity: 1;
}

.stuff_grid_item:hover::before, .stuff_grid_item::after {
    opacity: 0;
}

.stuff_grid_item:hover {
    box-shadow: 0 0 4px 1px #DDDDDD44;
}

.stuff_grid_item h3 {
    margin-top: 0;
}

/* ----------COLOURED ITEMS---------- */

.red_item::before {
    background: linear-gradient(160deg, #ed796e55, #a7494955);

}
.red_item::after {
    background: linear-gradient(160deg, #f8887e55, #c55b5b55);
}

.green_item::before {
    background: linear-gradient(160deg, #6eed8455, #49a75955);
}
.green_item::after {
    background: linear-gradient(160deg, #7efb9455, #57bc6955);

}
.blue_item::before {
    background: linear-gradient(160deg, #6eb4ed55, #497da755);
}

.blue_item::after {
    background: linear-gradient(160deg, #80c0fa55, #558bbc55);
}

.green_item a {
    color: #ED6ED7;
}

.red_item a {
    color: #6EE2ED;
}

.blue_item a {
    color: #EDA76E;
}

/* ----------ALIGNMENT---------- */

.left {
    /*justify-self: flex-start;*/
    flex: 1;
}

.right {
    /*justify-self: flex-end;*/
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.flex_filler {
    flex: 1;
}

.medium_filler {
    width: 32px;
    height: 32px;
}

.v_container {
    display: flex;
    flex-direction: column;
}

.centered {
    align-items: center;
}

/* ----------FORMS---------- */

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(80%, 800px);
    padding: 12px;
    margin-left: auto;
    margin-right: auto;
}

form * {
    width: 100%;
    margin-top: 12px;
}

form:first-child {
    margin-top: 0;
}

form input {
    background: #303030BB;
    color: #F0EEEE;
}

/* ----------GENERAL ELEMENTS---------- */

.biglink {
    font-size: 200%;
}

/* ----------DEVELOPMENT DATA---------- */

#login_button {
    display: none;
}

#login_button:active {
    display: unset;
}

#login_button:hover {
    display: unset;
    
}

#bleh {
    background-color: brown;
    width: 20px;
    height: 20px;
}

#a_body {

}