@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Oswald:wght@200..700&display=swap');

/*Global*/
* {
    box-sizing: border-box;
}

body {
    margin: 0px;
    scroll-behavior: smooth;
    background-color: #222;
    padding: 20px;
}

h1, h2, h3, h4, h5 {
    font-family: "Oswald", sans-serif; 
    color: #1A2E35;
    line-height: 1.2em;
}

p, span, a, li, td, th, label, select, radio, input, button, textarea, option, #progressBar, .msg, .error, .success {
   font-family: "Inter", sans-serif;  
   color: #475569;
   line-height: 1.5em;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    transition: all 0.7s ease;
}

button, input[type=submit], .btn {
    transition: all 0.7s ease;
    padding: 10px 20px; 
    background-color: #ADDDBE; 
    color: #111; 
    border: none; 
    font-weight: bold; 
    border-radius: 10px; 
    cursor: pointer;
    font-size: 17px;
}
button:hover, a:hover, input[type=submit]:hover {
    opacity: 0.7;
}
a {
    transition: all 0.7s ease;
}

.grecaptcha-badge { 
    visibility: hidden; 
}

/*Header*/
header {
    width: 100%;
    padding: 10px;
    background-color: #fff;
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
}
header #headermain {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: auto;
}
header #navigation {    
    justify-content: end;
    display: flex;
    gap: 18px;
    align-items: center;
}
header #navigation a {
    font-size: 17px;
    text-decoration: none;
    font-weight: 600;
}
header #navigation a:hover {
    opacity: 0.8;
}
.mobile-only {
    display: none;
}

/*Title*/
#title {
    width: 70%;
    margin: auto;
}
#title h1 {
    font-size: 36px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 10px;
    color: #5BAD56;
}
#title p {
    font-size: 17px;
    text-align: center;
    font-weight: normal;
    color: #fff;
}

/*Search Bar*/
.search-form {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.search-container input[type="search"] {
    width: 100%;
    padding: 12px 50px 12px 16px;
    font-size: 16px;
    border: 2px solid #1A2E35;
    border-radius: 6px;
    outline: none;
    background: #ffffff;
    color: #1A2E35;
}
.search-container button[type="submit"] {
    position: absolute;
    right: 6px;
    background-color: #5AE4A7;
    color: #1A2E35;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: opacity 0.2s;
}
.search-container button[type="submit"]:hover {
    opacity: 0.85;
}

/*Gallery*/
.gallery-container { 
    width: 100%; 
    margin: auto; 
}
.grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px; 
}
.grid-item { 
    border-radius: 4px; 
    position: relative;
}
.grid-item img { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
    display: block; 
    border-radius: 2px; 
}
.grid-item a {
    text-decoration: none; 
    display: block; 
}

/*Upload Container*/
.container { 
    width: 30%; 
    margin: auto; 
    background: #ffffff; 
    padding: 20px; 
    border-radius: 4px; 
}
 label { 
     display: block; 
     margin-top: 15px; 
     font-weight: 500; 
     font-size: 16px;
 }
input[type="text"], input[type="email"], input[type="url"], select, input[type="file"] { 
     width: 100%; 
     padding: 10px; 
     margin-top: 5px; border: 1px solid #1A2E35; 
     border-radius: 10px; 
     background-color: #fff;
}
::file-selector-button {
    border: none;
    padding: 10px;
    border-radius: 5px;
    background-color: #2563EB;
    color: #fff;
    cursor: pointer;
}
.msg { 
    padding: 20px; 
    background-color: #5AE4A7; 
    color: #475569;
    border-radius: 8px; 
    text-align: center; 
    margin-bottom: 20px; 
    margin-top: 20px; 
    font-weight: bold; 
    font-size: 17px;
}

/*Photo Container*/
.photo-container { 
    width: 80%; 
    margin: auto;  
}
.photo-container img { 
    width: 70%; 
    height: auto; 
    display: block; 
    border-radius: 2px;
    margin: auto;
}
.metadata { 
    display: flex;
    align-items: center;
    text-align: center;
    gap: 20px;
    justify-content: center;
}
.metadata span {
    background-color: #5BAD56;
    font-size: 17px;
    text-align: center;
    color: #fff;
    border-radius: 4px;
    padding: 8px 10px;
}
a.category-link, a.website-link {
    color: #fff;
    text-decoration: none; 
}
.grid-like-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(26, 46, 53, 0.85);
    color: #fff!important;
    padding: 6px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s, transform 0.1s;
    z-index: 10;
}
.like-count {
    color: #fff!important;
}
.grid-like-btn:hover {
    background-color: #1A2E35;
}
.grid-like-btn.liked {
    background-color: #5BAD56;
    color: #fff!important;
}
.photo-like-section {
    margin-top: 20px;
    display: flex;
    align-items: center;
}
.photo-page-btn {
    background: #1A2E35;
    color: #fff!important;
    border: 2px solid #5AE4A7;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}
.photo-page-btn:hover {
    background: #2a4650;
}
.photo-page-btn.liked {
    background: #1A2E35;
    color: #fff!important;
}

/*Pagination*/
.pagination { 
    display: flex; 
    justify-content: center;
    margin-top: 40px; 
    gap: 10px; 
}
.pagination a, .pagination span { 
    padding: 10px 20px; 
    background-color: #ADDDBE; 
    color: #111; 
    border: none; 
    font-weight: bold; 
    border-radius: 10px; 
    cursor: pointer;
    font-size: 15px;
}
.pagination a:hover { 
    background-color: #5AE4A7; 
    color: #000000;
}
.pagination .current {
    background-color: #5AE4A7; 
    color: #000000; 
}

/*Footer*/
footer {
    width: 90%;
    margin: auto;
    border-top: 1px solid #fff;
    padding: 15px;
}
footer p {
    font-size: 12px;
    color: #fff;
    text-align: center;
}
        
/*Responsive*/
@media (max-width: 900px) {
.mobile-only {
    display: block;
    cursor: pointer;
    font-size: 50px;
    font-weight: bold;
}
#menu-icon {
    font-size: 28px;
    color: #333;
}
header #headermain {
    width: 90%;
}
header #navigation {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 100vw;
    height: 100vh;
    background-color: #ffffff; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;    
    gap: 30px;               
    transition: right 0.4s ease-in-out;
    z-index: 9999;
}
header #navigation.open {
    right: 0; 
}
header #navigation a {
    font-size: 22px; 
}
.grid {
    grid-template-columns: repeat(2, 1fr); 
}
#title {
    width: 100%;
}
#searchbar {
    width: 100%;
}
.container { 
    width: 100%; 
}
.photo-container { 
    width: 100%; 
}
.photo-container img { 
    width: 100%; 
}
}
@media (max-width: 500px) {
.mobile-only {
    display: block;
    cursor: pointer;
    font-size: 50px;
    font-weight: bold;
}
#menu-icon {
    font-size: 28px;
    color: #333;
}
header #headermain {
    width: 90%;
}
header #navigation {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 100vw;
    height: 100vh;
    background-color: #ffffff; 
    flex-direction: column;
    justify-content: center; 
    align-items: center;    
    gap: 30px;               
    transition: right 0.4s ease-in-out;
    z-index: 9999;
}
header #navigation.open {
    right: 0; 
}
header #navigation a {
    font-size: 22px; 
}   
.grid { 
    grid-template-columns: 1fr; 
} 
#title {
    width: 100%;
}
#searchbar {
    width: 100%;
}
.container { 
    width: 100%; 
}
.photo-container { 
    width: 100%; 
}
.photo-container img { 
    width: 100%; 
}
.metadata { 
    flex-direction: column;
}
}