/* ----------------------------------
   FONTS & GLOBAL STYLES
---------------------------------- */
@font-face {
    font-family: "Sequoia";
    src: url("../fonts/sequoia.ttf");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: #f5f5f5;
    font-family: "Sequoia" !important;
}

body {
    background-color: #121212;
}

/* ----------------------------------
   HEADER
---------------------------------- */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 75%;
    height: 100vh;
    margin: auto;
    padding: 0 50px;
}

header div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

header h1 {
    width: 100%;
    padding-left: 35px;
    font-size: 28px;
    text-align: start;
    flex-grow: 30;
}

header h3 {
    width: 100%;
    padding-left: 35px;
    font-size: 24px;
    text-align: end;
    display: flex;
    align-items: center;
    gap: 5px;
    -webkit-text-stroke: 1px #81811d;
}

header p {
    width: 100%;
    padding-left: 35px;
    margin-right: auto;
    font-size: 18px;
    text-align: justify;
}

header .item_base {
    margin: 15px 0;
    font-size: 18px;
}

header img.profile {
    width: 250px;
    height: 250px;
    border: 3px solid purple;
    border-radius: 50%;
    animation: profile 1.5s linear infinite alternate;
    box-shadow: 0 0 5px 1px #f0f;
}

header img.meshly {
    animation: meshly 3s linear infinite alternate;
}

header .logo {
    width: 25px;
    height: 25px;
    margin: 0 5px;
}

/* Animations */
@keyframes profile {
    to {
        box-shadow: 0 0 25px 1px plum;
        transform: scale(1.05);
    }
}

@keyframes meshly {
    0%   { transform: rotate(5deg); }
    50%  { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

/* ----------------------------------
   POST LIST & SINGLE POST
---------------------------------- */
.PostList {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    width: 75%;
    margin: auto auto 50px;
}

.PostList h2 {
    width: 100%;
    font-size: 32px;
    font-family: sequoia;
    text-align: center;
}

.SinglePost {
    position: relative;
    width: calc(33.3% - 2px);
    aspect-ratio: 1/1;
    margin: 1px;
    border: 1px solid #4d4d4d;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    background-color: #d3d3d3;
    background-image: linear-gradient(270deg, #d3d3d380, gray, #d3d3d380);
    background-size: 250%;
    animation: bg 1s infinite alternate;
}

.SinglePost a {
    text-decoration: none;
}

.SinglePost img {
    width: 100% !important;
    height: 100% !important;
    background-image: linear-gradient(to right bottom, #000014, #323232);
}

.SinglePost img:after {
    content: "gear";
    position: absolute;
}

.SinglePost .cover {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #add8e640;
    opacity: 0;
    transition: all 0.25s;
    z-index: 10;
}

.SinglePost:hover .cover {
    min-height: 100%;
    opacity: 1;
}

.SinglePost .cover strong {
    padding: 5px 10px;
    font-size: 50px;
    border: 2px solid transparent;
    border-radius: 5px;
    background-color: #5f9ea0;
    text-shadow: 0 0 5px #121212;
}

.SinglePost .cover strong:hover {
    border: 2px solid #b0e0e6;
}

/* Animation */
@keyframes bg {
    0%   { background-position: 0; }
    100% { background-position: 100%; }
}

/* ----------------------------------
   VIEWER & THEMES
---------------------------------- */
.Viewer {
    width: 100vw;
    height: 100vh;
    overflow: hidden !important;
}

.Viewer canvas {
    width: 100% !important;
    height: 100% !important;
    z-index: -1;
}

.Viewer img {
    position: absolute;
    right: 25px;
    bottom: 25px;
    width: 50px;
    height: 50px;
    border: 1px solid #b0c4de;
    border-radius: 15px;
    cursor: pointer;
}

.Viewer h1 {
    margin: 50px;
    font-family: sequoia;
}

.Viewer input {
    position: absolute;
    top: 25px;
    left: 25px;
    transform: scale(3);
    background-color: red;
    z-index: 99;
}

/* Themes */
.dark,
.light,
.gray {
    width: 100%;
    height: 100vh;
}

.dark  { background-color: #121212 !important; }
.light { background-color: whitesmoke !important; }
.gray  { background-color: gray !important; }

/* ----------------------------------
   OTHER ELEMENTS
---------------------------------- */
.model__loading {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 200px;
    left: 50%;
    transform: translate(-50%);
    font-size: 44px;
    font-family: "Sequoia";
    z-index: 99;
}

#baclBTN {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 100px;
    z-index: 99;
}

/* ----------------------------------
   FOOTER
---------------------------------- */
footer {
    margin: 15px;
    padding: 5px;
    border-top: 1px solid lightslategrey;
}

footer p {
    padding-top: 5px;
    font-size: 20px;
    text-align: center;
}

footer p.made_love {
    font-size: 12px !important;
}

/* ----------------------------------
   MEDIA QUERIES
---------------------------------- */
@media only screen and (max-width: 1000px) {
    header {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    header img.profile {
        width: 200px;
        height: 200px;
    }

    header h1,
    header p,
    header h3 {
        text-align: center;
        justify-content: center;
        padding: 0;
    }

    img.meshly {
        width: 250px;
        top: 25px;
        left: 50%;
    }
}

@media only screen and (max-width: 800px) {
    .PostList { width: 100%; }
}

@media only screen and (max-width: 500px) {
    .SinglePost { border-radius: 5px; }

    .SinglePost .cover strong {
        font-size: 20px;
    }
}

@media only screen and (max-width: 600px) {
    footer p {
        font-size: 14px;
    }

    .model__loading {
        font-size: 36px;
    }
}



/* ----------------------------------
   THEME CHANGER
---------------------------------- */
#theme_main{
    display: none;
    position:absolute;
    width:100px;
    height:100px;
    border:5px solid orange;
    border-radius:100px;
    background:orange;
    transition:.6s;
    scale: 0.75;
    left: 0;
    top: 0;
    z-index: 99;
}

#theme_img{
    position:absolute;
    left:5px !important;
    top:10px;
    width:60px;
}

#theme_items{
    position:absolute;
    left:5px;
    width:80px;
    height:80px;
    border:5px solid orange;
    border-radius:100px;
    background:orange;
    transition:.6s;
}
#theme_items:hover{
    height:250px;
}

input[type="button"] {
    left: -3px;
}

#theme_btna1{
    position:absolute;
    top:0px;
    background:transparent;
    width:75px;
    color:transparent;
    padding-top:5px;
    padding-bottom:5px;
    font-family:Georgia, serif;
    font-size:15px;
    border:2.5px solid transparent;
    border-radius:100px;
    cursor:pointer;
    transition:.6s;
}

