/* Fonts ↓ */
@font-face {
    font-family: 'Brush';
    src: url('Assets/Fonts/Brush.woff2') format('woff2'),
         url('Assets/Fonts/Brush.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Raleway';
    src: url('Assets/Fonts/Raleway.woff2') format('woff2'),
         url('Assets/Fonts/Raleway.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Swily';
    src: url('Assets/Fonts/Swily.woff2') format('woff2'),
         url('Assets/Fonts/Swily.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Assets/Fonts/Montserrat.woff2') format('woff2'),
         url('Assets/Fonts/Montserrat.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Colors Values ↓ */
:root {
    --body-img: url('Assets/Images/background_dark.jpg');
    --body-bgr: 100%;
    --header-bg: rgba(37, 37, 37, 0.424);
    --header-bd: rgb(255, 255, 255);

    --c1-anim: rgba(70, 70, 70, 0.572);
    --c2-anim: rgba(255, 255, 255, 0.394);
    --h1-color: rgb(179, 180, 189);
    --h2-color: rgb(255, 255, 255);
    --h3-color: rgb(179, 180, 189);
    --h4-color: rgb(255, 255, 255);
    --h5-color: rgb(246, 224, 221);
    --h6-color: rgb(238, 234, 233);

    --txt-shw: rgb(75, 75, 75);

    --link-txt: rgb(255, 255, 255);
    --link-txt-hv: rgba(255, 255, 255, 0.513);
    --link-shw: rgba(255, 255, 255, 0.394);
    --link-shw-hv: rgba(255, 255, 255, 0.394);

    --p-color: rgb(179, 180, 189);

    --li-color: rgba(255, 255, 255, 0.784);
    --li-bg: rgba(0, 0, 0, 0.255);
    --li-border: rgba(255, 255, 255, 0.082);

    --frame-bd: rgba(255, 255, 255, 0.361);
    --frame-bg-hv: rgba(175, 175, 175, 0.093);
    --frame-bg: rgba(24, 24, 24, 0.532);
    --frame-shw: rgba(0, 0, 0, 0.405);

    --form-input-bd: white;
    --form-input-bg: rgba(62, 62, 62, 0.288);
    --form-send-bg: rgba(62, 62, 62, 0);
    --form-btn-hover: rgba(255, 255, 255, 0.12);

    --subframe-bd: rgba(73, 69, 119, 0.3); 
    --subframe-bg: rgba(69, 69, 67, 0.7);
    --subframe-bg-hover: rgba(146, 146, 146, 0.384);

    --btn-bd: rgba(218, 218, 218, 0.549);
    --btn-bg-hv: rgba(92, 92, 92, 0.724);

    --btn-brightness: 90%;
    --img-grayscale: 44%;
    --img-invert: 0.76;
    --img-invert-2: 0.25;

    --scrollbar-color: rgba(70, 70, 70, 0.203); /* Lighter thumb for dark mode */
    --scrollbar-color-hover: rgba(118, 118, 118, 0.6); /* Darker thumb on hover */

    /* Other variables (no theme) */
    --arrow-rotate-deg: 0deg;
}

.light-theme {
    --body-img: url('Assets/Images/background_light.jpg');
    --body-bgr: 100%;
    --header-bg: rgba(89, 89, 89, 0.224);
    --header-bd: rgb(46, 46, 46);
    
    --c1-anim: rgba(50, 50, 50, 0.572);
    --c2-anim: rgba(33, 33, 33, 0.394);
    --h1-color: rgb(35, 35, 35);
    --h2-color: rgb(48, 48, 48);
    --h3-color: rgb(41, 41, 41);
    --h4-color: rgb(24, 24, 24);
    --h5-color: rgb(64, 61, 61);
    --h6-color: rgb(40, 39, 39);

    --txt-shw: rgb(185 185 185);

    --link-txt: rgb(43, 43, 43);
    --link-txt-hv: rgba(74, 74, 74, 0.513);
    --link-shw: rgba(54, 54, 49, 0.39);
    --link-shw-hv: rgba(172, 172, 172, 0.394);

    --p-color: rgb(44, 44, 44);

    --li-color: rgba(31, 31, 31, 0.784);
    --li-bg: rgba(209, 209, 209, 0.261);
    --li-border: rgba(72, 72, 72, 0.082);

    --frame-bd: rgba(255, 255, 255, 0.627);
    --frame-bg-hv: rgba(76, 76, 76, 0.444);
    --frame-bg: rgba(126, 126, 126, 0.328);
    --frame-shw: rgba(67, 67, 67, 0.405);
    
    --form-input-bd: rgba(121, 121, 121, 0.741);
    --form-input-bg: rgba(69, 69, 69, 0.241);
    --form-send-bg: rgba(62, 62, 62, 0);
    --form-btn-hover: rgba(63, 63, 63, 0.15);
    
    --subframe-bd: rgba(255, 255, 255, 0.288); 
    --subframe-bg: rgba(203, 203, 203, 0.702);
    --subframe-bg-hover: rgba(203, 203, 203, 0.384);

    --btn-bd: rgba(56, 56, 56, 0.549);
    --btn-bg-hv: rgba(120, 120, 120, 0.724);

    --btn-brightness: -90%;
    --img-grayscale: 70%;
    --img-invert: -1;
    --img-invert-2: 0.8;

    --scrollbar-color: rgba(0, 0, 0, 0.2); /* Lighter thumb */
    --scrollbar-color-hover: rgba(0, 0, 0, 0.5); /* Darker thumb on hover */

}

/* Styles ↓ */

body {
    margin: 0px;
    padding-bottom: 4vh;
    background: rgb(24, 24, 24);
    background-image: var(--body-img);
    background-repeat: repeat;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    z-index: -1;
    /* transition: backdrop-filter 0.5s ease; */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    backdrop-filter: brightness(var(--body-bgr));;
    transition: backdrop-filter 0.5s ease;
}

h1 {
    font-family: 'Montserrat', 'Courier New', Courier, monospace;
    color: var(--h1-color);
    font-size: xxx-large;
    transition: all 3s ease-in-out;
}

h2 {
    font-family: 'Raleway', 'Courier New', Courier, monospace;
    color: var(--h2-color);
}

h3 {
    font-size: x-large;
    font-family: 'Swily', 'Courier New', Courier, monospace;
    color: var(--h3-color);
    transition: transform 0.5s;
}

h4 {
    font-family: 'Raleway', 'Courier New', Courier, monospace;
    color: var(--h4-color);
    text-shadow: 0px 0px 5px var(--txt-shw);
    font-style: italic;
    font-size: 1.3em;
}

h5 {
    font-family: 'Montserrat', 'Courier New', Courier, monospace;
    font-size: large;
    color: var(--h5-color);
    margin: 0px;
}

h6 {
    font-family: 'Montserrat', 'Courier New', Courier, monospace;
    font-size: medium;
    color: var(--h6-color);
    margin: 4px;
}


a {
    font-family: 'Raleway', 'Courier New', Courier, monospace;
    color: var(--link-txt);
    text-decoration: none;
    transition: all 0.2s ease-out;
}

a:hover {
    cursor: pointer;
    color: var(--link-txt-hv);
}

p {
    font-family: 'Raleway', 'Courier New', Courier, monospace;
    color: var(--p-color);
    text-align:justify;
}

ul {
    list-style-type: none;
    padding: 0;
    padding-left: 15px;
    max-width: max-content;
}

li {
    border: 1px solid var(--li-border);
    background-color: var(--li-bg);
    border-radius: 4px;
    font-family: 'Raleway', 'Courier New', Courier, monospace;
    color: var(--li-color);
    margin-top: 10px;
    padding: 10px 6px;
    padding-right: 4vw;
}

table {
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
    border: 1px solid var(--frame-bd);
    font-family: 'Montserrat', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    margin-bottom: 20px;
}

caption {
    color: var(--h1-color);
    caption-side: bottom;
    padding: 10px;
    font-weight: bold;
}

thead, tfoot {
    border: 1px solid var(--frame-bd);
    background-color: rgb(62, 92, 113, 50%);
}

th, td {
    padding: 4px;
    border: 1px solid var(--frame-bd);
    color: var(--p-color);
}

/* Classes ↓ */

    /* ToggleBox ↓ */
.toggle-box {
    position: fixed;
    right: 7px;
    bottom: 7px;
    z-index: 3;
    width: 80px;
    height: 80px;
}

.toggle-box > img {
    opacity: 0.2;
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 50px;
    padding: 5px;
    border-radius: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toggle-box:hover img {
    cursor: pointer;
    opacity: 0.75;
    transform: scale(1.1) translateX(-20px) translateY(-20px) rotate(15deg);
}

    /* Header ↓ */
.header {
    height: auto;
    width: 100vw;
    border-bottom: 2px solid;
    border-color: var(--header-bd);
    background-color: var(--header-bg);
    margin: 0% auto;
    z-index: 2;
}

.header .sub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.sub-header-title, .sub-header-box {
    height: fit-content;
    width: 50%;
}

.sub-header-title h2 {
    float: left;
    animation: gradientAnimation 3s ease infinite alternate;
    line-height: 8vh;
    margin: 0px 0px;
    opacity: 0.4;
}

.sub-header-box {
    display: flex;
    justify-content: right;
    align-items: center;
}

.sub-header-box * {
    margin: 0px 5px;
    padding: 10px;
    text-shadow: 0px 0px 6px var(--link-shw);
    opacity: 0.5;
}

.selectedPage {
    opacity: 1.0;
    position: relative;
}

.selectedPage::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 50%;
    right: 0;
    opacity: 0;
    transform: translateX(-50%);
    height: 1px;
    background-color: var(--link-txt);
    animation: underlineAnimation 3s infinite alternate ease-in-out;
}

    /* Home Page ↓ */

.body-frames {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
}

.top-frame {
    display: flex;
    max-width: 100vw;
    max-height: 100vh;
}

.left-box {
    width: 50vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-box img {
    width: 28vw;
    max-width: 48%;
    filter: grayscale(var(--img-grayscale));
}

.right-box {
    padding: 5px;
    width: 50vw;
    margin: auto;
}

.body-frames > div {
    padding: 1%;
    margin: 1.3vh 3vw;
    border: 1px solid;
    border-color: var(--frame-bd);
    border-radius: 15px;
    background-color: var(--frame-bg);
    backdrop-filter: blur(3px);
    transition: background-color 0.3s, opacity 1s;
    opacity: 0.2;
}

.body-frames > div > h4 {
    text-align: center;
}

.body-frames > div.visible {
    opacity: 1;
}

.body-frames div .title-frame {
    width: fit-content;
    margin: auto;
    display: flex;
    opacity: 20%;
    transition: opacity 0.3s ease-in-out;
    transition: transform 0.3s ease;
}

.body-frames > div:hover .title-frame {
    transform: scale(1.10);
}

.body-frames > div:hover {
    background-color: var(--frame-bg-hv);
}

.body-frames > div:hover .title-frame {
    opacity: 1;
}

.body-frames div .title-frame img {
    width: auto;
    height: 66px;
    align-self: center;
    padding: 0px 15px;
    filter: invert(var(--img-invert-2));
}

.body-frames div > h4 {
    font-size: 1.65em;
}

.body-frames div > p {
    font-size: 1.23em;
}

.body-frames > .feed-frame > #feedContainer > .item {
    border: 1px solid var(--subframe-bd);
    background-color: var(--subframe-bg);
    border-radius: 8px;
    margin: 30px 0px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.body-frames > .feed-frame > #feedContainer > .item:hover {
    background-color: var(--subframe-bg-hover);
}

#feedContainer > .item > h5 {
    transform: translateY(100%);
}

#feedContainer > .item > p {
    margin-left: 2%;
}

#feedContainer > .item > a {
    font-size: 1.7em;
    align-self: flex-end;
    padding: 7px 2% 7px 7px;
}


    /* Article Page ↓ */
.articles-box {
    border: 1px solid var(--frame-bd);
    background-color: var(--frame-bg);
    box-shadow: var(--frame-bg-hv);
    margin-top: 4vh;
    margin-left: 5vw;
    margin-right: 5vw;
    padding: 8px 2%;
    border-radius: 10px;
    transition: all 0.2s;
}

.articles-box .top-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.articles-box .top-box .article-info {
    display: flex;
    flex-direction: row;
}

.articles-box .top-box .article-info > h3 {
    margin: 30px 35px;
}

.articles-box .top-box .searchbox {
    display: flex;
    flex-direction: row;
    padding: 15px;
}

.articles-box .top-box .searchbox > input {
    width: 300px;
    background-color: var(--frame-bg);
    border: 1px solid var(--frame-bd);
    color: var(--p-color);
    font-family: 'Raleway', 'Courier New', Courier, monospace;
    padding-left: 8px;
}


.articles-box .top-box .searchbox > input::placeholder {
    transition: color 0.3s;
}

.articles-box .top-box .searchbox > input:hover::placeholder {
    color: var(--link-txt-hv);
}

.articles-box .top-box .searchbox > button {
    width: 100px;
    background-color: var(--frame-bg);
    border: 1px solid var(--frame-bd);
    color: var(--p-color);
    font-family: 'Raleway', 'Courier New', Courier, monospace;
    font-size: medium;
    transition: all 0.35s;
}

.articles-box .top-box .searchbox > button:hover {
    width: 120px;
    cursor: pointer;
    background-color: var(--frame-bg-hv);
    border: 1px solid var(--frame-bd);
    color: var(--p-color);
    font-family: 'Raleway', 'Courier New', Courier, monospace;
    font-size: medium;
}

.articles-box .top-box .searchbox > button:active {
    background-color: var(--h3-color);
}

.articles-box .body-box {
    padding: 2vh 2vw;
}

.articles-box > .results-box {
    display: flex;
    flex-direction: column;
}

.articles-box .results-box > .found-article-box {
    border: 1px solid var(--frame-bd);
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    width: fit-content;
    margin-bottom: 10px;
    padding: 5px;
    transition: all 0.25s;
}

.articles-box .results-box > .found-article-box:hover {
    cursor: pointer;
    background-color: var(--frame-bg-hv);
    transform: translateX(10px);
}

.articles-box .results-box .found-article-box > * {
    margin-right: 40px;
}

.articles-box .body-box > .back-btn {
    float: right;
    border: 1px solid var(--btn-bd);
    padding: 5px 10px;
    border-radius: 4px;
}

.articles-box .body-box > .back-btn:hover {
    background-color: var(--btn-bg-hv);
}

.articles-box .body-box > .span-spacer {
    visibility: hidden;
}

    /* Projects Page ↓ */

.projectsContainer {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100vw;
    height: 92vh;
    top: 0%;
    margin: 0;
    transition: top 1.0s ease-in-out;
    z-index: 0;
}

.projectsContainer > .slider {
    min-height: 60vh;
    display: block;
    flex: 1;
    position: relative;
    width: 100%;
    z-index: -1;
    transition: all 0.5s ease;
}

.projectsContainer > .slider .box {
    overflow-y: auto;
    position: absolute;
    height: 47vh;
    top: 8%;
    --box-width: 50%;
    --box-max-width: 500px;
    --box-fwidth: min(var(--box-width), var(--box-max-width));
    width: var(--box-fwidth);
    padding: 25px;
    border: 1px solid;
    border-color: var(--frame-bd);
    border-radius: 5px;
    box-shadow: 0px 0px 20px var(--frame-shw);
    transition: 0.4s;
}

.projectsContainer > .slider .box h2 {
    padding-left: 10px;
    text-align: center;
}

.projectsContainer > .slider .box ul div {
    display: flex;
    flex-direction: row;
}

.projectsContainer > .slider .box ul div img {
    width: 20px;
    height: 20px;
    filter: invert(var(--img-invert));
    align-self: center;
    transform: translateY(5px);
    margin-right: 10px;
}

.projectsContainer > .slider .box ul li > a {
    text-decoration: underline;
}

.projectsContainer > .slider .box > a {
    border: 1px solid var(--frame-bd);
    border-radius: 12px;
    padding: 5px 8px;
}

.projectsContainer > .slider .box > a:hover {
    margin-left: 5px;
}

*::-webkit-scrollbar {
    background: rgba(15, 15, 15, 0.188);
}

*::-webkit-scrollbar-button {
    background: #00000000;
    border-top-right-radius: 18px;
    border-bottom-right-radius: 18px;
}

*::-webkit-scrollbar-thumb {
    background: #00000056;
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #3e3e3e41;
}

.projectsContainer #slide-left-btn, #slide-right-btn {
    padding: 7px;
    opacity: 0.15;
    transform: rotate(90deg) translateX(-50%);
    position: absolute;
    top: 50%;
    left: 2%;
    border-radius: 30px;
    transition: all 0.3s;
    z-index: 3;
    filter: brightness(var(--btn-brightness));
}

