/* 
    Created on : 19 Apr 2021, 10:40:18
    Authors    : Rasmus Nørby & Maya Wettendorff
*/

/*---------------------------- SET COLOR SCHEME ------------------------------*/

/* Default colors */
body {
    --bodyBColor: #aa4a4f;
    --boxBColor: #840c0c;
    --footerColor: #5e0000;
    --radioOuter: #666;
    --radioInner: #fff;
    --grey: #9f8a8a;
    --snack: #5e0000;
    --brightness: 1;
    --contrast: 1;
}

/* Dark theme colors */
.dark-theme {
    --bodyBColor: #333;
    --boxBColor: #1f1f1f;
    --footerColor: #1f1f1f;
    --radioOuter: #555;
    --radioInner: #1f1f1f;
    --grey: #666;
    --snack: #000;
    --brightness: .8;
    --contrast: 1.2;
}

/* Styles for users who prefer dark mode at the OS level */
@media (prefers-color-scheme: dark) {
    /* defaults to dark theme */
    body {
        --bodyBColor: #333;
        --boxBColor: #1f1f1f;
        --footerColor: #1f1f1f;
        --grey: #666;
        --snack: #000;
        --brightness: .8;
        --contrast: 1.2;
    }

    /* Override dark mode with light mode styles if the user decides to swap */
    .light-theme {
        --bodyBColor: #aa4a4f;
        --boxBColor: #840c0c;
        --footerColor: #5e0000;
        --grey: #9f8a8a;
        --snack: #5e0000;
        --brightness: 1;
        --contrast: 1;
    }
}

/*------------------------------ HTML & BODY ---------------------------------*/

html, body{
    display: flex;
    height: 100vh;
    flex-direction: column;
    margin: 0;
}

body {
    background: var(--bodyBColor);
    color: #ffffff;
    font-family: Verdana, Geneva, sans-serif;
    overflow-x: hidden;
}

/*--------------------------------- HTML TAGS --------------------------------*/

img {
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    filter: brightness(var(--brightness)) contrast(var(--contrast));
}

header {
    width: 100%;
    color: white;
    z-index: 1;
}

button {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 16px;
    border-radius: 0;
}

/*------------------------------ HEADER / NAVBAR -----------------------------*/

.logo {
    float: left;
    font-size: 25px;
    margin-left: 30px;
    height: 70px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
}

.menu {
    float: right;
    margin-right: 10px;
    text-decoration: none;
    height: 70px;
    display: flex;
    align-items: center;
}

#log-in {
    text-decoration: none;
    font-size: 14px;
    color: white;
    background-color: #7289da;
    border-radius: 5px;
    border: None;
    margin-right: 20px;
    padding: 15px 20px 15px 20px;
    text-align: center;
}

#log-in:hover {
    cursor: pointer;
}

/*------------------------------- THEME SWITCH -------------------------------*/

#toggle {
    margin: 0px 10px 0px 0px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    border-radius: 34px;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #666;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    border-radius: 50%;
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: #fff;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #555;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    background-color: #1f1f1f;
}

/*----------------------------------- SIDEBAR --------------------------------*/

/* The side navigation menu */
#sidenav {
    display: flex;
    flex-direction: column;
    align-content: center;
    height: 100vh;
    box-sizing: border-box;
    width: 20rem;
    position: absolute;
    background-color: var(--footerColor);
    padding: 100px 15px 0 15px;
}

.sidenav-animation {
    transition: 0.5s;
}

.active {
    background-color: #fff !important;
    color: var(--bodyBColor) !important;
}

/* The navigation menu links */
#sidenav a {
    overflow: hidden;
    height: 19.2px;
}

#go-back-div-sidebar {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}

#go-back-div-sidebar a {
    width: 100%;
}

#manage-buttons-sidebar {
    display: flex;
    flex-direction: column;
}

#manage-buttons-sidebar a, #manage-buttons-sidebar button {
    margin: 5px 0px;
}

