& .plan-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  
    width: 80%;
    row-gap: 16px;
    column-gap: 16px;
  
    border: 8px outset var(--theme-primary-1-base);

    background-image: url('/image/background/speckled_texture.png');
    background-repeat: repeat;
    animation: pan-1 16s linear infinite;

    color:var(--theme-white); 
    justify-content: center;
  
    margin: 8px 8px 8px 8px;

    & .inner {

        border: 2px solid var(--theme-primary-1-dark);

        border-radius: 16px;

        padding-left: 16px;
        padding-right: 16px;
        padding-top: 8px;
        padding-bottom: 8px;


        background: linear-gradient(
            -15deg,
            var(--theme-primary-1-dark),
            var(--theme-primary-1-light),
            var(--theme-primary-1-dark)
        );
    }
}

.hidden-start {
    display: none;
}

.avatar {
    position: relative;
    max-height: 100%;
    height: 256px;

    background: radial-gradient(var(--theme-gray-base), var(--theme-gray-dark));

    box-shadow: 8px 8px 8px var(--theme-gray-dark);
    border: 3px outset var(--theme-white);
    border-radius: 32px;    

    padding: 0px;
    margin: 8px 8px 8px 8px;

    overflow: hidden;
    z-index: 1;

    & img {
        position: relative;

        height: 256px;
        width: 256px;

        z-index: 3;
    }
}

& .stat {
    width: 128px;

    border: solid 2px var(--theme-accent-2-base);
    background: black;
    border-radius: 8px; 
    letter-spacing: 2px;
    align-content: center;
    color: white;

    text-align: center;
    padding:4px;
}

.glow-button {
    background-color: #818038;
    border: none;
    color: white;
    padding: 10px 24px;
    font-size: 32px;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(185, 123, 6, 0.8), 0 0 40px rgba(182, 112, 21, 0.6);
    animation: glowing 1.5s infinite alternate;
}

.new-turn-button {
    background: linear-gradient(45deg, #4caf50, #81c784);
    color: white;
    font-size: 1.2rem;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    font-weight: bold;
  }
  
  .new-turn-button:hover {
    background: linear-gradient(45deg, #388e3c, #66bb6a);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
  }
  
  .new-turn-button:active {
    background: linear-gradient(45deg, #2e7d32, #4caf50);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
    transform: translateY(1px);
  }
  
  .new-turn-button:focus {
    outline: 3px solid #a5d6a7;
    outline-offset: 2px;
  }

@keyframes glowing {
    0% {
        box-shadow: 0 0 10px rgba(255, 196, 0, 0.8), 0 0 20px rgba(255, 196, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 196, 0, 1), 0 0 30px rgba(255, 196, 0, 0.8);
    }
}

.note-header {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.note-content {
    font-size: 0.9rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
}

#notes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 800px; /* Set a maximum width for testing */
}

.note-box {
    width: 150px;
    background-color: #ffeb3b;
    color: #333;
    padding: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-family: Arial, sans-serif;
    display: inline-block;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.big-note-box {
    width: 400px;
    background-color: #ffeb3b;
    color: #333;
    padding: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-family: Arial, sans-serif;
    display: inline-block;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: none;
    z-index: 1000;
  }

  /* Style for the popup message */
  #popupMessage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1001; /* Higher than overlay */
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  #moveParameterContainer {
    display: grid;
    gap: 10px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 400px; /* increase width for two columns */
}

.parameter-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 2fr; /* two pairs of label and input */
    gap: 10px;
    padding: 5px;
    align-items: center;
}

.parameter-row-small {
    display: grid;
    grid-template-columns: 1fr 2fr; /* two pairs of label and input */
    gap: 10px;
    padding: 5px
    align-items: center;
}

.parameter-row label {
    font-weight: bold;
    text-align: right; /* aligns labels to the right for neatness */
}

.parameter-row input {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.error-box {
    border: 1px solid red;
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.error-box ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.parameter-grid {
    display: grid;
    grid-template-columns: 3fr 1fr; /* Make user input column wider and results column narrower */
    gap: 20px;
    margin: 20px;
}

.user-input-column {
    border: 1px solid #ccc;
    padding: 10px;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
    background-color: #f9f9f9;
}

.computed-results-column {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
    max-width:600px;
}

.boxImage {
    width: min-content;
    
    padding: 0px;
    margin: 8px 8px 8px 8px;

    background: radial-gradient(var(--theme-gray-base), var(--theme-gray-dark));
    box-shadow: 8px 8px 8px var(--theme-gray-dark);
    border: 3px outset var(--theme-white);
    border-radius: 16px;    

    overflow: hidden;
    z-index: 1;
}

input[readonly] {
    background-color: #e9ecef; /* Light grey */
    color: #6c757d; /* Muted text color */
    border: 1px solid #ced4da; /* Optional border styling */
    cursor: not-allowed; /* Change cursor to indicate non-interaction */
}

h3 {
 margin: 0px;
}

.resourceBox {   
    display:grid;
    grid-template-columns:auto auto auto auto auto auto auto;

    text-align: center;

    & .cell {
        color: var(--theme-accent-2-dark);

        padding-top: 2px;
        padding-bottom: 2px;
        padding-left: 2px;
        padding-right: 2px;

        border-right: solid 2px var(--theme-accent-2-dark);
        border-top:solid 2px var(--theme-accent-2-dark);
    }
}

.corkboard {
    background-image: url('/image/graphic/corkboard.jpg');
    background-size: 50%;
    background-repeat: 1;
    border: var(--theme-accent-2-dark) 8px outset;
    display:flex;
    flex-wrap:wrap;

    gap: 8px;
    padding: 16px;
    
    border-radius: 16px;
}

.user-input-tabs {
    width: 100%;
    column-gap: 0px;

    & button {  
        font-size: 20px;
        flex-grow: 1;
        padding: 2px;
        border: 1px solid #ccc;
        padding: 10px;
        background: none;
        background-color: #f9f9f9;

        &.active {
            background: none;
            background-color: var(--theme-accent-2-base);
            border: 1px solid #ccc;
        }
        
        &:hover:not(:active) {
            background: none;
            background-color: var(--theme-accent-2-light);
            border: 1px solid #ccc;
        }

        &:active {
            background: none;
            background-color: var(--theme-accent-2-light);
            border: 1px solid #ccc;
        }
    }
}

.actionBlock {
    flex: 1 1;
    width:100%;
    gap:0px;
    align-items:stretch;

    & .actionColumn {
        display:flex;
        justify-content:center;
        align-items:center;
        color: var(--theme-black);
    }

    & .actionButton {
        display:flex;
        justify-content:center;
        align-items:center;
        padding:0px;

        & button {
            height:32px;
            width:48px;
            overflow:hidden;
            line-height:8px;
        }
    }
}