#theme_items:hover > #theme_btna1{
    top:90px;
    color: #121212;
    background: #121212;
    padding-bottom:5px;
}

#theme_btna2{
    position:absolute;
    top:0px;
    background:transparent;
    width:75px;
    color:transparent;
    padding-top:5px;
    padding-bottom:5px;
    font-family:Georgia, serif;
    font-size:15px;
    border:2.5px solid transparent;
    border-radius:100px;
    cursor:pointer;
    transition:.6s;
}
#theme_items:hover > #theme_btna2{
    top:140px;
    color: whitesmoke;
    background: whitesmoke;
    padding-bottom:5px;
}
#theme_btna3{
    position:absolute;
    top:0px;
    background:transparent;
    width:75px;
    color:transparent;
    padding-top:5px;
    padding-bottom:5px;
    font-family:Georgia, serif;
    font-size:15px;
    border:2.5px solid transparent;
    border-radius:100px;
    cursor:pointer;
    transition:.6s;
}
#theme_items:hover > #theme_btna3{
    top:190px;
    color: gray;
    background: gray;
    padding-bottom:5px;
}


@media only screen and (max-width: 600px) {
    #theme_background {
        scale: 0.5;
        left: -25px;
        top: -25px;
    }
}




/* ----------------------------------
        PAGINATION
---------------------------------- */
.pagination {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0 50px 0;
}

.pagination_link {
    position: relative;
    font-weight: bold;
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    color: #FFF;
    background-color: rgba(225, 225, 225, 0.25);
    border: 1px solid rgba(225, 225, 225, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pagination_item {
    position: relative;
    list-style-type: none;
}

.pagination_item::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(45deg, #ff0090, #ff7600);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s linear;
}

.pagination_item:hover::before {
    opacity: 0.25;
}

.pagination_item_activated::before {
    opacity: 1;
}

.pagination_item_disabled {
    opacity: 0.25;
}




/* ----------------------------------
            PROGRESS
---------------------------------- */
span#progress {
    padding-left: 10px;
    font-size: 20px;
}