#slide-left-btn:hover, #slide-right-btn:hover {
    opacity: 0.5;
    cursor: pointer;
}

#slide-right-btn {
    left: unset;
    right: 2%;
    transform: rotate(-90deg) translateX(50%);
}

.projectsContainer > .switcher {
    position: absolute;
    bottom: 0%;
    width: 100vw;
    height: 22%;
    margin-left: auto;
    margin-right: auto;
    align-content: center;
    /* background-color: rgba(60, 196, 214, 0.217); */
    cursor: pointer;
}

.projectsContainer > .switcher > .arrows-container {
    display: flex;
    flex-direction: column;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: auto;
    padding: 20px;
    transition: all 0.5s ease;
    border-radius: 5px;
    opacity: 0.5;
}

.projectsContainer > .switcher .arrows-container:hover {
    /* border: 1px solid rgba(251, 247, 241, 0.177); */
    opacity: 0.88;
    transform: translateY(8px);
}

.projectsContainer > .switcher > .arrows-container > img {
    width: 3vh;
    align-self: center;
    filter: brightness(var(--btn-brightness));
    transition: all 0.3s;
}

.projectsContainer > .switcher > .arrows-container > .arrow-1 {
    animation: arrow1Animation 1.5s infinite ease-in-out;
}

.projectsContainer > .switcher > .arrows-container > .arrow-2 {
    animation: arrow2Animation 1.5s infinite ease-in-out;
}

