header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

header img {
    width: 100% !important;
    max-width: 800px !important;
    height: auto !important;
}

body {
    background-color: black;
    background-image: url(./images/haunted-manor-background.jpeg);
    background-size: contain;
}

.content {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    width: 100%;
    height: 100%;
    row-gap: 5px;
    overflow: scroll;
    font-family: "Andale Mono", "Source Code Pro", "Menlo", "Times", 'Courier New', Courier, monospace;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    font-size: 8px;
    text-shadow:
        0 0 5px #fff,
        0 0 9px #0fa,
        0 0 12px #0fa,
        0 0 80px #0fa,
        0 0 90px #0fa;
}

.grid-item {
    text-overflow: clip;
    white-space: nowrap;
    overflow: hidden;
    padding: 10px;
}

.field-container {
    justify-content: center;
    align-items: center;
    align-self: center;
}

.neon-text {
    animation: flicker 1.5s infinite alternate;
    color: #fff;
}

#delete-container {
    display: flex;
    justify-content: center;
    margin-top: .75rem;
}

button {
    font-family: "Andale Mono", "Source Code Pro", "Menlo", "Times", 'Courier New', Courier, monospace;
    font-size: 8px;
    height: 1.75rem;
    width: 7.5rem;
    background-color: none;
    color: #fff;
    background-color: transparent;
    cursor: pointer;
    border-radius: 5px;
    text-shadow:
        0 0 5px #fff,
        0 0 9px #0fa,
        0 0 12px #0fa,
        0 0 80px #0fa,
        0 0 90px #0fa;
}

/* Text flickering animation No.1. for 'Holes' column. */
@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
      text-shadow:
        0 0 5px #fff,
        0 0 9px #0fa,
        0 0 12px #0fa,
        0 0 80px #0fa,
        0 0 90px #0fa;
    }
    20%, 24%, 55% {       
      text-shadow: none;
    }
}

/* Specific grid location allocated for 'Holes', hole numbers, and 'Total'. */
.hole-one {
    grid-row-start: 2;
    grid-column-start: 1;
}

.hole-two {
    grid-row-start: 3;
    grid-column-start: 1;
}

.hole-three {
    grid-row-start: 4;
    grid-column-start: 1;
}

.hole-four {
    grid-row-start: 5;
    grid-column-start: 1;
}

.hole-five {
    grid-row-start: 6;
    grid-column-start: 1;
}

.hole-six {
    grid-row-start: 7;
    grid-column-start: 1;
}

.hole-seven {
    grid-row-start: 8;
    grid-column-start: 1;
}

.hole-eight {
    grid-row-start: 9;
    grid-column-start: 1;
}

.hole-nine {
    grid-row-start: 10;
    grid-column-start: 1;
}

.hole-ten {
    grid-row-start: 11;
    grid-column-start: 1;
}

.hole-eleven {
    grid-row-start: 12;
    grid-column-start: 1;
}

.hole-twelve {
    grid-row-start: 13;
    grid-column-start: 1;
}

.hole-thirteen {
    grid-row-start: 14;
    grid-column-start: 1;
}

.hole-fourteen {
    grid-row-start: 15;
    grid-column-start: 1;
}

.hole-fifteen {
    grid-row-start: 16;
    grid-column-start: 1;
}
.hole-sixteen {
    grid-row-start: 17;
    grid-column-start: 1;
}
.hole-seventeen {
    grid-row-start: 18;
    grid-column-start: 1;
}

.hole-eightteen {
    grid-row-start: 19;
    grid-column-start: 1;
}

.total {
    grid-row-start: 20;
    grid-column-start: 1;
}

.hole-num {
    padding: 12px;   
    align-self: center;
}

input {
    filter: none;
    background-color: transparent;
    box-shadow: none;
    border-style: none;
    font-family: "Andale Mono", "Source Code Pro", "Menlo", "Times", 'Courier New', Courier, monospace;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 3ch;
}

/* Removes autofill in Chrome, Safari, and *maybe* Firefox */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    filter: none;
    background-color: transparent;
    box-sizing: border-box;
    width: 100%;
    box-shadow: none;
    -webkit-box-shadow: none;
    transition: background-color 5000s ease-in-out 0s;
    border: none;
    border-style: none;
    font-family: "Andale Mono", "Source Code Pro", "Menlo", "Times", 'Courier New', Courier, monospace;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 8ch;
    text-shadow:
        0 0 1px rgb(0, 119, 255),
        0 0 3px rgb(0, 119, 255),
        0 0 5px rgb(0, 119, 255);
    -webkit-text-fill-color: #fff;
}

.field {
    filter: none;
    background-color: transparent;
    box-sizing: border-box;
    width: 100%;
    box-shadow: none;
    border-style: none;
    font-family: "Andale Mono", "Source Code Pro", "Menlo", "Times", 'Courier New', Courier, monospace;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 8ch;
    text-shadow:
        0 0 1px rgb(0, 119, 255),
        0 0 3px rgb(0, 119, 255),
        0 0 5px rgb(0, 119, 255);
}

.field::placeholder, .field-flicker::placeholder {
    filter: none;
    color: gray;
    text-shadow: none;
}

.field-flicker {
    animation: flicker-two 1.5s infinite alternate;
    background-color: transparent;
    box-sizing: border-box;
    width: 100%;
    box-shadow: none;
    border-style: none;
    font-family: "Andale Mono", "Source Code Pro", "Menlo", "Times", 'Courier New', Courier, monospace;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    max-width: 8ch;
}

/* Text flickering animation No.2 for 'Names' input fields. */
@keyframes flicker-two {
    0%, 12%, 18%, 24%, 46%, 54%, 100% {
      text-shadow:
      0 0 1px rgb(0, 119, 255),
      0 0 3px rgb(0, 119, 255),
      0 0 5px rgb(0, 119, 255);
    }
    16%, 20%, 51% {       
      text-shadow: none;
    }
}

/* Removes spin button on hole score inputs for Chrome, Safari */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Removes spin button on hole score inputs for Firefox */
input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    text-transform: uppercase;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.modal-content {
    background-color: rgb(0, 0, 0);
    border: 1px solid #fff;
    padding: 1rem;
    border-radius: 2px;
    font-family: "Andale Mono", "Source Code Pro", "Menlo", "Times", 'Courier New', Courier, monospace;
    color: #fff;
    text-align: center;
    font-size: 8px;
    text-shadow:
        0 0 5px #fff,
        0 0 9px #0fa,
        0 0 12px #0fa,
        0 0 80px #0fa,
        0 0 90px #0fa;
}

.modal-content p {
    padding-bottom: 1rem;
}

.modal button {
    margin-right: 10px;
}

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.page-divider {
    width: 100%;
    height: auto;
    max-width: 800px;
}

.social-media {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.social-media a.icon {
    margin: 0 0.25rem;
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
}

.social-media a.icon img {
    display: block;
    width: 2rem;
    height: 2rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-media a.icon:hover img {
    opacity: 1.0;
}

.footer-text {
    font-family: "Metal Mania", "Andale Mono", "Source Code Pro", "Menlo", "Times", 'Courier New', Courier, monospace;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    margin: 0;
}

.footer-info {
    font-family: "Andale Mono", "Source Code Pro", "Menlo", "Times", 'Courier New', Courier, monospace;
    color: #fff;
    text-align: center;
    font-size: 0.75rem;
    margin: 0;
}

.hours-title, .playing-title {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.hours-end, .playing-end {
    margin-bottom: 1rem;
}