/*---------------------------------- SNACKBAR --------------------------------*/

#snackbar {
    visibility: hidden;
    min-width: 250px;
    transform: translateX(-50%); /* Divide value of min-width by 2 */
    background-color: var(--snack); /* Black background color */
    color: #fff; /* White text color */
    text-align: center; /* Centered text */
    position: fixed; /* Sit on top of the screen */
    z-index: 1; /* Add a z-index if needed */
    left: 50%; /* Center the snackbar */
    top: 20px; /* 30px from the bottom */
    padding: 10px;
}

#snackbar.show {
    visibility: visible; /* Show the snackbar */
    /* animation: 0.5 seconds to fade in and out, delay the fade out 2.5 seconds */
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        top: 0;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        top: 0;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        top: 20px;
        opacity: 1;
    }
    to {
        top: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        top: 20px;
        opacity: 1;
    }
    to {
        top: 0;
        opacity: 0;
    }
}

/*------------------------------------ MODAL ---------------------------------*/

#comfirm {
    display: none;
}

#confirm-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: var(--boxBColor);
    margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
    width: 50%;
    padding: 20px;
    border: 1px solid white;
}

#confirm-container p {
    font-size: 25px;
    margin-top: 5px;
}

#confirm-buttons {
    display: flex;
    flex-direction: row;
}

.confirm-eris-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    font-size: 20px;
    padding: 14px !important;
    margin: 1%;
}

.modal {
    display: none;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/*----------------------------------- MAIN -----------------------------------*/

#main {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.space {
    margin-left: 20rem;
}

/*-------------------------------- ABOUT ERIS --------------------------------*/

#about-eris {
    display: flex;
    width: 65%;
    height: 100%;
    align-items: center;
    justify-content: space-around;
    background-color: var(--boxBColor);
}

#eris-heading {
    font-size: 19px;
    margin-top: 0;
}

#eris-profile-text {
    padding: 15px 15px 15px 15px;
}

#eris-profile-text p {
    margin: 0px;
}

#eris-profile-img {
    max-height: 250px;
    max-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/*------------------------------ SHARED BETWEEN ------------------------------*/

.fiftyfifty {
    width: 50%;
}

#profile-ratio-outer {
    width: 100%;
    position: relative;
    padding-top: 100%;
}

#profile-ratio-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

#circle {
    display: flex;
    height: 100%;
    width: 100%;
    background-color: var(--grey);
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

#circle img {
    border-radius: 50%;
    height: 93%;
    width: 93%;
}

/*------------------------------- DISCORD DATA -------------------------------*/

#user-data {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#user-data-picture {
    width: 100%;
    max-height: 180px;
    max-width: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

#user-info-and-button {
    margin: 20px;
}

#logged-in-as span {
    font-size: 18px;
    font-weight: bold;
}

#guilds-data {
    height: 90%;
    width: 60%;
    border-left: 2px solid var(--grey);
    padding-left: 20px;
}

#guilds-data p {
    margin: 0;
}

#guilds-and-manage-buttons {
    max-width: 380px;
    margin: 0 auto 0 0;
}

#guilds-and-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-right: 5px;
}

.eris-settings {
    width: 125px;
    margin: 2px;
}

.eris-button {
    display: inline-block;
    background-color: var(--bodyBColor);
    text-decoration: none;
    text-align: center;
    color: #fff;
    padding: 5px;
    border: 1px solid var(--bodyBColor);
    user-select: none;
}

.eris-button:hover {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.2);
}

/*----------------------------- SHARED BETWEEN -------------------------------*/

#data {
    display: flex;
    width: 65%;
    height: 100%;
    align-items: center;
    background-color: var(--boxBColor);
    padding: 20px;
}

/*----------------------------- GO BACK BUTTON -------------------------------*/

#go-back-div {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

#go-back {
    width: 100px;
}

#go-back span {
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

