@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

@font-face{
    src: url(fonts/Caprasimo-Regular.ttf);
    font-family: brand;
}
@font-face{
    src: url(fonts/Noto_Sans/NotoSans-VariableFont_wdth\,wght.ttf);
    font-family: straightText;
}
@font-face{
    src: url(fonts/Noto_Sans/static/NotoSans-Bold.ttf);
    font-family: boldText;
}
@font-face{
    src: url(fonts/Sniglet/Sniglet-Regular.ttf);
    font-family: curvyText;
}
@font-face{
    src: url(fonts/Cinzel/static/Cinzel-Black.ttf);
    font-family: boldFancy;
}

@font-face{
    src: url(fonts/Redressed/Redressed-Regular.ttf);
    font-family: welcome;
}

body{
    margin:0px;
    overflow-x: hidden;
  
    background-color: var(--primary-page-bg);
    color: var(--primary-text-color);
  
    --primary-page-bg: #E8E0FF;
    --primary-text-color: rgb(45, 0, 61);
    --stopwatch: hsl(0, 0%, 25%);
    --time: hwb(0 30% 70%);
    --container: #A9AB9D;
    --border-color: rgb(0, 0, 0);
    --hidden: 1;
    --hidden2:0;
    /* --shadow: -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF, 1px 1px 0 #FFF; */
    overscroll-behavior: none;
  
    --messagi: #333;
  }
body.dark{
    
    --primary-page-bg:rgb(45, 0, 61); 
    --primary-text-color: #E8E0FF;
    --stopwatch: hsl(0, 0%, 95%);
    --time: hsl(105, 81%, 45%);
    --container: rgba(50, 50, 50, 0.84);
    --border-color: rgb(255, 255, 255);
    --hidden: 0;
    --hidden2:1;
    --shadow: -1px -1px 0 #000000, 1px -1px 0 #000000, -1px 1px 0 #000000, 1px 1px 0 #000000;
    --messagi:#E8E0FF;
}
body.chest{

}
  /* Logo and Navbar */
#minHeader{
    display:inline-block;
    text-align: center;
    background-color:#d8572a;
    width:100%;
    height:11.75vh;
}
#companyName{
    text-align: center; 
    display:inline-block; 
    font-family: boldFancy;
    color:#CFE8EF;
}
#logo{
    display: inline-block; 
    text-align: center;
    width:60px;
    height:auto;
    position: relative;
    top: 18px;
}
.navbar ul{
    list-style: none;
    background-color: #db7c26;
    text-align: center;
    padding: 0;
    margin:0;
    overflow:hidden;
}
.navbar a{
    text-align: center;
    color:#CFE8EF;
    text-decoration: none;
    padding:1em;
    display: block;
    font-family: curvyText;
}
.navbar a:hover{
    background-color: #d8572a;
}
.navbar li{
    display: inline-block;
    align-content: center;
    margin-left: 25px;
    margin-right: 25px;
}
  
  /* Dark Mode */
  .fa-solid.fa-moon{
    display: inline-block; 
    text-align: center;
    width:60px;
    height:auto;
    position: absolute;
    right:9px;
    top: 35px;
    z-index: 20;
    opacity:var(--hidden2);
  }
  #toggle{
    display: none;
  }
  .fa-solid.fa-sun{
    display: inline-block; 
    text-align: center;
    width:60px;
    height:auto;
    position: absolute;
    right:9px;
    top: 35px;
    opacity:var(--hidden);
    animation: smoothGrow 1.5s ease-out;
  }
  @keyframes smoothGrow{
    50%{
        transform: scale(1.5,1.5) rotate(180deg);
    }
  }

  
/* Cards */
:root{
    --w:250px;
}
#cards div{
    position: absolute;
    margin-top: 1.5em;
    width:var(--w);
    aspect-ratio: 1/1;
    transform:rotateX(10deg) rotateY(45deg);
    border-radius: 10px;
    transition:.5s;
    padding-left: 7px;
    font-family: brand;
    font-size: 20px;
    text-shadow: var(--shadow);
    cursor:pointer;
    overflow: hidden;
}
#cards div:hover{
    transform: translateX(10px) rotateX(10deg) rotateY(45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

}
.move-to-top {
    transform: rotate(-360deg);
}
#cards div:nth-child(1){
    right:calc(85% - var(--w)/2);
    top:43%;
    z-index: 1;
    background-color: rgb(161, 68, 68);

}
#cards div:nth-child(1):active{
    opacity: 0;
}
#cards div:nth-child(2){
    right:calc(75% - var(--w)/2);
    top:40%;
    z-index: 0;
    background-color: rgb(237, 100, 100);
}
#cards div:nth-child(3){
    right:calc(65% - var(--w)/2);
    top:37%;
    z-index: -1;
    background-color:  rgb(79, 149, 65);

}
#cards div:nth-child(4){
    right:calc(55% - var(--w)/2);
    top:34%;
    z-index: -2;
    background-color:  rgb(123, 237, 100);

}
#cards div:nth-child(5){
    right:calc(45% - var(--w)/2);
    top:31%;
    z-index: -3;
    background-color: rgb(100, 198, 237);

}
#cards div:nth-child(6){
    right:calc(35% - var(--w)/2);
    top:28%;
    z-index: -4;
    background-color: cornflowerblue;

}
#cards div:nth-child(7){
    right:calc(25% - var(--w)/2);
    top:25%;
    z-index: -5;
    background-color: rgb(111, 100, 237);

}
#cards div:nth-child(8){
    right:calc(15% - var(--w)/2);
    top:22%;
    z-index: -6;
    background-color: rgb(173, 100, 237);
}








.clearfix::after {
    content: "";
    clear: both;
    display: table;
}
#space{
    height: .7em;
    width: auto;
    clear: both;
}

.message {
    position: absolute;  /* Fixed position */
    bottom: 20px; /* Space from the bottom */
    left: 50%; /* Start positioning from the left middle */
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    color: var(--messagi);
    display: none; /* Initially hidden */
    padding: 10px;
    font-family: 'Poppins';
    text-shadow: var(--shadow);
}
