* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

#settings {grid-row: 2 / 3; grid-column: 1 / 4; background-color: rgb(247, 249, 255); margin: 0px 0px; padding: 10px;}
#home {grid-row: 3 / 3; grid-column: 1 / 4; background-color: rgb(199, 212, 247); border: dotted black; margin: 0px 5px; padding: 10px;}
#about {grid-row: 4 / 4; grid-column: 1 / 4; background-color: rgb(199, 212, 247); border: dotted black; margin: 0px 5px; padding: 10px;}
#gallery {grid-row: 5 / 5; grid-column: 1 / 4;}
#contact {grid-row: 6 / 6; grid-column: 1 / 4; background-color: rgb(199, 212, 247); border: dotted black; margin: 0px 5px; padding: 10px;}
/* Container */
.admin-container {
    height: 100vh;
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}
.admin-card {
    margin: 5% 30%;
    margin-bottom: 0%;
    padding-top: 60px;
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.admin-card ul {
    display: flex;
    flex-direction: column;
    list-style: none;
}
.edit {
    text-align: center;
}
.admin-card h2, .admin-card a {
    color: #004ec2;
}
.admin-card a:hover {
    color: #ffae00;
}
.admin-card input {
    margin-top: 20px;
} 
.admin-card img {
    max-width: 100%;
    border-radius: 5px;
}  
.log-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.log-group label {
    font-weight: bold;
    margin-bottom: 0rem;
}
.log-group input,
.log-group textarea {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.log-group input:focus,
.log-group textarea:focus {
    border-color: #004EC2;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}
.check-box {
    text-align: left;
}
input.login-button {
    display: inline-block;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: #129e00;
    background-color: #dba40000; /* Transparent background */
    border: 2px solid #129e00; 
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
input.login-button:hover {
    border: 2px solid #ffbb00; 
    background-color: #ffbb00;
    color: #000000;
    transform: translateY(-2px);
}
input.login-button {
    max-width: 100%;
}
input.edit-button {
    display: inline-block;
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: #129e00;
    background-color: #dba40000; /* Transparent background */
    border: 2px solid #129e00; 
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
input.edit-button:hover {
    border: 2px solid #ffbb00; 
    background-color: #ffbb00;
    color: #000000;
    transform: translateY(-2px);
}
input.edit-button {
    max-width: 100%;
}
.login-links {
    text-align: left;
}
a {
    font-weight: 500;
    transition: font-weight 0.3s ease; /* Smooth transitions */
    padding-bottom: 10px;
}
a:hover {
    text-decoration: none !important;
}
i {
    font-size: smaller;
}

/* Responsive Design */
/* Portrait mode for small devices */
@media screen and (max-width: 600px) and (orientation: portrait) {
  body {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.5rem;
  }

  #settings
  #home,
  #about,
  #contact {
    grid-column: 1 / -1;
    grid-row: auto;
    margin: 5px;
    padding: 10px;
  }

  .admin-card {
    margin-top: 10%;
    margin: 1% 2%;
  }
}

/* Landscape mode for small devices */
@media screen and (max-width: 800px) and (orientation: landscape) {
  body {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 0.5rem;
  }

  #settings,
  #home,
  #about,
  #contact {
    grid-column: 1 / -1;
    grid-row: auto;
    margin: 5px;
    padding: 10px;
  }
  .admin-card {
    margin-top: 5%;
    margin: 1% 2%;
  }
}
