body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-size: cover;
    font-family: Arial, sans-serif;
    height: 100%
}

.header {
    top: 0;
    height: 0vh;
}

.button-container {
    user-select: none;
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    width: 90%; /* Set a percentage width instead of fixed width */
    max-width: 800px; /* Add a max-width to limit the width on larger screens */
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.2);
    z-index: 2;
    border: 3px solid #333; /* Solid border */
    transition: 0.5s all; /* Smooth transition for all changes */
}

.button-container:hover {
    border-color: #666; /* Change the border color on hover */
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.5); /* Darker shadow on hover */
}


.button-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    flex-grow: 1;
}

.button {
    padding: 50px;
    text-align: center;
    font-size: 24px;
    width: 95%;  /* subtracting the gap */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s; /* Smooth transition for transform */
}

.button:hover {
    transform: scale(1.02); /* Slightly scale up the button when hovered */
}

.button:active {
    transform: scale(0.98); /* Slightly scale down the button when active */
}

.toggle {
    text-align: center;
    font-size: 16px;
    width: 100%;  /* subtracting the gap */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.toggle:hover {
    transform: scale(1.02);
}

.toggle:active {
    transform: scale(0.98);
}

.selectors {
    width: 100%;
    display: flex;
    position: relative;
    bottom: 0;
    justify-content: space-between;
    margin-top: auto;
}



@media (max-width: 768px) {
    .button-container {
        width: 100%;
    }
    .button,
    .toggle-button {
        width: 90%;
    }
}


.returnplaylists {
    text-align: center;
    font-size: 14px;
    width: 100%;  /* subtracting the gap */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 1vh;
    background-color: #f44336; /* a shade of yellow */
    color:#ffffff; /* to keep the color of your text consistent */
    border: 2px solid #003580;

}

.additional-button-1 {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    width: 90%;  /* subtracting the gap */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 20px;
    background-color: #9C27B0; /* a shade of purple */
    color: #ffffff; /* white color for the text */
    border: 2px solid #003580;
}

.additional-button-2 {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    width: 90%;  /* subtracting the gap */
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 20px;
    background-color: #FF9800; /* a shade of orange */
    color: #ffffff; /* white color for the text */
    border: 2px solid #003580;
}



.finnish-playlists {
    background-color: #1a78d7;
    color: white;
    border: 2px solid #003580;
}

.finland-library {
    background-color: #ffffff;
    color: #003580;
    border: 2px solid #003580;
}

.japanese-library {
    background-color: #f44336;
    color: white;
    border: 2px solid #003580;
}

.toggle-button {
    background-color: #4CAF50; /* a shade of green */
    color: white;
    border: 2px solid #003580;
}

.modal-popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10005;
    /* Added lines */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.5);
    /* Modified line */
    margin: auto;
    padding: 1vw;
    border: 1px solid #888;
    width: 98%; /* Set a percentage width instead of fixed width */
    max-width: 600px; /* Add a max-width to limit the width on larger screens */
    opacity: 0.9;
    overflow: hidden; /* Add overflow property to prevent content overflow */
}
  

.modal-content table {
    width: 100%; /* Set the table width to 100% */
  }
  
  .modal-content th, .modal-content td {
    word-wrap: break-word; /* Allow long words to wrap within table cells */
  }

.modal-popup p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

  
.modal-close {
    font-size: 40px;
    color: #aaa;
    cursor: pointer;
    margin-left: auto; /* Pushes the close button to the right end */
    padding: 14px; /* Matching padding with tablink for alignment */
  }
  
  .modal-close:hover,
  .modal-close:focus {
    color: black;
    text-decoration: none;
  }

  .content-row {
    display: flex;
    justify-content: space-between;
}

.profile-picture {
    max-width: 200px;
    max-height: 200px;
    border-radius: 50%;
}



.tabs {
    display: flex;
    justify-content: space-between; /* To align the tabs and the close button */
    align-items: center; /* To vertically align the tabs with the close button */
    padding: 0px; /* Padding for breathing space */
  }
  
  .tablink {
    background-color: #555;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 17px;
    flex-grow: 1; /* Allows tabs to grow and take available space */
    text-align: center;
    transition: background-color 0.3s; /* Transition for smooth hover effect */
  }
  
  .tablink:hover {
    background-color: #777;
  }
  
  .tabcontent {
    color: white;
    display: none;
    padding: 10px;
    text-align: center;
  }

.project-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#projectDetailContent {
    display: flex;
    align-items: flex-start;
}

