html {
    height: 100%;
}
body {
    /* remove margins and scroll bars */
    overflow: hidden;
    margin: 0px;
    height: 100%;
    width: 100%;
    font-family: Sans-Serif;
}

.main-menu {
    position: absolute;
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

#menu-title {
    -webkit-user-select: none; /* safari */
    user-select: none;
    font-size: 100px;
    text-shadow: 3px 3px black;
    color: black;
    margin: 0px;
    margin-bottom: -20px;
}

#menu-sub-title {
    -webkit-user-select: none; /* safari */
    user-select: none;
    font-size: 30px;
    color: black;
    margin: 0px;

}

#menu-title-nine {
    color: red;
    font-size: 120px;
}

.main-menu-leaderboard-container {
    position: absolute;
    height: 100%;
    width: 30%;
    left: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 900px) {
    .main-menu-leaderboard-container {
        display: none;
    }
}

#main-menu-leaderboard-title {
    text-align: center;
    font-size: 40px; 
    font-weight: bold;
    margin: 10px 0px;
}

.end-screen {
    pointer-events: none;
    position: absolute;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.leaderboard {
    background: rgb(255, 255, 255);
    background: rgba(128, 128, 128, 0.75);
    display: table;
    pointer-events: none;
    position: relative;
    height: 50%;
    min-width: 20%;
    width: 80%;
    max-width: 300px;
    font-size: 30px;
    border: 4px solid black;
    border-radius: 10px;
}

.leaderboard td {
    padding: 5px;
    color: rgba(0, 0, 0, 1.0);
}


.leaderboard-rank-cell {
    text-align: right;
    width: 50px;
}

.leaderboard-name-cell {
/*    min-width: 200px;*/
}

.leaderboard-score-cell {
    width: 50px;
}

.end-screen-invalid-warning-box {
    background: rgb(255, 255, 255);
    background: rgba(128, 128, 128, 0.75);
    display: flex;
    flex-wrap: wrap;
    min-width: 20%;
    max-width: 50%;
    font-size: 20px;
    margin: 5px;
    pointer-events: none;
    border: 4px solid black;
    border-radius: 10px;
}

.end-screen-invalid-warning p {
    margin: 5px;
}

.end-screen-submission-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.end-screen-buttons-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
}

.end-screen-quit-container {
    display: none;
    margin: 5px;
}

.leaderboard-name-input {
    pointer-events: auto;
    font-size: 32px;
    text-align: center;
    width: 320px;
    height: 56px;
    margin: 5px;
}

#leaderboard-submit-button {
    pointer-events: auto;
    font-size: 20px;
    margin: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

#leaderboard-cancel-button {
    pointer-events: auto;
    font-size: 20px;
    margin: 5px;
    padding-left: 10px;
    padding-right: 10px;
}

.loading-screen {
    position: absolute;
    display: flex;
    opacity: 0%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: rgb(128, 128, 128);
    pointer-events: none;
    z-index: 2;
}

#loading-title {
    font-size: 100px; 
    text-shadow: 3px 3px black;
    -webkit-user-select: none; /* safari */
    user-select: none;
}

#loading-title-nine {
    color: red;
    font-weight: bold;
    font-size: 120px;
}

.loading-screen-fade-in-animation {
    animation-name: loading-fade-in;
    animation-duration: 0s;
    animation-fill-mode: forwards;
}

.loading-screen-fade-out-animation {
    animation-name: loading-fade-out;
    animation-duration: 1.0s;
    animation-fill-mode: forwards;
}

@keyframes loading-fade-in {
    from {
        opacity: 0%;
    }
    to {
        opacity: 100%;
    }
}
@keyframes loading-fade-out {
    from {
        opacity: 100%;
    }
    to {
        opacity: 0%;
    }
}

/*https://cssloaders.github.io/*/
.loading-spinner {
    width: 64px;
    height: 64px;
    border: 10px solid black;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: spinner-rotation 1s linear infinite;
}

@keyframes spinner-rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

.score-callout-container {
    position: absolute;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 40px;
    color: yellow;
    text-shadow: 4px 4px black;
    align: center;
    left: 50%;
    top: -50%;
    transform: translate(-50%, 0%);
}

.score-callout-hide-animation {
    animation-name: score-callout-hide;
    animation-duration: 5s;
    animation-fill-mode: forwards;
}

