body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #020202;
}
textarea {
    width: 90%;
    box-sizing: border-box; /* Include padding and border in the total width */
    background-color: #0a0a0a;
    color: white;
    border: 1px solid #1b1b1b;
    border-radius: 5px;


}
.editingbox {
    height: 200px;
}
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}
select {
    background-color: #0c0c0c;
    color: #eeeeee;
    border: #1b1b1b;
}
input[type="text"], input[type="email"], input[type="submit"], input[type="password"] {
    background-color: #0a0a0a;
    color: #ffffff;
    margin-top: 20px;
    width: 100%;
    max-width: 300px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #1b1b1b;
    border-radius: 5px;
}

/* FONT SETTINGS*/
@font-face { font-family: Otama-ep; src: url('/static/fonts/Otama-ep.otf'); } 
@font-face { font-family: Otama-ep; font-weight: bold; src: url('/static/fonts/Otama-ep.otf');}
@font-face { font-family: Montserrat; src: url('/static/fonts/Montserrat-Regular.otf'); } 
@font-face { font-family: Montserrat; font-weight: bold; src: url('/static/fonts/Montserrat-Regular.otf');}




/* MEDIA SETTINGS FOR BEST VIEWS*/
@media (max-width: 768px) {
    .photo_label_ex {
        font-size: 1.2em; /* Adjust font size for smaller screens */
    }

    .photo_linktext, .photo_linksubtext {
        font-size: 0.9em; /* Adjust font size for smaller screens */
    }
}

@media (max-width: 480px) {
    .photo_label_ex {
        font-size: 1em; /* Further adjust font size for very small screens */
    }

    .photo_linktext, .photo_linksubtext {
        font-size: 0.8em; /* Further adjust font size for very small screens */
    }
}





/* BUTTONS STYLING */
.buttonclass-red {
    display: inline-block;
    padding: 10px;
    background-color: #8d1111; 
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #1b1b1b;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s; /* Add a transition effect */
}

.buttonclass-red:hover {
    background-color: #ffffff; /* Change background color on hover */
    color: #0a0a0a; /* Change text color on hover */
}

.buttonclass {
    display: inline-block;
    font-family: Otama-ep;
    padding: 10px;
    background-color: #0a0a0a;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #1b1b1b;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s; /* Add a transition effect */
    margin: 2px;
}

.buttonclass:hover {
    background-color: #ffffff; /* Change background color on hover */
    color: #0a0a0a; /* Change text color on hover */
}



/* CONTAINER STYLING FOR BUTTONS, ETC*/
/* New container for centering the button for submits within DIVs */
.submit-button-container {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    width: 100%; /* Ensures the container spans the full width */
    margin-top: 15px; /* Optional: Adds some space above the button */
}
.submit-button-container-alt {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    width: 100%; /* Ensures the container spans the full width */
    margin-top: 15px; /* Optional: Adds some space above the button */
    margin-bottom: 10px;
    text-align: center;
}
.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10%;
    text-align: center;
    padding: 5px;
}

.centered-container-alt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1%;
    text-align: center;
    padding: 5px;
}

.buttonclass-center {
    display: inline-block;
    font-family: Otama-ep;
    padding: 10px;
    background-color: #0a0a0a;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #1b1b1b;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
    min-width: 120px; /* Ensures a minimum button width */
}

.buttonclass-center:hover {
    background-color: #ffffff;
    color: #0a0a0a;
}
.buttonclass-center-alt {
    display: inline-block;
    font-family: Montserrat;
    padding: 10px;
    background-color: #0a0a0a;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #1b1b1b;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
    min-width: 120px; /* Ensures a minimum button width */
}

.buttonclass-center-alt:hover {
    background-color: #ffffff;
    color: #0a0a0a;
}
/* Centering the button container on hom epage eg "Show More" */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -10px;
    padding-bottom: 18px;
}






/* Used for 'Title" on most html docs*/
.title {
    font-family: Otama-ep;
    text-align: center;
    color: #ffffff;
    margin-bottom: -20px;

}

/*  TEXT STYLES  */
.ptext {
    font-size: 13px;
    font-family: Montserrat;
    color: #cfcfcf;
}
.gray-text {
    color: #a3a3a3;
    font-size: 12px; 
    font-family: Montserrat;
    text-align: center;
}
.gray-text-title { /* really for the details section on photo_detail.html */
    color: #797979;
    font-size: 11px; 
    font-family: Montserrat;
    text-align: center;
    margin-bottom: 20px;
}






