
@font-face {
    font-family: 'Arthead';
    src: url(fonts/NowsterCute.otf);
}
@font-face {
    font-family: 'CreatoDisplayThin';
    src: url(fonts/CreatoDisplay-Thin.ttf);
}
@font-face {
    font-family: 'HeyComic';
    src: url(fonts/HeyComic.otf);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'HeyComic';
}

html{
    font-size: 70%;
}

@media screen and (max-width: 800px) {
    html{
    font-size: 60%;
    }
}

a {
  color: inherit;         
  text-decoration: none; 
}

body{
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    min-height: 100%;
    background-image: url(images/movingBackground.gif);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-color: rgb(0, 0, 0);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    margin: 0;
    padding: 0;
}

header{
    font-family: 'Arthead';
    top: 0;
    left: 0;
    width:100%;
    padding: 1rem 3%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
    background-color: rgb(0, 0, 0);
}

.footer{
    /* position: relative; */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    pointer-events: none;
}

.footer img {
    display: block;
}

/* Footer */

/* Large image behind everything */
.footer-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    top: 0;
    left: 0;
    z-index: 1;
}

.footer-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    top: 0;
    left: 0;
    z-index: 1;}

/* Left image */
.footer-left {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 270px;
    height: auto;
    z-index: 2;
}

/* Right image */
.footer-right {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 150px;
    height: auto;
    z-index: 2;
}

.footer-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right button */
.footer-button {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 300px;
    height: auto;
    z-index: 3;
    pointer-events: auto;
}

@media (max-width: 1000px) {

    .footer-left {
    width: 230px;
    height: auto;
    }

    .footer-right {
    width: 130px;
    height: auto;
    }

    .footer-button {
    width: 230px;
    height: auto;
    }
}

@media (max-width: 800px) {
    
    .footer-left {
    width: 150px;
    height: auto;
    z-index: 2;
    }

    .footer-right {
    width: 160px;
    height: auto;
    z-index: 2;
    }

    .footer-button {
    width: 0%;
    height: 0%;
}
}

/* Header */

.logobox{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    background-image: url(images/webpage/movingBackground.gif);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 15px; 
    padding: 1rem 3%;
    width: 100%
}

.logo{
    font-family: 'Arthead';
    font-size: 600%;
    color: black;
    -webkit-text-stroke: 1px white;
    cursor: pointer;
    padding-left: 2rem 3%;
    padding-right: 2rem 3%;
}

@media screen and (max-width: 1100px) {
    .logo{
    font-family: 'Arthead';
    font-size: 400%;
    color: black;
    cursor: pointer;
    align-self: center;
    padding-left: 2rem 5%;
    padding-right: 2rem 5%;
    margin-left: 5%;
    margin-right: 5%;
    }

    .logobox{
    display:flex;
    justify-content: center;
    flex-direction: center;
    text-align: center;
    align-items: center;
    }

    .navbar{
        max-width: 1px;;
    }
}


/* Navigation */

nav{
    width: 50%;
    display: flex;    
    justify-content: flex-end;
    gap: 1rem;
    z-index: 100;
    /* transition: 0.5s ease; */
    background-color: none;
    border-radius: 15px; 
}

.navbox{ /*Navigation Buttons*/
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    font-size: 160%;
    border-radius: 15px; 
    padding: 1rem;
    border: 2px solid black; 
    background-color: white;
    min-width: 7rem;
}

.navbox:hover{
    transform: scale(1.1);
}

