#minime {
    height: 15%;
    position: absolute;
    top: 83%;
    left: 40%;
    animation: fadein 5s ease-in-out;
    z-index: 100;
}


#buttoncontainer {
    position: fixed;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999999;
    width: 25%;
    height: 8%;
    border-radius: 40px;
    display: none;
    align-items: center;
    justify-content: space-around;
    animation: fadein 0.5s ease-in-out;
    background-color: rgba(85, 85, 85, 0.374);
    transition: 1s;
}


#stackbutton,#projectsbutton,#contactsbutton {
    border-radius: 40px;
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: clamp(0.2rem, calc(0.3rem + 0.8vw), 1.2rem);
    font-family: 'BUNGEE';
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.705);
}

#stackbutton:hover,#projectsbutton:hover,#contactsbutton:hover {
    scale: 1.3;
    transition: 0.3s;
    z-index: 9999999999;
    box-shadow: 0 4px 20px rgb(0, 0, 0);
}

#stackbutton {
    background-color: rgb(10, 134, 205);
    width: 30%;
}

#projectsbutton {
    background-color: pink;
    color: black;
    width: 30%;
}

#contactsbutton {
    background-color: rgb(95, 14, 160) ;
    width: 30%;
}


#mylocation {
    position:absolute;
    top: 513%;
    left: 0%;
    height: 40%;
    width: 100%;
    
}

#projcontainer {
    position: absolute;
    top: 500%;
    left: 10%;
}

#Hello {
    position: absolute;
    top: 15%;
    right: 20%;
    animation: slideleft 2s ease-in-out;
    transition: 3s;
    font-size: 5vw;
    cursor: pointer;
}

#HTML, #CSS, #JavaScript {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    position: absolute;
    top: 33%;
    cursor: pointer;
    transition: 0.7s;
    font-size: 1.6vw;
    color: rgba(255, 255, 255, 0);
}

#HTML:hover, #CSS:hover, #JavaScript:hover{
    transform: scale(1.5);
    transition: 0.5s;
    color: black;
}

#JavaScript:hover{
    color: rgb(62, 62, 60);
}
#HTML:hover{
    color: rgb(255, 255, 255);
}

#HTML{
    top: 23%;
    left: 40%;
    background-color: orange;
    width: 6vw;
    height: 6vh;
    animation: slideright 2s ease-in-out;
}

#CSS {
    left: 42%;
    background-color: rgb(107, 206, 231);
    width: 4vw;
    height: 6vh;
    animation: slideright 3s ease-in-out;
}

#JavaScript {
    left: 28%;
    background-color: yellow;
    width: 12vw;
    height: 6vh;
    animation: slideright 3s ease-in-out;
}

#keycontainer {
    position: absolute;
    top: 70%;
    left: 35%;
    width: 25vw;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadein 3s ease-in-out;

}

#a, #d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid black;
    border-radius: 10px;
    width: 4vw;
    height: 6vh;
    margin: 1vw;
    background-color: lightgray;
    font-size: 2vw;
    cursor: pointer;
    transition: 0.3s;
    color: rgb(28, 29, 29);
}

#bio {
    position: absolute;
    top: 43%;
    left: 29%;
    font-size: 0.9vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(76, 74, 74, 1);
    animation: fadein 3s ease-in-out;
}

body.lightmode {
    background-color: white !important;
    color: black !important;
    transition: 0.5s;
}

body {
    transition: background-color 0.5s, color 0.5s;
}

#aboutme {
    position: absolute;
    top: 110%;
    left: 44%;
    font-size: 3.5vw;
    font-family: 'oswald';
    animation: fadein 3s ease-in-out;
    font-weight: bold;
    display: none;
} 

#option {
    position: fixed;
    top: 5%;
    left: 5%;
    animation: fadein 5s ease-in-out;
    z-index: 999;
}

#game-mode, #web-mode {
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1vw;
    cursor: pointer;
    transition: 0.3s;
    color: rgb(72, 72, 72);
    z-index: 999;
    
}



#seemore{
    position:absolute;
    top: 95%;
    left: 45%;
    display:none;
}

#info1 {
    position:absolute;
    top: 125%;
    left: 35%;
    font-family: 'poppins';
    font-size: 1.3vw;
    display: none;
    animation: fadein 2.5s ease-in-out;
}

#infocontainer{
    display: none;
    z-index: 99;
}


#boxcontainer {
    background-color: rgba(9, 9, 9, 0);
    position: absolute;
    top: 535%;
    left: 10%;
    width: 80%;
    height: 12%;
    z-index: 3;
    display: flex;
    justify-content: center;
    flex-grow: 1;
    font-size: clamp(0.2rem, calc(0.7rem + 0.8vw), 1.2rem);
    flex-wrap: wrap; /* allow wrap on smaller screens */
    gap: 5%;
    color: rgba(186, 186, 186, 0.712);
    border-radius: 20;
    display: none;
}