#go-back:hover span {
    padding-right: 15px;
}

#go-back:hover span::after {
    opacity: 1;
    right: 0;
}

#go-back span::after {
    content: "\00ab";
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

/*------------------------------ ERIS SETTINGS -------------------------------*/

#guild-data {
    height: 100%;
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#guild-data-picture {
    width: 100%;
    max-height: 180px;
    max-width: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

#guild-name {
    text-align: center;
}

#settings {
    height: 100%;
    width: 60%;
    border-left: 2px solid var(--grey);
    padding-left: 20px;
}

#manage-buttons {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

#manage-buttons a, #manage-buttons button {
    margin: 5px 0px;
}

/*------------------------------- MANAGING PAGES -----------------------------*/

#managing-data {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--boxBColor);
    padding: 20px;
}

#managing-desc {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 10px;
}

#managing-desc p {
    margin: 5px;
}

#manage-columns {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-top: 2px solid var(--grey);
    padding-top: 5px;
}

#managing {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2px solid var(--grey);
    padding-top: 5px;
}

/* LEFT COLUMN */

#combinations {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
    border-right: 1px solid var(--grey);
}

#combination-title {
    margin: 10px;
    font-size: 20px;
}

#combination-list {
    display: flex;
    flex-direction: column;
    margin: 16px;
}

.combination-span {
    user-select: none;
    margin-bottom: 5px;
}

.no-combo-found {
    user-select: none;
}

/* CUSTOM RADIO BUTTONS */
.container {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    padding-left: 30px;
    margin-bottom: 5px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default radio button */
.combination {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    cursor: pointer;
}

/* Create a custom radio button */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.container input:checked ~ .checkmark {
    background-color: var(--radioOuter);
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.container .checkmark:after {
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--radioInner);
    ;
}

/* RIGHT COLUMN */

#combination-settings {
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-left: 20px;
    border-left: 1px solid var(--grey);
}

#combination-settings a {
    margin: 5px 0;
}

/*------------------------ NEW MEMBER MESSAGE MANAGING PAGE ----------------------*/

#new-member-manage-rows {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 2px solid var(--grey);
    padding-top: 5px;
}

/* TOP ROW */

#new-member-message-display {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--grey);
}

#new-member-message-title {
    margin: 10px;
    font-size: 20px;
}

/* BOTTOM ROW */

#new-member-message-settings {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 20px;
    border-top: 1px solid var(--grey);
}

#new-member-message-settings a {
    margin: 5px;
}

#new-member-message {
    display: flex;
    height: 250px;
    margin-bottom: 10px;
    border: 0;
    resize: vertical;
}

/*------------------------------- INSERTING PAGES ----------------------------*/

#managing-categories {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.category {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    white-space: nowrap;
    margin: 5px;
    padding: 10px;
    background-color: var(--bodyBColor);
}

#channel-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

/*-------------------------- MANAGING DOMAINS / WORDS ------------------------*/

#settings-container {
    height: auto;
    display: flex;
    flex-direction: column;
}

#add-container {
    height: 0%;
    display: flex;
    opacity: 0;
    transition: opacity 1s, height 1s;
    overflow: hidden;
}

.add-container-active {
    height: 100% !important;
    opacity: 1 !important;
}

.add-container-transition {
    transition: opacity 0s, height 0s !important;
}

.banned-input {
    display: flex;
    flex: 1;
    margin-right: 5px;
    border: 0;
}

#welcome {
    height: 205px;
    resize: none;
}

#message-box {
    width: 100%;
}

#message {
    width: -moz-available;
    width: -webkit-fill-available;
    height: 150px;
    resize: none;
    margin: 5px;
}

/*------------------------------- INSERT STEAM -------------------------------*/
#info {
    font-size: 24px;
    position: relative;
    color: #fff !important;
    cursor: help;
}

#info:hover #steam-tooltip {
    visibility: visible;
}