.project-text-content {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    color: white; /* Ensuring the text is white */
}

.project-image-panel {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.project-title {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 10px; /* Add space below the title */
}

.project-description, .more-info {
    text-align: justify;
    margin: 10px 0;
}

.project-image-container img {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
    object-fit: fill;
}

.project-link-button {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    background-color: #007BFF;
    border-radius: 5px;
    display: block; /* Make the link a block element */
    margin: 20px auto; /* Center the link and add space around it */
    text-align: center; /* Center the text within the link */
}

#Qualifications .grid-item, #employmentGrid .grid-item, #projectsGrid .grid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 10px 0;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.grid-item {
    position: relative;
    flex-basis: calc(100% - 10px);
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    padding-right: 150px; /* Added padding-right to reserve space for the button */
    background-color: rgba(0,0,0,0.6);
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

.job-details {
    flex-grow: 1;
    margin-right: auto; /* Added to push the content to the left */
}


.gridme-item {
    position: relative;
    flex-basis: calc(100% - 10px);
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

.me-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    background-color: rgba(0,0,0,0.6);
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.me-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.me-details {
    display: flex;
    flex-direction: row;
    width: 100%;
    color: #ffffff;
}

.me-table-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.me-table-label {
    width: 150px; /* Adjust the width according to your needs */
    flex-shrink: 0;
}

.me-table-value {
    text-align: left;
    flex-grow: 1;
}

.me-title {
    text-align: center;
    font-size: 1.5em; /* Adjust the size according to your needs */
}


.info-content {
    display: flex;
    flex-direction: column;
}

.info-content h3 {
    margin-bottom: 10px;
}

.info-content p {
    margin: 5px 0;
    color: #ffffff;
}

.grid-item .job-image {
    width: 150px;
    height: 150px;
    margin-right: 20px;
    border-radius: 5px;
    object-fit: fill;
}

.grid-item .job-details {
    flex-grow: 1;
    color: #fff; /* Setting text color to white */
    padding-right: 120px; /* Right padding to prevent overlap with the button */
}

.grid-item h3, .grid-item h4, .grid-item p {
    margin: 10px 0;
    color: inherit; /* Inheriting white color from .job-details */
}

.grid-item .button3 {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    text-decoration: none;
    background-color: #007BFF;
    color: #fff; /* White text for the button */
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.grid-item .button3:hover {
    background-color: #0056b3;
}

.button3-link {
    color: inherit;
    text-decoration: none;
}

  
.projbut {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.projbut:hover {
    background-color: #0056b3;
}

.projbut-link {
    color: inherit;
    text-decoration: none;
}


#myCanvasDiv {
    position: absolute;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

#myCanvas {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

#imageDisplay {
    z-index: 1;
    width: 100vw;    /* viewport width */
    height: 100vh;   /* viewport height */
    object-fit: cover; 
    object-position: center;
}


canvas {
    display: block;
    margin: 0 auto;

}

.tab-row {
    position: sticky;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.tab {
    padding: 10px;
    text-align: center;
    font-size: 16px;
    width: 30%;
    cursor: pointer;
    border: 3px solid #333; /* Solid border */
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background-color: rgba(255, 255, 255, 0.7);
    margin-right: 5px;
    transition: 1s all; /* Smooth transition for all changes */
}

.tab:hover {
    border-color: #666; /* Change the border color on hover */
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.5); /* Darker shadow on hover */
}

.tab-active {
    background: linear-gradient(90deg, rgba(46,184,46,1) 0%, rgba(154,205,50,1) 100%);
    border-bottom: 1px solid #fff;
}

.about-button1 {
    background-color: #ffffff;
    color: #003580;
    border: 2px solid #003580;
    cursor: pointer;
    border-radius: 10px; /* Rounded corners */
    padding: 15px 17.5px; /* Add padding for a more comfortable size */
    text-align: center;
    text-decoration: none; /* Remove underline if it's a link */
}

.about-button1:hover {
    background: linear-gradient(90deg, #ffffff 0%, #D3D3D3 100%); /* White to light gray gradient on hover */
    color: #003580;
}

.about-button1:focus {
    background: linear-gradient(90deg, #ffffff 0%, #D3D3D3 100%); /* White to light gray gradient on hover */
    color: #003580;
}

.about-button2 {
    background-color: #f44336;
    color: white;
    border: 2px solid #003580;
    cursor: pointer;
    border-radius: 10px; /* Rounded corners */
    padding: 15px 17.5px; /* Add padding for a more comfortable size */
    text-align: center;
    text-decoration: none; /* Remove underline if it's a link */
}

.about-button2:hover {
    background: linear-gradient(90deg, #f44336 0%, #f13524 100%);
    color: white;
}

.about-button2:focus {
    background: linear-gradient(90deg, #f44336 0%, #f13524 100%);
    color: white;
}

.about-button3 {
    background-color: #1a78d7;
    color: white;
    border: 2px solid #003580;
    cursor: pointer;
    border-radius: 10px; /* Rounded corners */
    padding: 15px 17.5px; /* Add padding for a more comfortable size */
    text-align: center;
    text-decoration: none; /* Remove underline if it's a link */
}

.about-button3:hover {
    background: linear-gradient(90deg, #1a78d7 0%, #1565a6 100%);
    color: white;
}

.about-button3:focus {
    background: linear-gradient(90deg, #1a78d7 0%, #1565a6 100%);
    color: white;
}

.about-button4 {
    background-color: #4CAF50;
    color: white;
    border: 2px solid #003580;
    cursor: pointer;
    border-radius: 10px; /* Rounded corners */
    padding: 15px 17.5px; /* Add padding for a more comfortable size */
    text-align: center;
    text-decoration: none; /* Remove underline if it's a link */
}

.about-button4:hover {
    background: linear-gradient(90deg, #4CAF50 0%, #388e3c 100%);
    color: white;
}


/* Added CSS for grass field gradient */
.grass-field {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to top, #509940, transparent);
}
.popup-box {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.2);
    z-index: 10000;
    width: 60vw;
    height: 70vh;
}

.popup-iframe {
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    margin: 0;
    transform-origin: top left;
    transform: scale(1);
    overflow: auto; /* Allow the iframe to scroll */
    
}

#quirkyModal {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: 50%;
    padding: 0;
    overflow: none; 
    background-color: rgba(0, 0, 0, 0.3); /* Increased opacity for less transparency */
    color: #fefefe;
    display: flex;
    justify-content: center; 
    align-items: center;
}

.quirky-modal-content {
    background-color: rgba(0, 0, 0, 0.5); /* Increased opacity for less transparency */
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50vw - 20px; /* Fixing the width property */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quirky-modal-content h2 {
    color: #ffffff; /* Adding contrast to the title */
    font-size: 24px; /* Increasing the font size */
    margin-bottom: 20px; /* Adding more space after the title */
}

#dropdown-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}

.dropdown {
    width: 45%;
}

#dropdown-container p {
    font-weight: bold; /* Making selected options bold */
    color: #ffffff; /* Changing the color to a more visible one */
}

#fetchButton, #openNewTabButton {
    /* ... existing styles ... */
    margin: 10px; /* Add space between the buttons */
    width: auto; /* Letting the buttons adjust their width to the content */
}


.quirky-close-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    background-color: #003580; /* Changing the background color to increase visibility */
    padding: 10px;
}

.quirky-close {
    color: #fff; /* Changing the close button color to white for better contrast */
    font-size: 28px;
    font-weight: bold;
}

.quirky-close:hover {
    color: black;
    text-decoration: none;
    pointer-events: auto;
}

.quirkybutton-container { /* Container for the buttons */
    display: flex;
    width: 100%;
}

.language-container, .content-type-container {
    background-color:  #003580;
    width: 100%;
    height: 300px;
    border: 1px solid #fefefe;
    overflow-y: scroll;
}

.language, .content-type {
    padding: 10px;
    border-bottom: 1px solid grey;
    cursor: pointer;
}

.fetch-button-style {
    padding: 10px 20px;
    font-size: 20px;
    background-color: lightgray;
    border: none;
    cursor: pointer;
    width: 40%;
    margin-top: 20px;
}

.fetch-button-style:hover {
    background-color: darkgray;
}

.fetch-button-style:disabled {
    cursor: not-allowed;
    background-color: gray;
}


input {
    max-width: 10vw; /* Adjust this value as needed */
}

.close-button {
    position: fixed;  /* Change this to absolute */
    top: 0;
    left: 0;
    width: 100%;  /* Adjust these to fit your modal */
    height: 100%;
    background-color: transparent;
    z-index: 9999;
    pointer-events: none; /* makes the button initially non-interactable */
}

.scrollable {
    max-height: 50vh; /* Set a specific height, or adjust as needed */
    overflow-y: auto; /* This will add vertical scroll if necessary */
}