#boxcontainer div {

    flex-grow: 1;
    transition: background-color 0.3s, color 0.3s, flex-grow 0.6s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    font-family: bungee;
    transition: 0.8s;
    animation: slidedown 5s ease-in-out;

}

#boxcontainer div a {
    opacity: 0;
    transition: opacity 0.5s ease;
    color: inherit;
    text-decoration: none;
    font-size: 0.8em;
    font-family: arial;
    font-size: 0.5rem;
}

#boxcontainer div:hover {
    color: white;
    flex-grow: 10;
    border-radius: 1vw;
    background-color: rgb(11, 20, 55);
    scale: 1.5;
}

#boxcontainer div:hover a {
    opacity: 1;
}

#message {
    position: absolute;
    top: 185%;
    left: 42%;
    display: none;
    animation: fadein 3.9s ease-in-out;
    color: rgb(255, 255, 255);
    z-index: -5;
}

#seeproj {
    position: fixed;
    top: 70%;
    left: 1%;
    display: none;
    
}
#stackscontainer{
    position: absolute;
    top: 220%;
    width: 100%;
    left:0%;
    height: 40%;
    display: none;
}

#js {
    left: 49%;
    animation: slideright 2s ease-in-out;
    background-color:rgb(238, 255, 0) ;
    width:9%;
    color: black;
}

#py {
    left:59%;
    animation: slideright 1s ease-in-out;
    background-color:rgb(26, 139, 204) ;
    width:6%;
}







#ht {
    left: 35%;
    animation: slideright 4s ease-in-out;
    background-color:orange;
    width:6%;
}

#cs {
    left: 43%;
    animation: slideright 3s ease-in-out;
    background-color:rgb(133, 216, 228) ;
    width:5%;
    color: black;
    display: 'none';
}

#js, #py, #ht, #cs, #java, #cpp, #supabase {
    position: absolute;
    top: 90%;
    border-radius:20px;
    height: 2.5vw;
    display: flex;
    justify-content: center;
    align-items: center;
    display: 'none';
}

#java {
    top: 110% ;
    left:35%;
    animation: slideright 6.5s ease-in-out;
    background-color:rgb(238, 22, 22) ;
    width:6%;
}

#cpp {
    top: 110% ;
    left:42%;
    animation: slideright 5.6s ease-in-out;
    background-color:rgb(11, 77, 175) ;
    width:6%;
    
}

#supabase {
    top: 110% ;
    left:49%;
    animation: slideright 4.6s ease-in-out;
    background-color:rgb(32, 32, 32) ;
    width:7%;
    color: rgb(53, 204, 53);
}

#stackinfo {
    top: 10%;
    position: absolute;
    width: 40%;
    left: 33%;
    font-family: 'poppins';
    animation: fadein 2s ease-in-out;
    font-size: 1.3vw;
    display: none;
    transition: 2s;
}

#seemore2 {
    animation: fadein 2s ease-in-out;
    position: fixed;
    bottom: 5%;
    right: 2%;
    color: rgb(203, 201, 201);
    font-size: 1vw;

}

#seeprojects {
    animation: fadein 0.9s ease-in-out;
    position: fixed;
    bottom: 5%;
    right: 1%;
    color: grey;
    font-size: 0.7vw;
}

#weight {
    display: none;
    position: absolute;
    top: 540%;
    opacity: 0;
}

#abmebutton, #contact {
    display: none;
}


#projectscontainer {
    font-family: 'poppins';
    position: absolute;
    top: 335%;
    left: 0%;
    width: 100%;
    height: 120%;
    background-color: rgba(0, 0, 0, 0);
    opacity: 99999;
    display: none;
    animation: fadein 1.3s ease-in-out;
    justify-content: center;
    text-align: center;
    font-size: 1.3vw;
}

#projectsheader, #projectsheader2 { 
    position:absolute;
    font-family: 'poppins';
    font-size: 3vw;
    background-color: rgba(255, 0, 0, 0);
    animation: fadein 4.2s ease-in-out;
    transition: transform 1s ease-in-out;
}

#projectsheader{
    top: 45%;
    left: 8%;
}

#projectsheader2 {
    top: 120%;
    right: 8%;
}



#projectstitle {
    font-weight: bold; 
    font-size: 4.7vw;
    animation: fadein 1s ease-in-out;
}

