/* General */
* {
    box-sizing: border-box;
}

/* BODY */
body {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column-reverse;

    background-color: #F2F2F2;

    font-family: 'Poppins', sans-serif;
}


/* Header */
header {
    bottom: 0;

    height: 90px;
    width: 100%;

    display: flex;
    flex-direction: column;

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

    background-color: #F2F2F2;
    position: fixed;
}
/* Navbar */
nav {
    display: flex;

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

    height: 50px;
    width: 280px;

    background-color: #E8E8E8;

    border-radius: 10px;

    z-index: 100;
}
/* ul */
ul {
    height: 30px;
    width: 260px;

    display: flex;

    justify-content: space-between;

    margin: 0;
    padding: 0;
}
li {
    list-style: none;

    margin: 0;
    padding: 0;
}
li > a > img {
    height: 30px;
    width: 30px;

    color: #333333;
}


/* Main */
/* Container */
.container {
    height: calc(100vh - 90px);
    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;

    color: #333333;
}
/*Title */
h1 {
    height: 20px;
    width: 100%;

    margin-top: 0;
    margin-bottom: 24px;

    font-size: 20px;
    font-weight: 700;
}
h1#overview-title {
    margin-top: 50px;
    margin-bottom: 6px;
}
h1#title-404 {
    height: 60px;

    font-size: 72px;

    color: #824100;
}

h3 {
    height: 20px;
    width: 100%;

    font-size: 16px;
    font-weight: 500;
}
h3#introduction {
    margin-top: 50px;
    margin-bottom: 6px;
}
h3#desc {
    height: 40px;
    width: 260px;
}
h3>span {
    color: #974B00;
}
h4 {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    padding: 0;
}
#total-sum {
    font-size: 12px;
    font-weight: 700;

    padding-top: 5px;
}

/* Logo container */
.logo-container {
    display: flex;

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

    height: 360px;
    width: calc(100% - 10px);

    margin-left: 10px;
}

/* QR conatiner */
.qr-container {
    display: flex;

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

    height: 260px;
    width: 100%;
}
.qr-container > img#line-chart {
    width: 200px;
    height: 200px;
}
.desc-container {
    height: 110px;
    width: 260px;
}
/* Paragraph */
p {
    font-size: 12px;
    color: #666666;
}

/* Generated QR */
.generated_qr-container {
    height: calc(100vh - 170px);
    width: 280px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
}
.inside_generated_qr-container {
    height: 240px;
    width: 240px;

    display: flex;

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

    background-color: #824100;

    border-radius: 20px;

    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
}
div#expiration.desc-container {
    height: 50px;
}
.generated-qr {
    height: 200px;
    width: 200px;

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

    background-color: white;

    border-radius: 20px;
}
.generated-qr > img {
    height: 180px;
    width: 180px;
}

.return-to-home-page {
    width: 100%;
    height: 20px;

    display: flex;
    justify-content: center;

    position: fixed;
    bottom: 20px;
}
.return-to-home-page > a {
    color: #824100;
    
    margin: 0;

    text-decoration: underline;

    font-size: 12px;
    font-weight: 500;
}

/* Stats container */
.stats-container {
    height: calc(100vh - 274px);
    width: 280px;

    display: flex;
    flex-direction: column;

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

    padding-bottom: 50px;

    gap: 20px;

    z-index: 1;
}
.stat {
    width: 280px;

    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;
}
.stat-nums {
    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;

    gap: 20px;
}
/* Slider */
.slider {
    -webkit-appearance: none;

    height: 2px;
    
    background-color: #333333;

    z-index: 2;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;

    width: 14px; 
    height: 14px;
    
    background-color: #824100; 
    
    border-radius: 50%; 
    
    cursor: pointer;

    z-index: 2;
}

.slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    
    background-color: #824100;
    
    border-radius: 50%;
    
    cursor: pointer;

    z-index: 2;
}