.score-callout-show-animation {
    animation-name: score-callout-show;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

@keyframes score-callout-hide {
    from {
        top: 20%;
    }
    to {
        top: -50%;
    }
}

@keyframes score-callout-show {
    from {
        top: -50%;
    }
    to {
        top: 20%;
    }
}

.scorecard-and-buttons-container {
    position: absolute;
    display: none;
    right: 0px;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-width: 15%;
    pointer-events: none;
}

.score-container {
    height: fit-content;    
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 0px;
    margin-right: 0px;
}

.score-container p {
    font-size: 30px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.continue-button-container {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: flex-end;
    pointer-events: none;
}

#continue-button {
    display: none;
    position: relative;
    bottom: 30%;
    pointer-events: auto;
    max-width: 70%;
    padding-left: 10px;
    padding-right: 10px;
}

.scorecard {
    background: rgb(255, 255, 255);
    background: rgba(128, 128, 128, 0.75);
    display: table;
    position: relative;
    right: -400px;
    margin: 10px;
    padding: 5px;
    font-size: 30px;
    border: 4px solid black;
    border-radius: 10px;
}

.scorecard th, .scorecard td {
    padding: 4px;
    text-align: center;
    border: 1px solid black;
    border: none;
}

.scorecard-hide-animation {
    animation-name: scorecard-hide;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.scorecard-show-animation {
    animation-name: scorecard-show;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes scorecard-hide {
    from {
        right: 0px;
    }
    to {
        right: -400px;
    }
}

@keyframes scorecard-show {
    from {
        right: -400px;
    }
    to {
        right: 0px;
    }
}

#total-text {
    color: red;
}

.hole-info-container {
    position: absolute;
    pointer-events: none;
    background: rgb(255, 255, 255);
    background: rgba(128, 128, 128, 0.5);
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 0px;
    padding-right: 0px;
    font-size: 20px;
    font-weight: bold;
    border: 4px solid black;
    border-radius: 10px;
    max-width: 25%;
}

.hole-info-container p {
    text-align: right;
    margin-top: 0px;
    margin-bottom: 0px;
}

#strokes-number-text {
    font-size: 108px;
    margin-top: -20px;
    margin-bottom: -25px;
    margin-left: 40px;
    margin-right: 40px;
}

#strokes-label-text {
    margin-right: 0px;
    align-self: center;
    margin-bottom: 20px;
}

.strike-meter-container {
    pointer-events:none;
    position: absolute;
    display: none;
    bottom: 10px;
    left: 0px;
    height: 50%;
    margin: 10px;
    margin-bottom: 0px;
    width: 40px;
    min-height: 250px;
    border: 4px solid black;
    border-radius: 20px;
}

.strike-meter-value {
    position: absolute;
    bottom: 0px;
    height: 60%;
    width: 100%;
    background-color: red;
    border-radius: 15px;
}

.menu-container {
    position: absolute;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.menu-screen-dim {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.4;
}

.in-game-menu {
    display: none;
    justify-content: center;
    align-content: center;
    flex-direction: column; 
    border-radius: 25px;
    pointer-events: auto;
    z-index: 1;
}

.button-container {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    flex-grow: 1;
}

.resume-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.button {
    background: rgb(255, 255, 255);
    background: rgba(128, 128, 128, 1.0);
    border: 4px solid black;
    padding: 10px 100px;
    margin: 10px 0px;
    font-size: 40px;
    color: black;
    border-radius: 10px;
    pointer-events: auto;
}

.button-small {
    background: rgb(255, 255, 255);
    background: rgba(128, 128, 128, 1.0);
    border: 4px solid black;
    padding: 5px 50px;
    margin: 10px 0px;
    font-size: 30px;
    color: black;
    border-radius: 10px;
    pointer-events: auto;

}

.back-button {
    background: rgb(255, 255, 255);
    background: rgba(128, 128, 128, 1.0);
    border: 4px solid black;
    padding: 10px 60px;
    font-size: 20px;
    margin: 5px 0px;
    color: black;
    border-radius: 10px;
    pointer-events: auto;

}

.bottom-buttons-container {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: flex-end;
    bottom: 10px;
    right: 10px;
    width: 100%;
}

.menu-button {
    position: relative;
    margin: 10px;
    right: 0px;
    background: rgb(255, 255, 255);
    background: rgba(128, 128, 128, 0.75);
    border: 4px solid black;
    padding: 10px 20px;
    font-size: 24px;
    color: black;
    border-radius: 10px;
    pointer-events: auto;
}

.options-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    pointer-events: auto;
    z-index: 1;
    -webkit-user-select: none; /* safari */
    user-select: none;
}

.options-container {
    background: rgb(255, 255, 255);
    background: rgba(128, 128, 128, 1.0);
    padding: 10px 20px; 
    border: 4px solid black;
    border-radius: 10px;
    font-size: 20px;
}

.checkbox {

}

.levels-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    z-index: 1;
}

.level-boxes-container {
    width: 100%;
    height: 100%;
    max-width: 547px;
    display: flex;
    justify-content: space-around;
    align-content: space-around;
    flex-direction: row;
    flex-wrap: wrap;
}

.level-box {
    display: flex;
    flex-direction: column;
    align-items:center;
    border: 4px solid black;
    background: rgb(255, 255, 255);
    background: rgba(128, 128, 128, 1.0);
    border-radius: 10px;
    padding: 0px;
    margin: 5px;
}

.level-box p {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: bolder;
    margin: 4px;
}

.level-box img {
    padding: 2px;
}


#levels-back-button {
    margin-left: 0px;
    margin-right: 0px;
    font-size: 18px;
}

#debug-text {
    position: absolute;
    text-align: right;
    width: 100%;
    right: 10px;
    font-size: 20px;
    color: yellow;
    pointer-events: none;
}

#scene-container {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    background-color: skyblue;
}