#prjctdiv, #prjctdiv2 {
    position: absolute;
    width: 45%;
    height: 40%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background-color: rgba(8, 166, 240, 0);
    border-radius: 20px;
    animation: fadein 3.5s ease-in-out;
    cursor: pointer;
    z-index: 9999;
    transition: 0.5s ease-in-out;
    /*border-radius: 100% 90% 40% 100% / 100% 60% 100% 100%;*/
}

#prjctdiv {
    top: 30%;
    right: 5%;
}

#prjctdiv2 {
    top: 100%;
    left: 5%;
}



#prjctdiv:hover, #prjctdiv2:hover {
    transition: 1s;
    transform: scale(1.1);
    
}

#projectinfo, #projectinfo2 {
    position: absolute;
    font-size: 1vw;
    background-color: rgba(54, 54, 54, 0);
    width: 30%;
    letter-spacing: 0.05em;
    height: 20%;
    display:none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0);
    border-radius: 20px;
    transition: 2s ease-in-out;
    padding: 15px;
    z-index: 99999;
}

#projectinfo{
    top: 50%;
    left: 5%;
    animation: fadein 2s ease-in-out;
}

#projectinfo2 {
    top: 120%;
    right: 5%;   
    animation: fadein 2s ease-in-out;
}

#map-container {
    display: none;
    position: absolute;
    top: 145%;  
    left: 22%;
    width: 60%;
    text-align: center;
    animation: fadein 3.5s ease-in-out;
}

#map-container h2 {
    font-size: 3vw;
    margin-bottom: 20px;
    font-family: 'oswald';
}

#map-container iframe {
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}




/* Animations */

@keyframes slideleft {
    from {transform: translate(1000%);}
    to {transform: translate(0%);}
}

@keyframes slideright {
    from {opacity: 0; transform: translate(-1000%);}
    to {opacity: 1; transform: translate(0%);}
}

@keyframes fadein {
    from {opacity: 0;}
    50% {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fadeout {
    from {opacity: 1;}
    50% {opacity: 0;}
    to {opacity: 0;}
}

@keyframes bouncing {
    from {transform: translateY(0);}
    50% {transform: translateY(-20px);}
    to {transform: translateY(0);}
}

@keyframes fadeout {
    from {opacity: 1;}
    50% {opacity: 0.5;}
    to {opacity: 0;}
}

@keyframes slideleftright {
    from {transform: translateX(0);}
    50% {transform: translateX(-20px);}
    to {transform: translateX(0);}
}

@keyframes sliderightleft {
    from {transform: translateX(0);}
    50% {transform: translateX(40px);}
    to {transform: translateX(0);}
}




@media (max-width: 568px) {

#stacks:hover, #projects:hover, #certificates:hover, #abmebutton:hover, #contact:hover {
    scale: 1.1;
    color: orange;
}

#entry {
    width: 60%;
    height: 12px;
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #444;
    margin-bottom: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
}
    
#Hello {
    font-size: 10vw;
    top: 2%;
    right: 2%;
}

#info1 {
    font-size: 3vw;
    width: 90%;
}

#aboutme {
    top: 90%;
    display: block;
    opacity: 1;
    font-size: 8vw;
}


#stackscontainer {
    top: 90%;
    display: block;
}


#js, #py, #ht, #cs, #java, #cpp{
    display: flex;
    height: 10%;
    top:360%;


}

#js {
    width: 35%;
    left: 55%;
    animation: slideright 1s ease-in-out;
}

#py{
    width: 25%;
    top: 380%;
    left: 8%;
    animation: slideright 2.5s ease-in-out;
}

#java {
    width: 25%;
    top: 380%;
    left: 38%;
    animation: slideright 2.5s ease-in-out;
}







#stackinfo {
    top: 300%;
    font-size: 3vw;
    width:80%;
    left: 10%;
}

#stackinfo {
    animation: fadein 1s ease-in-out;
}


#ht {
    width: 20%;
    left: 28%;
    animation: slideright 1.5s ease-in-out;
}

#cs{
     width: 20%;
     left: 5%;
     animation: slideright 2s ease-in-out;
}



#JavaScript, #CSS {
    top: 10%;   
}

#CSS {
    left: 20%;
    width: 10%;
}

#HTML {
    top: 2.5%;
    left: 15%;
    width: 15%;
}

#JavaScript {
    top: 10%;
    left: 3%;
    width: 15%;
}

#keycontainer {
    display: none;
    opacity: 0;
}

#weight{
    display: block;
}

#message {
    display: none;
}

#bio {
    font-size: 2vw;
    left: 10%;
    width: 80%;
    top: 20%;
}

  #minime {
    display: none;
  }
  #seemore2{
    left: -10%;
    display: none;
    opacity: 0;
  }

  #option{
    display: none;
    opacity: 0;
  }

  #web-mode, #game-mode {
    display: none;
    opacity: 0;
  }
}