/* General styling */
body {
    margin: 0;
    padding: 0;
    font-family: 'Tahoma', Arial, sans-serif;
    background-color: #ebebeb;
    top: 64px;
}

@font-face {
    font-family: 'Chiller';
    src: url('./assets/fonts/CHILLER.TTF');
}

@font-face {
    font-family: 'Bloody';
    src: url('./assets/fonts/BLOODY.TTF');
}


/* Header styling */
.header {
    --header-height: 48px;
    height: var(--header-height);
    background: url('./assets/images/header.png') no-repeat;
    background-size: 100% 100%;
    color: white;
    text-align: left;
    line-height: var(--header-height);
    position: sticky;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    padding-left: 10px;
    display: flex;
    align-items: center;
    top: 0;
    z-index: 10;

}

/* Logo styling */
.header-logo {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(var(--header-height) * 0.65);
}

/* Title styling */
.header-title {
    margin: 0;
    font-size: 16pt;
    vertical-align: middle;
    margin-left: calc(var(--header-height) * 0.65 + 10px);
    font-family: 'Trebuchet MS', Arial, sans-serif;
    text-shadow: 2px 2px 4px #000000;
    padding-left: 0;
}

/* Toolbar styling */
.toolbar {
    --toolbar-height: 32px;
    height: var(--toolbar-height);
    background-color: #ebebeb;
    font-family: Tahoma, Arial, sans-serif;
    position: sticky;
    top: 48px;
    border-bottom: 1px solid #aaaaaa;
    z-index: 11;
}

/* Toolbar logo and buttons */
.toolbar-logo,
.toolbar-buttons {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.toolbar-logo {
    left: 10px;
    height: calc(var(--toolbar-height) * 0.5);
}

.toolbar-buttons {
    border: none;
    left: calc(var(--toolbar-height) * 0.5 + 20px);
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

/* Header control buttons */
.control-buttons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;

}

.content-stuff {}

.control-button {
    height: calc(var(--header-height) * 0.5);
    margin-left: 5px;
    cursor: pointer;
    display: block;
}

.thumbnail {
    cursor: pointer;
    width: 100%;
    border-width: 10px;
    border-style: groove;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-wrapper {
    margin: auto;
    width: 100%;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    grid-gap: 1vw;
    padding-top: 1vw;
    padding-left: 2vw;
    padding-right: 2vw;
    justify-items: center;
}

.content {
    font-size: 18pt;
    margin-top: 32px;
}

.content p,
h1,
h2,
h3,
ul,
l {
    padding-left: 2vw;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;

    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    z-index: 500;
}

.modal-content {
    background-color: #ebebeb !important;
    position: relative;
    background-color: white;
    padding: 0px;
    padding-top: 0px;
    width: 85%;

    max-height: 85%;
    overflow-y: auto;
    margin: 0;
    display: flex;
    flex-direction: column;

}

.modal-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    height: calc(var(--header-height) * 0.5);
    margin-left: 5px;
    cursor: pointer;
}

.iframe-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.splide {
    max-width: 75%;
    border-width: 10px;
    border-style: groove;
    margin: auto;
}

.iframe-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
}


@media (orientation: portrait) {
    .splide {
        max-width: 100%;
    }
}

.splide__slide img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.splide__pagination__page {
    background: gray !important;
    opacity: 0.5 !important;
}

.splide__pagination__page.is-active {
    background: black !important;
    opacity: 1 !important;
}

/* Default size for mobile */
.splide__arrow {
    width: 64px;
    height: 64px;
}

.splide__pagination__bullet {
    width: 32px;
    height: 32px;
}

/* 1080p and up */
@media (min-width: 1920px) {
    .splide__arrow {
        width: 48px;
        height: 48px;
    }

    .splide__pagination__bullet {
        width: 12px;
        height: 12px;
    }
}

/* 4k and up */
@media (min-width: 3840px) {
    .splide__arrow {
        width: 64px;
        height: 64px;
    }

    .splide__pagination__bullet {
        width: 16px;
        height: 16px;
    }
}

#image-carousel {
    width: '75%';
    heightRatio: 9 / 16;
    align-content: center;
    align-items: center;
}