#steam-tooltip {
    visibility: hidden;
    height: 100px;
    width: 400px;
    border-radius: 6px;
    position: absolute;
    border: 5px solid #777;
    margin-bottom: 10px;
    right: -50%;
    bottom: 100%;
    background-image: url(images/portal-2-url.png);
}

#steam-tooltip::after {
    content: "";
    position: absolute;
    top: 104%;
    right: 1.4%;
    border-width: 10px;
    border-style: solid;
    border-color: #777 transparent transparent transparent;
}

#steam {
    display: flex;
    max-width: 100%;
}

#steam-url {
    width: 400px;
    max-width: 100%;
}

/*------------------------------- SAVE MANAGING ------------------------------*/

#button-box {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.save-button {
    width: 100%;
}

/*---------------------------------- FOOTER ----------------------------------*/

footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: var(--footerColor);
    width: 100%;
}

#footer-nav-links {
    display: flex;
    color: #f5f5f5;
    padding: 10px 0px 5px 0px;

}

#social-media-footer {
    margin-bottom: 10px;
}

#footer-nav-links a {
    padding: 0px 5px;
}

.footer-links {
    margin: 0;
    color: var(--grey);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    text-decoration: none;
    font-weight: 300;
    color: #f5f5f5;
}

.footer-links a:hover {
    color: var(--grey);
    text-decoration: none;
}

.fa {
    font-size: 25px;
    color: var(--grey);
    opacity: 0.5;
    margin: 0px 0.5px 0px 0.5px;
    text-decoration: none;
}

.fa:hover {
    color: var(--grey) !important;
    opacity: 1;
    text-decoration: none;
}

#wave {
    width: 100%;
    position: sticky;
}

svg {
    vertical-align: middle;
}

svg path {
    fill: var(--footerColor) !important;
}

/*------------------------------- MEDIA RULES --------------------------------*/
/*------------------------------ MEDIA - INDEX -------------------------------*/
@media only screen and (max-width: 800px) {
    #about-eris {
        flex-direction: column;
    }

    .fiftyfifty {
        width: 100%;
        box-sizing: border-box;
    }
}

/*-------------------------- MEDIA - DISCORD DATA ----------------------------*/
@media only screen and (max-width: 800px) {
    #user-data {
        width: 90%;
    }

    #guilds-data {
        height: 100%;
        width: 90%;
        border-top: 2px solid var(--grey);
        border-left: 0;
        padding-left: 0;
        margin-bottom: 10px;
    }

    #guilds-and-manage-buttons {
        margin: 0 auto;
    }
}

@media only screen and (max-width: 500px) {
    #guilds-and-buttons {
        flex-direction: column;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

/*-------------------------- MEDIA - ERIS SETTINGS ---------------------------*/
@media only screen and (max-width: 800px) {
    #manage-buttons {
        margin-right: 0;
    }
}

@media only screen and (max-width: 500px) {
    #guild-name {
        font-size: 24px;
    }
}

/*------------------------- MEDIA - MANAGING STEAM ---------------------------*/

@media only screen and (max-width: 800px) {
    #steam {
        flex-direction: column;
    }

    #combination-settings {
        flex-direction: column;
    }

    .category {
        white-space: normal;
    }
}

@media only screen and (max-width: 500px) {
    #steam-url-help {
        right: 0%;
        bottom: 100%;
        left: -5px;
    }
}
/*----------------------------- MEDIA - GENERAL ------------------------------*/
@media only screen and (max-width: 800px) {
    #data {
        flex-direction: column;
    }

    #guild-data {
        width: 100%;
    }

    #go-back {
        margin: 0;
    }

    #settings {
        width: 100%;
        border-top: 2px solid var(--grey);
        border-left: 0;
        padding-left: 0;
    }

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

@media only screen and (max-width: 500px) {
    #log-in {
        padding: 10px 15px 10px 15px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        font-size: 14px;
    }

    .lower-title {
        font-size: 16px;
    }
}