/* Button container */
.button-container {
    position: fixed;

    bottom: 90px;

    height: 50px;
    width: 100%;

    display: flex;

    justify-content: center;
    align-items: end;
}
.button-container > button {
    background-color: #824100;
    color: white;

    height: 30px;
    width: 280px;

    border: 0;
    border-radius: 10px;

    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);

    cursor: pointer;
    transition: all 0.1s ease;
}
.button-container > button:hover {
    background-color: #582c00;
}
.button-container > button:active {
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2); 
    transform: translateY(2px); 
}

/* All users stats container */
.users_stats-container {
    display: flex;
    flex-direction: column;

    justify-content: center;

    padding-bottom: 126px;

    gap: 20px;
}

/* Individual users container */
.user_stats-container {
    height: fit-content;
    width: 280px;

    background-color: #E8E8E8;
    border-radius: 10px;

    padding: 10px 0px;

    display: flex;
    flex-direction: column;

    align-items: center;

    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.2);
}


/* User credentias part */
.user-credentials {
    height: 20px;
    width: 260px;

    display: flex;
    flex-direction: row;

    justify-content: space-between;
    align-items: center;
}
.user-credentials > h3 {
    width: fit-content;
    margin: 0;
}
/* User stats part */
.products-container {
    display: flex;
    flex-direction: column;

    width: 260px;
    height: fit-content;

    margin-top: 10px;

    gap: 10px;
}
/* User credentials */
.product-credentials {
    display: flex;
    flex-direction: column;


    align-items: center;
}
.product-credentials > .text-part {
    width: 100%;
    
    display: flex;
    flex-direction: row;

    justify-content: space-between;
}
.product-credentials > .text-part > p {
    margin: 0;
}
/* Slider part */
.product-credentials > .slider-part {
    height: 20px;
    width: 100%;
}
.loader {
    width: 260px;
    height: 20px;

    -webkit-appearance: none;

    background: #E8E8E8;

    outline: none;

    border-radius: 15px;
    border: solid 1px #824100;

    overflow: hidden;
}
.loader::-webkit-slider-thumb {
    -webkit-appearance: none;
    
    width: 0;
    height: 20px;
    
    border: 4px solid #824100;
    box-shadow: -407px 0 0 400px #824100;
}

.loggedUserLoader {
    width: 260px;
    height: 20px;

    -webkit-appearance: none;

    background: #824100;

    outline: none;

    border-radius: 15px;
    border: solid 1px #F2F2F2;

    overflow: hidden;
}
.loggedUserLoader::-webkit-slider-thumb {
    -webkit-appearance: none;
    
    width: 0;
    height: 20px;
    
    border: 4px solid #F2F2F2;
    box-shadow: -407px 0 0 400px #F2F2F2;
}

/* The second nav, special for the stats window */
#top-nav {
    display: flex;
    flex-direction: row;

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

    height: 40px;
    width: 280px;

    background-color: #824100;

    border-radius: 10px 10px 0px 0px;

    position: absolute;
    bottom: 60px;

    z-index: 0;
}
#top-nav > ul {
    height: 30px;
    width: 260px;

    display: flex;

    justify-content: space-evenly;

    gap: 50px;

    margin: 0;
    padding: 0;
}
#top-nav > ul > li > a {
    text-decoration: none;

    color: #F2F2F2;

    font-size: 16px;
    font-weight: 400;

    transition: all 0.4s;
}
#top-nav > ul > li > a:hover {
    letter-spacing: 1px;
}

/* Line container with titles of the sections */
.line-container {
    display: flex;
    flex-direction: row;

    align-items: center;

    margin-bottom: 18px;
}
.line-container#needs {
    margin-top: 24px;
}

.line {
    flex: 1;
    height: 1px;
    background-color: #333;
    margin: 0 10px;
}

/* 404 container */
.container-404 {
    display: flex;
    flex-direction: column;

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

    height: 360px;
    width: 100%;
}