/* Navbar */
.navbar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.menu-toggle {
    display: none;
    font-size: 3rem;
    color: black;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile 768 */
@media (max-width: 1100px) {

    .menu-toggle {
        display: block;
            -webkit-text-stroke: .2px white;
            font-style: bold;
            font-size: 320%;

    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 150px;
        left: 50px;
        width: 80%;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 16px;
        padding: 1rem 0;
        text-align: center;
        z-index: 1000;
        border: 5px solid;
        max-width: 20rem;
    }

    .nav-links.active {
        display: flex;
        padding-left: 5rem;
    }

    .navbox{
        max-width: 10rem;
    }
}

/* Main Web Content Boxes */

.content{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(255, 255, 255);
    border-radius: 15px; 
    gap: 4%;
    height: 80%;
    width: 94%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 3%;
}

.panelheader{
    width: 95%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 15px; 
    padding: 1rem 2%;
}

/* Section Panels: Main Style */
.panel{
    width: 98%;
    border: 5px solid;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: white;
    border-radius: 15px; 
    padding: 1rem 5%;
}

.panel-content-wrap{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 15px; 
    padding: 1rem 3%;
    color: black;
}

.panel-content-stack{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 15px; 
    padding: 1rem 6%;
    color: black;
}

.title-text{ /* Title Box*/
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
    width: fit-content;
    max-width: 80%;
}

@media screen and (max-width: 800px) {
    .title-text{ 
    max-width: 95%;
}
}

.panel-title-big{ /* Title Text Style Big*/
    font-family: 'Arthead';
    font-size: 350%;
    text-align: center;
    white-space: normal;
    display: flex;
    justify-content: center;
    align-items: center; 
}

@media screen and (max-width: 1100px) {

    .panel-title-big{ 
    font-family: 'Arthead';
    font-size: 330%;
    text-align: center;
    white-space: normal;
    display: flex;
    justify-content: center;
    align-items: center; 
    }

}

.welcome-title{ /* Welcome to ILPrimarii*/
    font-family: 'Arthead';
    font-size: 350%;
    text-align: center;
    white-space: normal;
    display: flex;
    justify-content: center;
    align-items: center; 
}

@media (max-width: 1100px) {

     .welcome-title{ 
    font-family: 'Arthead';
    font-size: 260%;
    text-align: center;
    white-space: normal;
    display: flex;
    justify-content: center;
    align-items: center; 
    }
}

.panel-title{ /* Title Text Style Little*/
    font-family: 'Arthead';
    font-size: 250%;
    text-align: center;
    white-space: normal;
    display: flex;
    justify-content: center;
    align-items: center; 
}

/*Project Pannels*/

.panel-projects-wrap{  /*Full Wrap*/
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 15px; 
    padding: 1rem 3%;
    color: black;
}

.porjectpanelbox{ /*Individual Project Boxes*/
    display: flex;
    border: 5px solid;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: white;
    border-radius: 15px; 
    padding: 1rem 7%;
}

.porjectpanelbox:hover{
     transform: scale(1.05);
}

.project-panel-title{ /*Project Panels Title Text*/
    font-family: 'Arthead';
    font-size: 250%;
    text-align: center;
    white-space: normal;
    display: flex;
    justify-content: center;
    align-items: center; 
    max-width: 240px;
    margin-top: 1vh;
}

.project-panel-title-mini{ /*Project Panels Title Text*/
    font-family: 'Arthead';
    font-size: 200%;
    text-align: center;
    white-space: normal;
    display: flex;
    justify-content: center;
    align-items: center; 
    max-width: 240px;
}

/* Panel Content Styles*/

.panel-image{
    border-radius: 15px; 
    /* z-index: 10; */
}

.panel-image img{
    width: 20vh;
    height: 20vh;
    object-fit: cover;
    border-radius: 12px; 
}

.panel-text{ /* Panel text Box*/
    flex-direction: column;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 80%;
    max-height: 60%;
    white-space: nowrap;
}

.panel-description{ /* Description Text Style*/
    margin-top: 1vh;
    font-size: 200%;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1100px) {
    .panel-description{ /* Description Text Style*/
    margin-top: 1vh;
    font-size: 170%;
    overflow: hidden;
    text-overflow: ellipsis;
}
}


.panel-description-clamped{ /* Description Text Style, Clamped*/
    margin-top: 1vh;
    font-size: 180%;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 600px;
}

.project-description{ /* Description Text Style: Tags*/
    margin-top: 1vh;
    font-size: 180%;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    margin-left: 2vh;
    margin-top: 0;
    font-family: "social-gothic", sans-serif;
    text-transform: uppercase;
}

/* Text Colors*/

.redtext{
    color: rgb(243, 117, 113);
}

.bluetext{
    color: rgb(113, 105, 235);
}

/* Panel Base Colors*/


.blackbase{
    border-color:rgb(0, 0, 0);
    background-color:rgb(0, 0, 0);
}

.redbase{
    border-color:rgb(243, 117, 113);
    background-color:rgb(242, 146, 143);
}

.bluebase{
    border-color:rgb(113, 105, 235);
    background-color:rgb(136, 128, 238);
}

.yellowbase{
    border-color: rgb(251, 226, 170);
    background-color: rgb(249, 231, 193);
}

.whitebase{
    border-color: rgb(255, 255, 255,0);
    background-color: rgba(216, 216, 216, 0);
}

/* Buttons*/

.buttonpannel{
    display: flex;
    flex-direction: row;
    gap: 10%;
    align-items: center;
    justify-content: center;
}

.rounded-btn {
  background-color: rgb(113, 105, 235);
  color: #ffffff;
  padding: 1rem 10%;
  border: white;
  border-radius: 20px;
  cursor: pointer; 
  font-size: 160%;
  white-space: nowrap;
  width: fit-content;
  margin-left: -14px;
}

.rounded-btn:hover {
    transform: scale(1.05);
}

.email-button {
    width: 80px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-left: 5px;
}

/* P5.js Canvas */

canvas {
    display: block;
}

/* ScrollBar */

::-webkit-scrollbar {
  width: 12px;                     /* Width of vertical scrollbar */
  height: 10px;                    /* Height of horizontal scrollbar */
}

/* The background track */
::-webkit-scrollbar-track {
  background: rgb(227, 227, 227);             /* Color of the track */
  border-radius: 100px;            /* Optional: rounded edges */
}

/* The draggable slider thumb */
::-webkit-scrollbar-thumb {
  background: #a09cd4;             /* Color of the draggable bar */
  border-radius: 10px;            /* Optional: rounded edges */
  border: 3px solid rgba(227, 227, 227);
}

/* The thumb appearance on hover */
::-webkit-scrollbar-thumb:hover {
  background: #646bce;             /* Darken the bar on hover */
}