body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #0057b8;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.50); /* Semi-transparent black with 50% opacity */
    transform: translateY(-50%);
}

#align-text {
    position: absolute;
    top: calc(50% - 13px); /* Move the text 3px above the red line */
    width: 100%;
    text-align: center;
    font-size: 16px; /* Increase font size to medium */
    color: white;
    font-weight: bold; /* Make the text bold */
    transform: translateY(-50%);
}

#inner-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: red;
    transform: translateY(-50%);
}

#pitch-container {
    position: absolute;
    top: calc(50% + 10px);
    left: 10px; /* Position the pitch text to the left */
    text-align: left;
    font-size: 30px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px black; /* Add drop shadow */
}

#base-container {
    position: absolute;
    top: calc(50% + 10px);
    right: 10px; /* Position the base number text to the right */
    text-align: right;
    font-size: 30px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px black; /* Add drop shadow */
}

#title-container {
    position: absolute;
    bottom: 40px;
    width: 100%;
    text-align: center;
    font-size: 25px;
    font-weight: bold;
    color: rgba(255, 255, 255, 1); /* White color at 50% opacity */
    text-shadow: 2px 2px 4px black; /* Add drop shadow */
}

#enableButton {
    position: absolute;
    top: calc(50% - 85px); /* Move up by 25px */
    left: 10px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: rgba(2, 196, 54, 0.7);
    border: 2px solid #02c436;
    color: white;
    cursor: pointer;
    z-index: 1001;
    pointer-events: auto;
    border-radius: 8px; /* Rounded corners */
}

#screenshotButton {
    position: absolute;
    top: calc(50% - 85px); /* Move up by 25px */
    right: 10px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: rgba(196, 2, 2, 0.7);
    border: 2px solid #c40202;
    color: white;
    cursor: pointer;
    z-index: 1001;
    pointer-events: auto;
    display: none;
    border-radius: 8px; /* Rounded corners */
}

.button-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    margin-top: 10px;
}

#pitchToolButton, #shareButton {
    padding: 10px 20px;
    font-size: 16px;
    background-color: white;
    color: #007BFF;
    border: 2px solid #007BFF;
    cursor: pointer;
    border-radius: 8px; /* Rounded corners */
}

#shareButton {
    display: none;
}

#screenshot-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

#screenshot {
    max-width: 100%;
}

#rotate-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: black;
    background: #abcae9;
    padding: 20px;
    border: 2px solid black;
    border-radius: 10px;
    text-align: center;
    z-index: 1000;
}

/* Media query for portrait view */
@media (orientation: portrait) {
    #screenshot-container {
        display: none;
    }
}