:root{
    --base-background-color: #e5e7eb;
    --base-background-color-variant: #ffffff;
    --base-background-color-variant-2: #424242;
    --text-color: #1a202c;
    --text-color-variant: #e5e7eb;
    --color-primary: #2e5081;
    --color-secondary: #D183C9;
}
.darkmode{
    --base-background-color: #16181c; 
    --base-background-color-variant: #26292f;
    --base-background-color-variant-2: #2e5081; 
    --text-color: #e5e7eb; 
    --text-color-variant: #e5e7eb;
    --color-primary: #c0faff;
    --color-secondary: #E387C9;
}

*{
    margin: 0;
    padding: 0;
}
html{
    font-family: 'Open Sans';
}
body{
    font-family: 'Open Sans';
    background-color: var(--base-background-color);
    background-image: url(icons/layered-waves-haikei1.svg);
    background-repeat: no-repeat;
    
    background-size: cover;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: background-color 0.2s ease, background-image 0.2s ease;
}
body.darkmode {
    background-color: var(--base-background-color-variant);
    background-image: url(icons/layered-waves-haikei.svg);
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--text-color-variant);
}
#theme-switch{
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
}
#theme-switch svg{
    width: 50px;
    height: 50px;
    fill: var(--base-background-color-variant-2);
}
#theme-switch svg:last-child{
    display: none;
}
.darkmode #theme-switch svg:first-child{
    display: none;
}
.darkmode #theme-switch svg:last-child{
    display: block;
}

.non-interactive{
    user-select: none;
    pointer-events: none;
}

.home {
    background: var(--base-background-color-variant);
    border-radius: 12px;
    box-shadow: 0 12px 10px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 100%;
    padding: 40px;
    text-align: center;
    position: relative; /* Required for positioning the top bar */
    border: 2px var(--base-background-color-variant-2) solid;
}

.home-about {
    background: var(--base-background-color-variant);
    border-radius: 12px;
    box-shadow: 0 12px 10px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    width: 100%;
    padding: 20px;
    text-align: left;
    position: relative; /* Required for positioning the top bar */
    border: 2px var(--base-background-color-variant-2) solid;
}

.home-project {
    background: var(--base-background-color-variant);
    border-radius: 12px;
    box-shadow: 0 12px 10px rgba(0, 0, 0, 0.1);
    max-width: 850px;
    width: 100%;
    padding: 20px;
    text-align: left;
    position: relative; /* Required for positioning the top bar */
    border: 2px var(--base-background-color-variant-2) solid;
}

.home-contact {
    background: var(--base-background-color-variant);
    border-radius: 12px;
    box-shadow: 0 12px 10px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
    padding: 20px;
    text-align: center;
    position: relative; /* Required for positioning the top bar */
    border: 2px var(--base-background-color-variant-2) solid;
}

.top-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: var(--base-background-color-variant-2);
    color: var(--text-color-variant);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px; 
    font-weight: bold; 
    border-top-left-radius: 8px; 
    border-top-right-radius: 8px;
    z-index: 1; 
    cursor: move;
}

.home-content {
    margin-top: 80px;
}
.home-box {
    margin-top: 55px;
}

a:link{
    color: var(--color-primary);
}
a:visited{
    color: var(--color-primary);
}
a:hover{
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
}

h1{
    font-size: 78px;
    margin-bottom: 10px;
    font-weight: 100;
}

h2{
    font-size: 36px;
}

h3{
    font-size: 24px;
    font-weight: bold;
}

p{
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
}

ul{
    list-style: disc;
    margin-left: 20px;
}

footer {
    position: fixed;
    text-align: center;
    bottom: 0;
}

span{
    color: var(--color-primary);
}

.icons{
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.icon{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon svg{
    width: 50px;
    height: 50px;
    fill: var(--text-color);
}

.icon:hover{
    cursor: pointer;
    transform: scale(1.05);
}

.icon span{
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
}


/* DRAGGABLE WINDOW */
#drag-window{
    position: absolute;
    z-index: 9; /* Ensure it's above other elements */
    top: 0; /*remember to delete*/
    left: 0;/*remember to delete*/
    display: none; /* Initially hidden */;
}

#about-window {
    position: absolute;
    z-index: 10; /* Ensure it's above other elements */
}

#link-window {
    position: absolute;
    z-index: 10; /* Ensure it's above other elements */
}

#project-window {
    position: absolute;
    z-index: 10; /* Ensure it's above other elements */
}

#contact-window {
    position: absolute;
    z-index: 10; /* Ensure it's above other elements */
}

.open-window{
    display: block; /* Show when the window is open */
}

.close-button{
    align-items: right;
    font-weight: normal;
    font-size: 24px;
    padding: 0 10px;
}

.close-button:hover{
    cursor: pointer;
    transform: scale(1.1);
}



#image-left{
    float: left;    
    margin: 0 10px 0 10px;
}

#image-right{
    float: right;    
    margin: 0 0 0 55px;
}

/* Seamless scroll box styling */
.scroll-box-about {
    max-height: 300px; /* Set the height of the scrollable box */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 10px; /* Add padding for spacing */
    margin-top: 15px; 
    background-color: transparent;
    color: var(--text-color);
    font-size: 16px; /* Adjust font size for readability */
    line-height: 1.6; /* Improve line spacing */
    clear: both;
}

/* Remove scrollbar styling for a cleaner look (optional) */
.scroll-box-about::-webkit-scrollbar {
    width: 5px;
}

.scroll-box-about::-webkit-scrollbar-thumb {
    background-color: var(--base-background-color); /* Scrollbar color */
    border-radius: 4px; /* Rounded scrollbar */
}

.scroll-box-about::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Scrollbar hover color */
}

/* Seamless scroll box styling */
.scroll-box-project {
    max-height: 450px; /* Set the height of the scrollable box */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 10px; /* Add padding for spacing */
    margin-top: 15px; 
    background-color: transparent;
    color: var(--text-color);
    font-size: 16px; /* Adjust font size for readability */
    line-height: 1.6; /* Improve line spacing */
    clear: both;
}

/* Remove scrollbar styling for a cleaner look (optional) */
.scroll-box-project::-webkit-scrollbar {
    width: 5px;
}

.scroll-box-project::-webkit-scrollbar-thumb {
    background-color: var(--base-background-color); /* Scrollbar color */
    border-radius: 4px; /* Rounded scrollbar */
}

.scroll-box-project::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Scrollbar hover color */
}


.project-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Add spacing between sections */
}

.project-section .content {
    flex: 1;
}

.project-section.reverse {
    flex-direction: row-reverse; /* Reverse the order for right-aligned images */
    text-align: right; /* Align text to the right */
}

.education-section {
    margin-top: 20px; 
    color: var(--text-color);
}

.education-section h3 {
    font-size: 18px; 
    font-weight: bold; 
    text-transform: uppercase;
}

.education-details {
    border-left: 3px solid var(--color-primary); /* Add the vertical line */
    padding-left: 10px; /* Add spacing between the line and the text */
    font-size: 16px; 
    line-height: 1.5; 
}

.education-details p {
    margin: 0px; /* Remove default margin */
    line-height: 1.0;
}

/*container*/
.tooltip{
    position: relative;
    display: inline-block;
    text-decoration: underline;
}
/*tooltip text*/
.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--base-background-color-variant-2);
    color: var(--text-color-variant);
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position the tooltip above the text */
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    top: 100%; /* At the bottom of the tooltip */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--base-background-color-variant-2) transparent transparent transparent;
}