/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    background-color: black;
    color: white;
    display: flex;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Layout wrapper adjustments */
.layout-wrapper {
    display: flex;
    width: 100%;
    gap: 1em;
    align-items: flex-start;
    padding: 0 1rem;
}

/* Column styles */
.col {
    width: 33.333%;
    display: flex;
    flex-direction: column;
}

/* Section styles */
.sec {
    width: 100%;
    padding: 1em;
    text-align: center;
}

/* Input/Output sections */
.out, .in {
    text-align: left;
    height: 33vh;
    border-bottom: solid 1px;
    background-color: black;
    display: flex;
    position: sticky;
    top: 0;
}

/* Print section */
.imp {
    position: sticky;
    top: 0;
    height: 45vh;
    width: 35vw;
    display: flex;
    align-items: flex-end;
    background-color: black;
    color: white;
    border: solid 0.5px;
    justify-content: center;  /* Centers horizontally */    
}

#impid {
    position: fixed;
    top: 4vh;
    font-size: 4vh;
    line-height: 1.6;
}

/* Register section */
.reg {
    height: fit-content;
    font-size: 4vh;
    padding: 0;
    color: white;
    width: 35vw;
}

/* Table styles */
table {
    width: 100%;
    border: 1px solid white;
}

#count th {
    background-color: yellow;
    color: black;
    font-size: 6vh;
}

/* Input styles */
input[type="text"] {
    height: 25vh;
    width: 73%;
    font-size: 7vh;
    text-align: center;
    background-color: black;
    color: gold;
    border: none;
}

input::placeholder {
    color: yellow;
    font-size: 1.3em;
    font-style: italic;
    background-color: black;
}

/* Button styles */
.btn {
    background-color: transparent;
    border: none;
    color: white;
    padding: 0vh 1vw;
    font-size: 7vh;
    cursor: pointer;
}

.btn:hover {
    background-color: RoyalBlue;
}

.outbtn {
    color: #bdb022;
    font-size: 5vw;
    padding: 6vh 1vw 8vh 3vw;
}

.inbtn {
    color: #bdb022;
    font-size: 5vw;
    padding: 6vh 1vw 8vh 2vw;
}

.impbtn {
    color: #f0eeda;
    font-size: 7vh;
    padding: 1vh 7vw;
    border: 1px solid darkslategray;
    width:100%;
}

/* Print styles */
@media print {
    body {
        display: flex;
        place-content: center;
        text-align: center;
        line-height: 1.3;
        background: white;
    }
    
    #impid, #impid * {
        visibility: visible;
        color: black;
    }
    
    #impid {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
    }
}

/* Menu panel adjustments */
.menu-panel {
    display: none;
}

.menu-toggle {
    display: none;
}