.projectsContainer > #platformsContainer > .box > * {
    margin: 10px;
}

.projectsContainer > #platformsContainer > .box > #title {
    font-size: 1.4em;
    text-align: center;
}

.projectsContainer > #platformsContainer > .box > #status {
    font-size: 1em;
    margin-bottom: 5px;
}

.projectsContainer > #platformsContainer > .box > * > img {
    max-width: 20px;
    vertical-align: middle;
    padding-right: 5px;
}

.projectsContainer > #platformsContainer > .box > #users {
    font-size: 1em;
    margin-bottom: 5px;
}

.projectsContainer > #platformsContainer > .box > #users {
    font-size: 1em;
}

.projectsContainer > #platformsContainer > .box > #description {
    font-size: 0.99em;
    text-align: justify;
}

.projectsContainer > #platformsContainer > .box  > #tags {
    font-size: 0.80em;
}

.projectsContainer > #platformsContainer > .box > #link {
    font-size: 1.80em;
    align-self: center;
    margin-top: 18px;
    transition: all 0.4s;
    position: relative;
}

.projectsContainer > #platformsContainer > .box > #link::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 0%;
    right: 0%;
    opacity: 0;
    transform: translateX(-50%);
    height: 1px;
    background-color: var(--link-txt-hv);
    transition: all 0.5s;
}

