body { 
    margin: 0;
    font-family: 'Courier New', monospace;
    overflow-x: hidden; 
    position: relative; 

    background-image: url('/static/images/background.jpg'); 
    background-repeat: repeat; 
    background-size: 5%; 
    background-position: top left;
    background-attachment: fixed; 
}
/* Loading In Animation */
.content-wrapper {
    opacity: 0;
    transform: translateY(50px); 
    animation: slideUp 1s forwards; 
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0); 
    }
}
.header {
    position: flex;
    top: 0;
    background-color: transparent;
    padding: 10px 10px;
    z-index: 1000;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header a {
    color: black;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    font-size: 18px; 
    line-height: 25px;
    border-radius: 15px;
}
.header a.logo {
    display: inline-block;
}
.header a.logo img {
    display: block; 
    height: auto; 
    width: auto; 
    max-height: 50px; 
    margin: 0px auto;
    border-radius: 15px;
}
.header-right {
    float: right;
}
.header-right a {
    background-color: #f0f0f0; /* Default background color for links */
    margin: 0 5px;
}
.header-right a.home {
    background-color: #ffcccb; /* Light red */
}
.header-right a.home:hover {
    background-color: #ff9999; /* Darker red on hover */
}
.header-right a.projects {
    background-color: #ccffcc; /* Light green */
}
.header-right a.projects:hover {
    background-color: #99ff99; /* Darker green on hover */
}
.header-right a.experience {
    background-color: #cce5ff; /* Light blue */
}
.header-right a.experience:hover {
    background-color: #99ccff; /* Darker blue on hover */
}
.header-right a.skills {
    background-color: #fff3e6; /* Light orange */
}
.header-right a.skills:hover {
    background-color: #ffd1b3; /* Darker orange on hover */
}
.header-right a.resume {
    background-color: #d9f7be; /* Light green */
}
.header-right a.resume:hover {
    background-color: #b3e6a6; /* Darker green on hover */
}
.background {
    background-image: url(/static/images/background.jpg); 
    background-repeat: repeat;
    background-size: 1%; 
    background-color: (0.5);
    background-position: top left; 
    background-attachment: scroll; 
}
.center {
    flex: 1;
    text-align: center;
}
.gap-space{
    overflow: hidden;
    padding: 20px 10px;
}
.mega-gap-space {
    overflow: hidden;
    padding: 200px 10px;
}
.gap-space {
    overflow: hidden;
    padding: 200px 10px;
}
.intro-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
.right {
    flex: 1;
    text-align: center;
    align-items: center;
}
.right-text {
    max-width: 600px;
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word; 
}
.left {
    flex: 1;
    text-align: center;
}
.left img {
    display: block;
    margin: 10px auto;
}
.icons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.icons a {
    margin-left: 10px;
}
#typing {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    white-space: pre;
    border-right: 2px solid black;
    display: inline-block;
    text-align: center;
    margin-right: 200px auto;
    font-weight: bold;
}
@keyframes blink {
    50% {
        border-color: transparent;
    }
}
#typing {
    animation: blink 0.5s step-end infinite alternate;
}
.experience-container {
    background-color: #e9c7c1;
    display: flex;
    flex-direction: wrap;
    gap: 150px;
    justify-content: center;
    width: 1200px;
    height: 80px; 
    margin: 0 auto;
    border: 5px solid black;
    border-radius: 30px;
    position: relative;
    transition: all 0.3s ease;
}
.each-experience-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    width: auto; 
    height: auto; 
    position: relative; 
    flex-basis: 250px;
    margin-bottom: 10px;
}
.button-row {
    display: flex;
    justify-content: column;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}
.expandable-button {
    background-color: transparent;
    padding: 5px 5px;
    margin: 0 10px;
    margin-top: 15px;
    margin-left: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.expandable-button img {
    width: 100px;
    height: auto;
    border-radius: 5px;
    z-index: 4;
}
.expandable-button:hover {
    background-color: #e9c7c1;
    border: 5px solid black;
    border-radius: 50px;
    transition: background-color 0.3s ease;
}
.expandable-content {
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.3s ease, width 0.3s ease; 
    padding: 0 10px;
    position: absolute; 
    top: 100%; 
    background-color: #f5f5f5;
    border-radius: 10px;
    width: 150px; 
    height: auto;
    box-sizing: border-box; 
    margin-top: 25px;
}
.expandable-button.active + .expandable-content {
    max-height: 350px;
    width: 300px;
    padding: 10px;

}
.skills-container {
    background-color: #e9c7c1;
    display: flex;
    flex-direction: wrap;
    gap: 50px;
    justify-content: center;
    width: 120%;
    max-width: 1200px; 
    height: 180px; 
    margin: 0 auto;
    border: 5px solid black;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.each-skill-container{
    perspective: 1000px; 
    margin-bottom: 20px;
    margin-top: 50px;
}
.card {
    width: 250px; 
    height: 450px; 
    position: relative;
    transform-style: preserve-3d; 
    transition: transform 0.6s;
}
.card:hover {
    transform: translateY(-20px);
    border-radius: 50px;
}
.card-front, .card-back {
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; 
    border-radius: 30px;
    border: 5px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    flex-direction: column;
    text-align: center;
}

.card-back {
    transform: rotateY(180deg); 
}
.each-skill-container.flipped .card {
    transform: rotateY(180deg); 
}
.skills-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1px;
}
.skills-text img {
    display: block;
    margin: 10px auto;
}