.modal-header {
    --modal-header-height: 64px;
    margin: 0;
    height: var(--modal-header-height);
    background: url('./assets/images/header.png') no-repeat;
    background-size: 100% 100%;
    color: white;
    text-align: left;
    line-height: var(--modal-header-height);
    position: sticky;
    top: 0;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    padding-left: 0px;
    margin: 0;
    width: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
}

.modal-content-inner {
    padding: 25px;
    font-family: 'Tahoma', Arial, sans-serif;
    line-height: 1.2;
    font-size: 14pt;
    overflow-y: auto;
    max-height: calc(100vh - var(--modal-header-height));
}

.modal-content-inner h3 {
    border-bottom: 1px solid #aaaaaa;
    padding: 0px;
}

.modal-content-inner h3 {
    margin-bottom: 0em;
}

.modal-title {
    margin-left: 10px;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    text-shadow: 2px 2px 4px #000000;
    position: absolute;
    left: 10px;
    margin: 0;
    padding-left: 0px;
    left: 10px;
}

.content-row {
    display: flex;
    align-items: flex-start;
}

#cubeContainer {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.intro-container {
    flex-grow: 1;
    padding-right: 30px;
    /* Spacing between the text and the cube */
}

.download-button {
    border: 5px outset #A4A4A4;
    padding: 5px;
    text-decoration: none;
}

#logo-link {
    cursor: pointer;
    /* Show a pointer cursor when hovering over the logo */
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 9999;
    mask-image: radial-gradient(circle, transparent, black);
}

#lightbulbContainer {
    position: absolute;
    top: 10px;
    right: 10px;
}

.thumbnail,
.thumbnail-wrapper {
    box-sizing: border-box;
}

#lightbulb {
    position: absolute;
    top: 0px;
    right: 20px;
    width: 80px;
}

.grid-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;

}

.thumbnail-wrapper {}


#overlay {
    position: fixed;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background-color: rgba(0, 0, 0, 1.0);
    pointer-events: none;
    display: flex;
    z-index: 9999;
    mask-image: radial-gradient(circle, transparent 5%, black 15%);
    -webkit-mask-image: radial-gradient(circle, transparent 5%, black 15%);
}

.hidden-project {
    display: none
}

.hidden-text {
    position: absolute;
    color: darkred;
    visibility: hidden;
    text-shadow: 1px 1px 1px black;
    font-family: 'Bloody', Tahoma, sans-serif;
    font-size: 18pt;
}

.nonblocking-image {
    position: absolute;
}

.show-text {
    visibility: visible;
}

.minimized {
    transform: scale(0);
}

.mainpage {
    transition: transform 0.25s ease-in-out;
    transform-origin: bottom left;
    overflow: auto;
    left: 0;
    bottom: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
    align-items: start;
}


.skill-card {
    border: 1px solid #ccc;
    padding: 20px;
    border-width: 10px;
    border-style: groove;
    box-sizing: border-box;
    margin: auto;
    width: 100%;
    height: 100%;
    /* Make this 100% so it fills its container */
}

.nested-skills {
    margin-top: 1rem;
    margin-left: 1rem;
    /* Indent the nested skills a bit */
}


.skill-card p,
.skill-card h1,
.skill-card h2,
.skill-card h3,
.skill-card a {
    padding: 0;
    font-size: 16pt;
}

.skill-card-img {
    max-width: 100%;
    /* Adjust this as you see fit */
    margin: 25px auto;
    /* Horizontal auto to center it and vertical margin for spacing */
    display: block;
    /* To make sure margin auto works */
    border-width: 5px;
    border-style: inset;
    box-sizing: border-box;
}

.progress-container {
    height: 20px;
    background: darkgrey;
    position: relative;
    border-width: 5px;
    border-style: inset;
    box-sizing: border-box;
}

.progress-bar {
    height: 100%;
    background: #4caf50;
    /* Will be overwritten by JavaScript */
    transition: width 0.5s;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: smaller;
}

.skill-label {
    color: white;
    position: absolute;
    width: 100%;
    text-align: center;
    top: 27.5%;
    font-size: 10pt;
    transform: translateY(-50%);
    font-weight: bold;
    text-shadow: 2px 2px 4px #000000;
}
