/* these are the main colors and header image
   replace them with anything you want! */
:root {
    --site-bg: url('bg-image.png');
    --main-bg: url('nothing.png');
    --gradient-bg: linear-gradient(0deg, #436393 0%, #5c7dad 33%, #436993 90%);
    --accent-color: rgb(133, 209, 253);
    --link-color: hwb(206 42% 0%);
    --bg-color: hwb(208 13% 76%);
    --text-color: #82d3ee;
    --text-color2: #82d3ee;
    --favorite-color: #4f80ca;
}
/* this theme mostly uses default css colors, but you can get hex codes from sites like this:
   https://palettes.shecodes.io/
   i just looked up "css color templates" to find that link! */

/* this applies to all the content */
* {
    color: var(--text-color);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    text-shadow: 2px 2px 5px var(--bg-color);
/* custom scrollbars don't appear for all browsers, but i like setting them anyway */
    scrollbar-color: var(--favorite-color) var(--bg-color);
    scrollbar-width: thin;
}
/* this is for when you select text on the page */
::selection {
    background: var(--favorite-color);
    color: var(--bg-color);
}

html {scroll-behavior: smooth;}

body {
    margin: 0;
    background-color: var(--bg-color);
    background-image: var(--site-bg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

}
/* i think having better line spacing helps text to be more readable, but you can remove it if you want */
p {line-height: 1.5em;}

/* this is your site title displayed at the top of the page */
header > h1 {
    margin: 1em auto;
    max-width: 960px;
    padding-left: 1em;
/* you can change the text-align to center or right if you want it placed differently */
    text-align: left;
    color: var(--text-color2);
}

nav {
    padding: 0 1em 1em 1em;
    font-weight: bold;
}

nav ul {
    max-width: 960px;
    margin: auto;
    line-height: 3rem;
/* this stuff makes it wrap around on mobile */
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
/* this line takes away the dot in front of the list items */
    list-style-type: none;
/* list items have default padding but we don't need it for these */
    padding-left: 0;
/* and this spaces out the buttons so they're not touching */
    justify-content: space-evenly;
}
nav li a {
    background-color: var(--bg-color);
    border: 1px solid var(--favorite-color);
    padding: .5em 3em;
/* this takes away the link underline */
    text-decoration: none;
/* and this part is animation! */
    transition: color 400ms ease-out, border-color 400ms ease-out;
}
nav li a:hover {
    border: 1px solid var(--accent-color);
}

a {
    color: var(--link-color);
    transition: color 400ms ease-out;
}
a:visited {
    color: var(--favorite-color);
}
a:hover {
    color: var(--text-color2);
}

/* you can change this to lots of things. i picked a star! */
ul { list-style-type: "✦ "; }

#sidebar {
    background-image: var(--main-bg);
    border: 1px solid var(--favorite-color);
    min-width: 220px;
}

#avatar {
/* image size is 160px so i made its container a little bigger to fit the borders */
    margin: 1em auto;
    max-width: 164px;
    max-height: 164px;
}
#avatar img {
    background: var(--bg-color);
    max-width: 160px;
    border: 1px solid var(--favorite-color);
    box-shadow: var(--accent-color) 0 0 4px;
}

#bio {
    font-size: smaller;
    margin: 1em;
    background: var(--bg-color);
    border: 1px solid var(--favorite-color);
    box-shadow: var(--accent-color) 0 0 4px;
}
#bio p {
    margin: 1em;
    color: var(--text-color2);
}

#content {
    display: flex;
    max-width: 960px;
    margin: auto;
}

main {
    background-image: var(--main-bg);
    background-repeat: repeat;
    image-rendering: pixelated;
    max-width: 800px;
    margin: auto;
    border: 1px solid #3d5a8b;
    color: var(--accent-color);
    max-height: 600px;
    overflow:auto;
}

.prose {
/* i couldn't put padding on main without it cutting off the background, so the padding is here... sorry if this extra class is a little inconvenient */
    background: var(--gradient-bg);
    margin: 0;
    padding: 1em;
}

/* made this a class so i can change it to be centered on mobile */
.img-right { float: right; }

footer {
    text-align: center;
    font-size: small;
    padding: 1em;
}