.projectsContainer > #platformsContainer > .box > #link:hover::after {
    opacity: 0.6;
    width: 80%;
}

    /* Projects Page ↓ */
#toolkit {
    width: fit-content;
    height: auto;
    /* border: 1px dashed rgba(255, 255, 255, 0.521); */
    display: flex;
    flex-direction: column;
    margin-top: 2%;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

#toolkit .head {
    /* border: 1px solid blue; */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

#toolkit .head select {
    width: 90%;
    border: 1px solid var(--btn-bd);
    font-family: 'Swily', 'Courier New', Courier, monospace;
    font-size: xx-large;
    color: var(--h2-color);
    background-color: var(--frame-bg);
    border-radius: 4px;
}

#toolkit > .content {
    padding: 3px;
    /* border: 1px solid blue; */
    width: fit-content;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

#toolkit .content > * {
    border: 1px solid var(--frame-bd);
    background-color: var(--frame-bg);
    width: 40vw;
    max-width: 700px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

#toolkit .content .left .header {
    width: 100%;
    border-bottom: 1px solid var(--frame-bd);
}

#toolkit .content .right .header {
    width: 100%;
    border-bottom: 1px solid var(--frame-bd);
}

#toolkit .content .left .header h3 {
    text-align: center;
}

#toolkit .content .right .header h3 {
    text-align: center;
}

