/*Dark Theme - FallBack Default Theme */
:root {
    --main-fontColor: hsla(0, 100%, 100%, 0.8);
    --main-backgroundColor: #121212;
    --border-color: hsla(0, 0%, 7%, 0.8);
    --pane-backgroundColor: hsla(0, 100%, 100%, 0.1);
    --pane-fontColor: hsla(0, 0%, 7%, 0.8);
    --contactLinkColor: hsla(0, 100%, 100%, 1);
}

* {
    box-sizing: border-box;
}

html {
    background-color: var(--main-backgroundColor);
    font-family: Calibri, sans-serif;
    color: var(--main-fontColor);
}

#banner {
    margin: auto;
    max-width: 500px;
}

h1 {
    margin: auto;
    text-align: center;
}

q {
    font-style: italic;
    font-size: 0.8em;
}

#content-description {
    margin: auto;
    font-size: 1.2rem;
    padding-bottom: 0.6em;
    text-align: center;
}

#content-title {
    margin: auto;
    padding-bottom: 0.6em;
    text-align: center;
    color: var(--main-fontColor);
}

a:visited {
    text-decoration: none;
    color: grey;
}

.links {
    margin: auto;
    font-size: 1.2rem;
    padding-bottom: 0.6em;
    text-align: center;
}

/* Style the navigation menu */
.topnav {
    position: relative;
}

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
    display: none;
    color: var(--main-fontColor);
    background-color: var(--main-backgroundColor);
    width: 6rem;
    position: absolute;
    top: 3.3rem;
    left: 0;
    z-index: 100;
}

.topnav #themes {
    display: none;
    color: var(--main-fontColor);
    width: 2rem;
    position: absolute;
    top: 3.3rem;
    right: 1.7rem;
    z-index: 100;
}

#themes > fieldset {
    margin: 0;
    display: block;
    text-align: center;
    background-color: var(--main-backgroundColor);
    border: 0;
}

#themes input[type="radio"] {
    appearance: none;
}

/* Style navigation menu links */
.topnav a {
    color: var(--main-fontColor);
    padding: 1rem 1rem;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    /*border: 1px solid var(--border-color);*/
}

/* Style & position the hamburger menu */
.topnav a.menu-icon {
    width: 3.1rem;
    height: 3.2rem;
    text-align: center;
    background: var(--main-backgroundColor);
    display: block;
    position: absolute;
    left: 0;
    top: 0;
}

.topnav a.home {
    width: 40%;
    height: 3.2rem;
    text-align: center;
    color: var(--main-fontColor);
    position: relative;
    left: 30%;
    top: 0;
}

.topnav a.refresh-icon {
    width: 3.1rem;
    height: 3.2rem;
    text-align: center;
    position: absolute;
    right: 3.2rem; /* Position it next to the palette icon */
    top: 0;
}

.topnav a.palette-icon {
    width: 3.1rem;
    height: 3.2rem;
    text-align: center;
    position: absolute;
    right: 0;
    top: 0;
}

.topnav #themes i {
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    transform: translateY(-0.5rem);
}

@media (hover: hover) {
    .topnav #themes i:hover {
        opacity: 0.6;
    }
}

legend {
    display: none;
}

/* style palette icons */
#dark {
    background-color: #121212;
    color: white;
}

#light {
    background-color: white;
    color: #121212;
}

#pink {
    background-color: white;
    color: hotpink;
}

#green {
    background-color: white;
    color: green;
}

#blue {
    background-color: white;
    color: blue;
}

@media (hover: hover) {

    /* Switch icon color on mouse-over */
    .topnav a:hover {
        background-color: var(--main-fontColor);
        color: var(--main-backgroundColor);
    }

    .menu-tooltip:hover .tooltip-text {
        visibility: visible;
    }

    .palette-tooltip:hover .tooltip-text {
        visibility: visible;
    }

    .refresh-tooltip:hover .tooltip-text {
        visibility: visible;
    }
}


.menu-tooltip .tooltip-text {
    visibility: hidden;
    font-size: 1rem;
    position: absolute;
    top: 1rem;
    left: 4rem;
    z-index: 100;
}

.palette-tooltip .tooltip-text {
    visibility: hidden;
    font-size: 1rem;
    position: absolute;
    top: 1rem;
    right: 7rem;
    z-index: 200;
}

.refresh-tooltip .tooltip-text {
    visibility: hidden;
    font-size: 1rem;
    position: absolute;
    top: 1rem;
    right: 7rem; /* Adjust based on positioning */
    z-index: 200;
}

#card-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.gallery-card {
    width: 100vw;
    height: 100vw;
    max-width: 300px;
    max-height: 300px;
    background-color: var(--pane-backgroundColor);
    border-radius: 10px;
    overflow: hidden;
}

.gallery-card a {
    color: var(--main-fontColor);
    text-decoration: none;
}

@media (hover: hover) {
    .gallery-card:hover {
        background-color: var(--main-fontColor);
        scale: 105%;
        transform: translate(0, 2%);
        /*rotate: 1deg;*/
    }

    .gallery-card a:hover {
        color: var(--border-color);
    }
}

#main-content-container {
    margin: auto;
    width: 70%;
    height: auto;
    border-radius: 1rem;
    background-color: var(--pane-backgroundColor);
    text-align: center;
}

#cnv {
    margin: auto;
    position: relative;
    max-width: 100%;
    max-height: 100%;
    border-radius: 2rem;
    padding: 1rem;
}

footer {
    margin: auto;
    position: relative;
    width: 100%;
}

#contact-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    background-color: var(--main-backgroundColor);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#contact-links > a {
    color: var(--main-fontColor);
    font-size: 2rem;
}

#contact-links a:hover {
    color: var(--contactLinkColor);
}

@media screen and (max-width: 250px) {
    #contact-links {
        gap: 1rem;
    }
}

@media (hover: hover) {
    /* Hide tooltips when larger than space required */
    @media screen and (max-width: 630px) {

        .menu-tooltip:hover .tooltip-text {
            visibility: hidden;
        }

        .palette-tooltip:hover .tooltip-text {
            visibility: hidden;
        }
    }
}

@media screen and (max-width: 1000px) {
    #main-content-container {
        width: 100%;
    }
}

@media screen and (min-width: 1001px) and (max-width: 1100px) {
    #main-content-container {
        width: 90%;
    }
}

@media screen and (min-width: 1101px) and (max-width: 1250px) {
    #main-content-container {
        width: 80%;
    }
}

@media screen and (min-width: 630px) and (max-width: 830px) {

    .gallery-card {
        width: 100vw;
        height: 100vw;
        max-width: 50vw;
        max-height: 50vw;
    }
}

@media screen and (max-width: 630px) {
    .refresh-tooltip:hover .tooltip-text {
        visibility: hidden;
    }
}

@media screen and (min-width: 830px) and (max-width: 1500px) {
    .gallery-card {
        width: 100vw;
        height: 100vw;
        max-width: 23vw;
        max-height: 23vw;
    }
}

@media screen and (min-width: 1600px) {
    #banner {
        max-width: 450px;
    }
}