/* these are the mobile styles! */
@media only screen and (max-width: 800px) {
    #content {
        flex-wrap: wrap;
    }
    #sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        padding-top: 2em;
    }
    #avatar {margin: 0 1em;}
    #bio {width: 50%;}
    #sidebar ul {   
        margin: 0 1em;
        display: flex;
        flex-wrap: wrap;
        line-height: 2em;
        padding-left: 0;
    }
    #sidebar li {
        margin: .3em 1em;
    }
    main {
/* remove scrollbar for mobile */
        max-height: fit-content;
    }
    .img-right {
        float: none;
        text-align: center;
    }
}
.specimen-grid {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1em;
}

.specimen-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: var(--bg-color);
    border: 1px solid var(--favorite-color);
    padding: 1em;
    width: 140px;
    transition: transform 200ms ease, border-color 200ms ease;
}

.specimen-card img {
    width: 80px;
    height: 80px;
    border: 1px solid var(--favorite-color);
    margin-bottom: 0.5em;
}

.specimen-card:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}
/* ---------- RESERVE PAGE ---------- */

.reserve-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 0.5em;
}

.reserve-intro,
.reserve-description {
    text-align: center;
    max-width: 700px;
    margin: 1em auto;
}

.reserve-image {
    text-align: center;
    margin: 1.5em 0;
}

.reserve-image img {
    width: 450px;
    max-width: 100%;
    border: 1px solid var(--favorite-color);
    box-shadow: 0 0 6px var(--accent-color);
}

.floor-heading {
    text-align: center;
    margin-top: 2em;
}

.floor-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
    margin-top: 1em;
}

.floor-card {
    position: relative;
    width: 180px;
    text-decoration: none;
}

.floor-card img {
    width: 100%;
    border: 1px solid var(--favorite-color);
    transition: transform 0.2s ease;
}

.floor-card:hover img {
    transform: scale(1.05);
}

.floor-tooltip {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -85px;

    width: 220px;
    padding: 0.75em;

    background: var(--bg-color);
    border: 1px solid var(--favorite-color);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;

    z-index: 100;
}

.floor-card:hover .floor-tooltip {
    opacity: 1;
}

@media only screen and (max-width: 800px) {
    .floor-grid {
        flex-direction: column;
        align-items: center;
    }
}
/* FLOOR IMAGE POPUPS */

.lightbox {
    display: none;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.9);

    z-index: 9999;

    justify-content: center;
    align-items: center;
}

.lightbox:target {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;

    border: 2px solid var(--favorite-color);
    box-shadow: 0 0 15px var(--accent-color);
}

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 30px;

    font-size: 2rem;

    text-decoration: none;

    color: white;
}
.project-title {
    text-align: center;
    margin: 1em 0;
}
.info-panel {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 1em;
    margin: 1em;
    padding: 1em;

    border: 1px solid var(--favorite-color);
    background: var(--gradient-bg);

    box-sizing: border-box;
}

/* IMAGE (LEFT) */
.info-panel img {
    width: 180px;          /* FIX: smaller image */
    max-width: 180px;
    height: auto;

    display: block;
    flex-shrink: 0;

    border: 1px solid var(--favorite-color);
}

/* TEXT (RIGHT) */
.info-list {
    margin-left: auto;

    display: flex;
    flex-direction: column;
    align-items: flex-end;  /* pins text to right */
    text-align: right;
}

/* TEXT SPACING */
.info-item h3 {
    margin: 0;
    color: var(--accent-color);
}

.info-item p {
    margin: 0 0 0.7em 0;
}
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.7);

    justify-content: center;
    align-items: center;
}

.popup-box {
    background: var(--bg-color);
    padding: 1.5em;
    border: 1px solid var(--favorite-color);
    width: 300px;

    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.popup-box input,
.popup-box textarea {
    width: 100%;
    padding: 0.5em;
}

.popup-box textarea {
    height: 120px;
    resize: none;
}

.close {
    align-self: flex-end;
    cursor: pointer;
}
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;           /* still controlled by JS */
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}

.popup-box {
  width: 90vw;
  height: 90vh;
  background: white;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.popup-box iframe {
  flex: 1;          /* makes it fill all remaining space */
  width: 100%;
  border: none;
}
.blog-img {
  width: 80px;
  height: auto;
  vertical-align: middle;
  margin-left: 10px;
}
#drawingCanvas {
  background:white;
  border:2px solid black;
  cursor:crosshair;
  max-width:100%;
}


#drawPopup .popup-box {
  width:700px;
  max-width:90%;
  padding:20px;
}
.draw-box {
  max-height: 90vh;
  overflow-y: auto;
}


.draw-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}


#drawingCanvas {
  max-width: 100%;
}