#toolkit .content * > .wrapper {
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /* border: 1px dashed white; */
    overflow-y: auto;
}

#toolkit .content * > .wrapper .container .item {
    border: 1px solid var(--subframe-bd);
    background-color: var(--subframe-bg);
    border-radius: 8px;
    padding: 0 5px;
    margin: 10px 0;
    transition: background-color 0.5s;
    cursor: pointer;
}

#toolkit .content * > .wrapper .container {
    display: none;
}

#toolkit .content * > .wrapper .container.visible {
    display: block;
}


#toolkit .content * > .wrapper .container .item:hover {
    background-color: var(--subframe-bg-hover);
}



    /* Contact Page ↓ */
.contact-box {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    margin-top: 7%;
    max-width: 600px;
    border: 1px solid var(--frame-bd);
    background-color: var(--frame-bg);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.405);
    padding: 10px 50px;
    border-radius: 5px;
}

.contact-footer {
    margin-top: 3%;
    position: relative;
    padding: 15px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: auto;
}

.contact-footer a {
    margin: 0px 10px;
}

.contact-footer a img {
    max-width: 35px;
    transition: all 0.3s ease;
    filter: opacity(0.3) invert(var(--img-invert-2));
}

.contact-footer a img:hover {
    filter: opacity(1);
}

    /* Articles ↓ */
