:root {
  --primary-bg-color: rgb(201, 201, 201);
  --secondary-bg-color: rgb(224, 224, 224);



    --line-width: 2px;
    --line-color: rgb(0, 0, 0);
    --accent-color: #808080;;
}

body {
  background-color: #ffffff;
  display:flex;
  height: 100vh;
    opacity: 0.8;
    background-image:  linear-gradient(30deg, var(--secondary-bg-color) 12%, transparent 12.5%, transparent 87%, var(--secondary-bg-color) 87.5%, var(--secondary-bg-color)), linear-gradient(150deg, var(--secondary-bg-color) 12%, transparent 12.5%, transparent 87%, var(--secondary-bg-color) 87.5%, var(--secondary-bg-color)), linear-gradient(30deg, var(--secondary-bg-color) 12%, transparent 12.5%, transparent 87%, var(--secondary-bg-color) 87.5%, var(--secondary-bg-color)), linear-gradient(150deg, var(--secondary-bg-color) 12%, transparent 12.5%, transparent 87%, var(--secondary-bg-color) 87.5%, var(--secondary-bg-color)), linear-gradient(60deg, var(--primary-bg-color) 25%, transparent 25.5%, transparent 75%, var(--primary-bg-color) 75%, var(--primary-bg-color)), linear-gradient(60deg, var(--primary-bg-color) 25%, transparent 25.5%, transparent 75%, var(--primary-bg-color) 75%, var(--primary-bg-color));
    background-size: 20px 35px;
    background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 10px 18px;
    justify-content: center;
    align-items: center;
}

a {
    text-decoration: underline !important;
}

/* mouse over link */
a:hover {
  color: var(--accent-color);
}

.main {
    width: 60%;
    height: 80vh;
    display: grid;
    grid-template-columns: 1fr 3fr;
    background-color: #ffffff;
}

.sidebar {
    margin: 10px 10px 10px 10px;
    border-right-color: black;
    border-right-style: double;
    border-right-width: 4px;
    display: flex;
    flex-direction: column;
}

.icon{
    border-style: solid;
    border-width: 2px;
    width: 90%;
    height: auto;
    margin-right: auto;
}

.navbar {
    margin: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    font-size: 1.5rem;
}

.navbar-title {
    margin-bottom: 5px;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.navbar-list {
    list-style-position: inside; 
    font-size: large;
}

.content {
    margin: 10px;
    margin-right: 5px;
    overflow: scroll;
    padding-right: 20px;
    text-align: justify;
    align-content: center;
}

hr {
    margin-bottom: 16px;
}

.subtext {
    margin-top: 10px;
    font-size: x-small;
    text-align: center;
}

summary {
    cursor: pointer;
    font-weight: bold;
}

summary:hover {
    color: var(--accent-color);
}

details {
  padding: 0.5em;
  font-weight: lighter;
}

details[open] summary {
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

#myname {
    font-weight: bold;
    text-decoration: underline wavy red; 
}

.contact {
    padding-top: 8px;
    padding-bottom: 8px;
}

.big-button {
    font-size: 1.5rem !important;
}

.project-photo{
    width: 60%;
    height:auto;
    border-style: solid;
    border-width: 2px;
    margin-bottom: 10px;
    margin-top: 10px;
    background-color: gray;
}

.project-subtitle{
    margin: 0;
    /* offset-x | offset-y | blur-radius | color */
    text-shadow: 3px 2px 1px lightgray;
}

.project-date {
    margin: 0;
}

.thermaltodos-project {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.thermaltodos-project-inner {
    margin-right: 10px;
}

.thermaltodos-project-photo {
    height: auto; 
    width: 60%; 
    justify-self: center;
}

.retrobutton{
    width: 88px;
    height: 31px;
}




/* Perspective Square */
#perspective-parent {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#parent {
  perspective: 900px;
  perspective-origin: center;
  transform-style: preserve-3d;
  width: 400px;
  height: 300px;
  position: relative;
}

.perspective-square {
  position: absolute;
  inset: 0;
  border: var(--line-width);
  border-style: solid;
  border-color: var(--line-color);
}

.grid-line {
    position: absolute;
    background: var(--line-color);
}

.grid-line-vertical {
    width: var(--line-width);
    height: 910px;
}

.grid-line-horizontal {
    width: 910px;
    height: var(--line-width);
}

.grid-line-vertical-top {
    transform-origin: top center;
    transform: rotateX(-90deg);
}

.grid-line-horizontal-left {
    transform-origin: left center;
    transform: rotateY(90deg);
}

.grid-line-vertical-bottom {
    transform-origin: bottom center;
    transform: rotateX(90deg);
    bottom: 0;
}

.grid-line-horizontal-right {
    transform-origin: right center;
    transform: rotateY(-90deg);
    right: 0;
}

/* Back face 4x4 grid */
/* transform: translateZ(1px); for most front face*/
.back-grid-vertical {
    position: absolute;
    width: var(--line-width);
    height: 100%;
    background: var(--line-color);
    top: 0;
    transform: translateZ(-900px);
}

.back-grid-horizontal {
    position: absolute;
    width: 100%;
    height: var(--line-width);
    background: var(--line-color);
    left: 0;
    transform: translateZ(-900px);
}

/* Controls */
.controls {
    display: flex;
    gap: 30px;
    padding: 20px;
    border-radius: 8px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.control-group input,
.control-group select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: rgb(80, 80, 80);
}


/* For Smaller Screens */

@media (max-width: 600px) {
    .main {
        width:90% !important;
        height:85% !important;
        grid-template-columns: 1fr;
        grid-template-rows: 200px 1fr;
    }
    .project-photo{
        width: 100%;
    }
    .sidebar {
        margin: 10px 10px 10px 10px;
        border-right: none;
        border-bottom-color: black;
        border-bottom-style: double;
        border-bottom-width: 4px;
        display: flex;
        flex-direction: row;
        padding-bottom: 10px;
        margin-top: 0px;
    }
    .icon{
        width: 150px;
        height: 150px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: auto;
        margin-bottom: auto;
    }
    .navbar {
        height:90%;
        font-size: small;
        
    }
    .navbar ul {
        font-size: small;
    }

    #parent {
        width: 200px;
        height: 150px;
    }

    .controls {
            display: flex;
            flex-direction: column;
            gap: 5px;
            padding: 8px;
    }
}