/* GALLERY GRID STYLING*/

.title-detail {
    font-family: Otama-ep;
    text-align: center;
    color: #979797;
    margin-bottom: 20px;

}

.sub_title {
    font-family: Montserrat;
    text-align: center;
    color: #cfcfcf;
    margin-bottom: -10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));  /* Responsive grid */
    gap: 20px;
    padding: 20px;
}

.photo-item {
    text-align: center;
    position: relative;
}

.photo-item img {
    width: 100%;
    height: auto;  /* Maintain aspect ratio */
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item img:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;

}

.photo-item p {
    margin-top: 10px;
    font-weight: bold;
    color: #cfcfcf;
}
.photo_label_ex {
    font-family: Otama-ep;
    text-align: center;
    color: #ffffff;
}

.photo_linktext {
    font-family: Montserrat;
    color: #cfcfcf;
    font-size: 14px;
}

.photo_linksubtext {
    font-size: 12px;
    font-family: Montserrat;
    color: #a9a9a9;
}




/*Styles for the forms*/
.popup-form-msup {
    display: none;
    position: fixed;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px;
    border-radius: 5px;
    border-color: #0c5460;
    background-color: rgb(22, 19, 19);
    width: 350px;
    margin: 0 auto; /* Centers the form on the page */
    align-items: center;
    justify-content: center;
}
.popup-form-msxup {
    display: flex;
    position: fixed;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px;
    border-radius: 5px;
    border-color: #0c5460;
    background-color: rgb(22, 19, 19);
    width: 350px;
    margin: 0 auto; /* Centers the form on the page */
    align-items: center;
    justify-content: center;
}
.popup-form-msxup-bigger {
    display: flex;
    position: fixed;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px;
    border-radius: 5px;
    border-color: #0c5460;
    background-color: rgb(22, 19, 19);
    width: 80%;
    margin: 0 auto; /* Centers the form on the page */
    align-items: center;
    justify-content: center;
}
.input-msup {
    font-family: Montserrat;
    background-color: #0a0a0a;
    color: #ffffff;
    margin-top: 20px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #1b1b1b;
    border-radius: 5px;
}
.poptext {
    font-family: Montserrat;
    color: #ffffff;
}
.poptextbanner {
    text-align: center;
    font-family: Montserrat;
    padding-top: 20px;
    color: #ffffff;
    background-color: #354185;
    /* height: 30px; */
    border-radius: 5px;
    margin-bottom: 10px;
    width: 100%;
}
.poptextbanner-upload {
    text-align: center;
    font-family: Montserrat;
    padding-top: 20px;
    color: #ffffff;
    background-color: #354185;
    border-radius: 5px;
    margin-bottom: 10px;
    width: 100%;
}








/* FOOTER STYLING*/
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
}
.foot {
    color: #d6d6d6;
    font-family: Montserrat;
}





/* Style for flash messages */
.flash {
    margin-top: 10px;
    margin-bottom: 2px;
    background-color: #444;  /* Dark gray background to contrast with black */
    color: white;  /* White text for visibility */
    padding: 10px;  /* Add some padding */
    border-radius: 5px;  /* Rounded corners */
    margin: 10px 0;  /* Space between messages */
    font-size: 14px;  /* Set font size */
    text-align: center;
    width: 45%;
    margin: 0 auto;
}

.flash.error {
    background-color: #d9534f;  /* Red for error messages */
}

.flash.success {
    background-color: #5cb85c;  /* Green for success messages */
}





/* Star rating styles */
.star-rating {
    display: flex;
    justify-content: center;
    font-size: 2em;
    cursor: pointer;
}

.star {
    color: #ccc;
}

.star.selected {
    color: gold;
}
/* Hover effect for stars */
.star:hover,
.star:hover ~ .star {
    color: gold;
}





/* Vote count styling */
.votes-summary {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}
.votes-count {
    font-size: 0.9em;
    color: #666;
}
.vote-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    padding: 20px;
    max-width: 600px;
    width: 100%;
}






/* Mobile-specific styles */
@media only screen and (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));  /* Smaller columns on mobile */
        padding: 10px;
    }
}
