@charset "UTF-8";

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: auto;
    padding: 0;
    max-width: 1240px;
    border: 20px solid #ccc;
}

.h1-div{
    text-align: center;
    color: #fff;
    max-height: 50px;
    font-size: 24px;
}

p {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-div {
    display: flex;
    justify-content: space-between;
    background-color: #444;
    color: #fff;
    text-align: end;
    max-height: 80px;
    padding-left: 20px;
    padding-right: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.dashboard-signin-container {
    padding-left: 20px;
    display: flex;
    justify-content: center;
    width: 120px;
    max-height: 50px;
    padding-right: 20px;
}
.welcome-div {
    padding-right: 10px;
    font-size: 16px;
    color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-right: 10px;
    max-height: 50px;
}
.username {
    font-weight: bold;
    color: #ff8831;
    padding-left: 10px;
    padding-right: 10px;
}

.google-sign {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: white;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.logout-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: white;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding-right: 10px;
}
.btn-img {
    max-width: 100%;
    height: auto;
    padding-right: 10px;
}
.optionsbtn-container {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding-top: 10px;
    width: auto;
}
#cats-button {
    background-color: #2F4F4F;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 20px;
    margin-right: 10px;
}
#dogs-button {
    background-color: #ff8831;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 20px;
    margin-right: 10px;
    margin-left: 10px;
}

#free-license-btn-cats{
    background-color: #2F4F4F;
    color: green;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 20px;
    margin-right: 10px;
}
#paid-license-btn-cats{
    background-color: #2F4F4F;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 20px;
    margin-right: 10px;
}
#free-license-btn-dogs{
    background-color: #ff8831;
    color: green;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 20px;
    margin-right: 10px;
}
#paid-license-btn-dogs{
    background-color: #ff8831;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 20px;
    margin-right: 10px;
}

#mydownloads-btn {
    background-color: green;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    padding: 10px 20px;
    margin-right: 10px;
}

.search-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 1024px
}

.license-btns {
    display: flex;
    justify-content: flex-end;
    width: auto;
}
.license-div {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-right: 20px;
    margin-top: 10px;
    padding-bottom: 20px;
}

.index-license-div {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-right: 20px;
    margin-top: 10px;
    padding-bottom: 20px;
}

.grid-view {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(350px, 1fr));
    grid-auto-rows: 400px;
  gap: 16px;
}

.grid-view > * {
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
  border: 1px solid #ccc;
  background: white;
  border-radius: 10px;
  overflow: hidden;

  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


.grid-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Bottom information row */
.image-info {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px;
}

.license {
    font-size: 14px;
    font-weight: bold;
}

.free {
    color: #159447;
}

.paid {
    color: #222;
}

.download-btn {
    border: none;
    background: transparent;
    color: #333;

    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.download-btn:hover {
    color: #0878db;
}
.hidden {
    display: none !important;
}

.login-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.login-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 350px;
    text-align: center;
}

.login-content button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

.login-content button:first-of-type {
    background: #222;
    color: white;
}

.cancel-btn {
    background: #eee;
}

/* Pagination container */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

/* Arrow buttons */

.page-btn {
    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: #222;
    color: white;

    cursor: pointer;
    font-size: 14px;
}

.page-btn:hover:not(:disabled) {
    background: #0878db;
}

.page-btn:disabled {
    background: #ccc;
    color: #777;
    cursor: not-allowed;
}

/* Page information */

#pageInfo {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 20px;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .footer-legal {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }
    
.top-div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #444;
    color: #fff;
    text-align: end;
    max-height: 80px;
    padding-left: 20px;
    padding-right: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.h1-div{
    text-align: center;
    color: #fff;
    max-height: 50px;
    font-size: 24px;
    padding-bottom: 10px;
}

.optionsbtn-container {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding-top: 10px;
    width: auto;
}
input[type="text"] {
  max-width: 120px;
  height: 30px;
  font-size: 16px; /* Prevents iOS Safari from auto-zooming on focus */
}

.index-license-div {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-right: 20px;
    margin-top: 10px;
    padding-bottom: 20px;
}

.license-div {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-right: 20px;
    margin-top: 10px;
    padding-bottom: 20px;
}
.license-buttons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    width: 180px;
}

.mydownloads-div {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    width: 180px;
}
.license-btn {
    margin-bottom: 10px;
    padding-bottom: 10px;
    padding-top: 10px;
}
}