/* Basic Resets and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: black;
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header/Navbar */
.navbar {
    background-color: #1a1a1a;
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo
.logo-placeholder {
    font-size: 2px;
    font-weight: bold;
    color: white;
}
*/

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #007bff;
}

.nav-links .right-aligned {
    margin-left: auto;
}

.accounts-link {
    background-color: #007bff;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.accounts-link:hover {
    background-color: #0056b3;
    color: white;
}

/* Content Body */
.content-body {
    flex-grow: 1;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 139, 0.6) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.image-advert-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.logo-img-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.logo-img-placeholder img {
    max-width: 50%;
    height: auto;
    display: block;
}

.advert-box-placeholder {
    background-color: #333;
    width: 80%;
    max-width: 700px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
    border: 1px dashed #777;
    margin-bottom: 20px;
}

/* Info Boxes */
.info-boxes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 20px 0;
}

.info-box {
    flex: 1;
    min-width: 400px;
    max-width: 500px;
    background-color: rgb(255, 255, 255);
    color: black;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.info-box-header {
    background-color: #016ee1;
    color: white;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

input[name=username], select {
  width: 80%;
  padding: 12px 20px;
  margin: 8px 0 8px 6px; /* top right bottom left */
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=password], select {
    width: 80%;
    padding: 12px 20px;
    margin: 8px 0 8px 9px; /* top right bottom left */
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button, select {
  width: 50%;
  padding: 12px 20px;
  margin: 5px 0 8px 76px; /* top right bottom left */
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #57c55b; /* green */
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

.info-box-body {
    padding: 12px;
    font-size: 14px;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .logo-img-placeholder img {
        max-width: 100%;
    }

    .navbar nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }

    .nav-links a {
        display: flex;
        padding: 8px 10px;
    }

    .nav-links .right-aligned {
        margin-left: 0;
        align-self: flex-end;
        width: auto;
    }

    .advert-box-placeholder {
        width: 90%;
        height: 80px;
        font-size: 18px;
    }

    .info-boxes-container {
        flex-direction: column;
        align-items: center;
    }

    .info-box {
        width: 100%;
        max-width: 500px;
        min-width: 0; /* allow full shrink */
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1px 1px;  /* this was changed from 15px 20px */ 
        max-width: auto;
    }

    .logo-placeholder {
        font-size: 20px;
    }

    .advert-box-placeholder {
        font-size: 16px;
        height: 70px;
    }
}