.casual-article-img {
    display: block;
    /* border: 1px solid var(--frame-bd); */
    max-width: 40vw;
    margin: 5vh auto;
    transition: all 0.3s;
}

.casual-article-img:hover {
    transform: scale(1.04);
}

.casual-article-img2 {
    max-width: 60%;
    filter: invert(var(--img-invert));
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.no-padding {
    padding: 0;
}

.not-scrollable {
    overflow: hidden;
}

.legend-img {
    width: fit-content;
}

.legend-img > h5 {
    transition: all 0.25s;
    text-align: center;
    opacity: 0;
}

.legend-img > img {
    transition: all 0.25s;
}

.legend-img:hover h5 {
    opacity: 0.88;
    transform: translateY(8px);
}

.legend-img:hover img {
    box-shadow: 0px 0px 8px var(--frame-shw);
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.flex-container > * {
    flex-basis: 200px;
    border: 1px solid var(--frame-bd);
    margin: 15px;
    padding: 10px;
    border-radius: 10px;
    width: fit-content;
    transition: all 0.3s;
}

.flex-container div > h4 {
    transition: all 0.3s;
}

.flex-container > div:hover h4 {
    transform: translateX(5px);
}

.flex-container > div:hover {
    transform: scale(1.05);
}

.image-container {
    display: flex;
    flex-direction: row;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.form-box {
    display: flex;
    flex-direction: row;
    padding: 5px;
    align-items: center;
}

.form-box h4 {
    margin-right: 10px;
}

.form-send {
    padding: 4px;
    margin-top: 7px;
    margin-left: auto;
    margin-right: auto;
}

.form-box input {
    margin-left: auto;
    height: fit-content;
    background-color: var(--form-input-bg);
    border-radius: 4px;
    padding: 5px;
    border: 1px solid var(--form-input-bd);
    color: white;
}

.message-box {
    flex-direction: column;
}

.message-box textarea {
    width: 110%;
    height: 10em;
    font-size: medium;
    font-family: 'Raleway', 'Courier New', Courier, monospace;
    color: var(--p-color);
    background-color: var(--frame-bg);
    border-color: var(--form-input-bd);
    resize: vertical;
    padding: 4.6px;
}

.message-box textarea::placeholder {
    color: var(--p-color);
}

.form-send input {
    width: 100%;
    height: 30px;
    color: var(--h4-color);
    font-family: 'Raleway', 'Courier New', Courier, monospace;
    border-radius: 5px;
    background-color: var(--form-send-bg);
    border: 1px solid var(--form-input-bd);
    transition: all 0.3s ease-in;
}

.form-send input:hover {
    cursor: pointer;
    background-color: var(--form-btn-hover);
}

.form-send input:active {
    animation: clickedButton 0.3s ease;
}

.code-preview {
    background-color: #2d2d2d;
    color: #f8f8f2;
    font-family: "Fira Code", "Courier New", monospace;
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    line-height: 1.5;
    white-space: pre-wrap;
    border: 1px solid #444;
}

.code-line {
    background-color: #2d2d2d;
    color: #f8f8f2;
    font-family: "Fira Code", "Courier New", monospace;
    font-size: 14px;
    padding: 6px;
    border-radius: 8px;
    /* overflow-x: auto; */
    line-height: 1.5;
    white-space: pre-wrap;
    border: 1px solid #444;
    display: inline-block;
    vertical-align: middle;
    min-width: 100px;
    margin: 5px 2px;
    min-width: fit-content;
    min-height: fit-content;
}

.command-line {
    background-color: #1e1e1e;
    color: #0ff;
    font-family: "Fira Code", "Courier New", monospace;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 5px;
    display: inline-block;
    border: 1px solid #444;
    white-space: nowrap;
    margin: 5px 3px;
}

.command-line::before {
    content: "$ ";
    color: #ffcc66;
}

.math-line {
    background-color: #535353a6;
    color: #ffffff;
    font-family: "Fira Code", "Courier New", monospace;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 5px;
    display: inline-block;
    border: 1px solid #ccc;
    white-space: nowrap;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    margin: 5px 0px;
}

.math-fraction {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    text-align: center;
}

.math-fraction .numerator, .math-fraction .denominator {
    display: block;
}

.math-fraction .numerator {
    margin-bottom: 2px;
}

.math-fraction .denominator {
    margin-top: 2px;
    border-top: 1px solid #ccc;
    padding-top: 2px;
}

.command-line::before {
    content: "$ ";
    color: #ffcc66;
}

span.step {
    padding-top: 4px;
    padding-bottom: 14px;
    padding-left: 10px;
    font-size: large;
    text-decoration: underline;
}

/* Responsive Design ↓ */
@media (max-width: 1000px) and (min-width: 600px) {
    .legend-img > img {
        width: 25vw !important;
    }

    .articles-box .top-box .article-info > h3 {
        margin: 25px 18px;
    }
}

@media (max-width: 820px) and (min-width: 400px) {
    .articles-box .top-box {
        flex-direction: column;
    }

    .articles-box .top-box .searchbox {
        height: 50px;
        order: -1;
        align-self: center;
    }
}

@media (max-width: 600px) and (min-width: 400px) {
    .legend-img > img {
        width: 20vw !important;
    }
}

@media (max-width: 463px) {
    .sub-header-title h2 {
        font-size: 1.3em;
        transform: translateY(2px);
    }

    .sub-header-box a {
        font-size: 1.3em;
    }

}

@media (max-width: 400px) {

    .slider .box {
        top: 5%;
    }

    .slider .box ul li {
        overflow-x: scroll;
    }

    .sub-header-title {
        display: none;
    }

    .sub-header-box {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sub-header div {
        width: 100%;
    }
    
    .top-frame .right-box > h1 {
        font-size: 1.3em;
    }

    .top-frame .right-box > h3 {
        font-size: 1em;
    }

    div .title-frame > h4 {
        font-size: 1.25em;
    }

    .career-frame, .skills-frame {
        width: 80vw;
    }
    
    .body-frames div > p {
        font-size: 1em; 
    }

    .articles-box {
        padding-top: 0px;
    }

    .articles-box .top-box {
        flex-direction: column;
    }

    .searchbox {
        order: -1;
        height: 48px;
    }

    .articles-box .results-box > .found-article-box {
        width: 95%;
        flex-direction: column;
    }

    .articles-box .results-box > .found-article-box > .title {
        text-align: center;
        border-bottom: #efefef97;
    }

    .articles-box .results-box .found-article-box  > * {
        font-size: 1.1em;
        margin: 0;
        padding: 0;
        margin-left: 5px;
        margin-right: 5px;
        align-self: center;
    }

    .articles-box .top-box .article-info > h3 {
        margin: 3% 0px;
        justify-content: center;
        max-width: 29vh;
        font-size: medium;
        text-align: center;
        align-self: center;
        padding: 0;
    }

    .articles-box .top-box .article-info > #article-name {
        margin-top: 8%;
        font-size: 1.3em;
        text-decoration: underline;
    }
    
    .articles-box .top-box > .article-info {
        justify-content: center;
        flex-direction: column;
    }

    .image-container {
        flex-direction: column;
    }
    
    .legend-img {
        padding-bottom: 30px;
    }

    .articles-box .body-box > .back-btn {
        float: none;
        justify-content: center;
        display: flex;
    }

    .articles-box .body-box > .span-spacer {
        display: none;
    }

    .projectsContainer > #platformsContainer > .box {
        display: flex;
        flex-direction: column;
    }

    .projectsContainer > .platforms > .platformsBox > div {
        max-width: 100%;
        width: 85vw;
    }

}

/* KeyFrames ↓ */

@keyframes gradientAnimation {
    0% {
        text-shadow: 0px 0px 0px var(--c1-anim);
        opacity: 0.4;
    }
    100% {
        text-shadow: 0px 0px 10px var(--c2-anim);
        opacity: 0.6;
    }
}

@keyframes clickedButton {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(5px);

    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes underlineAnimation {
    0% {
        width: 10%;
        opacity: 0.0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        width: 70%;
        opacity: 0.5;
    }
}

@keyframes arrow1Animation {
    0% {
        transform: translateY(8px) rotateZ(var(--arrow-rotate-deg));
        opacity: 0.3;
    }
    50% {
        transform: translateY(3px) rotateZ(var(--arrow-rotate-deg));
        opacity: 0.5;
    }
    100% {
        transform: translateY(8px) rotateZ(var(--arrow-rotate-deg));
        opacity: 0.3;
    }
}

/* Animation for arrow 2 (slightly different timing) */
@keyframes arrow2Animation {
    0% {
        transform: translateY(-8px) rotateZ(var(--arrow-rotate-deg));
        opacity: 0.3;
    }
    50% {
        transform: translateY(-3px) rotateZ(var(--arrow-rotate-deg));
        opacity: 0.5;
    }
    100% {
        transform: translateY(-8px) rotateZ(var(--arrow-rotate-deg));
        opacity: 0.3;
    }
}

@keyframes gradientReflection {
    0% {
        background-position: -100%;
    }
    100% {
        background-position: 100%;
    }
}
