@import url("https://fonts.googleapis.com/css?family=Quicksand");

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  font-size: 14px;
  background-color: white;
}

body, input, textarea, select, button {
  font-family: 'Quicksand', sans-serif;
}

a, a:visited {
  text-decoration: none;
  color: #666;
  cursor: pointer;
}

button, input { border: none; }
button, input[type="submit"], input[type="button"] { cursor: pointer; }
input { padding: 5px; border-radius: 2px; }

/* ---- Header ---- */
.os-page-header {
  position: fixed;
  top: 0;
  z-index: 1;
  height: 50px;
  width: 100%;
  background-color: #25a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.28);
  padding: 0 20px;
}

.os-page-header a, .os-page-header a:visited { color: white; }

a.os-page-header-app-name {
  font-size: 30px;
}

/* ---- Navbar ---- */
.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.navbar a {
  display: block;
  padding: 8px 14px;
  border-radius: 4px;
  font-weight: bold;
}

.navbar button {
    background-color: Transparent;
    color: white;
    display: block;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: bold;
}

.navbar a:hover { background: rgba(255, 255, 255, 0.2); }
.navbar button:hover { background-color: rgba(255, 255, 255, 0.2); }

/* ---- Body and footer ---- */
.os-body { padding: 66px 16px 70px; }

.os-page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ddd;
  padding: 16px;
  font-size: 10px;
  text-align: center;
}

/* ---- connexion ---- */
.os-sign-in form {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  background-color: #eee;
  padding: 16px;
  width: 350px;
}

.os-sign-in input[type="text"],
.os-sign-in input[type="password"],
.os-sign-in input[type="email"] {
  width: 150px;
  display: block;
  margin: 5px auto;
}

.os-sign-in label { font-size: 12px; }

/* --- login button and form --- */

.login-dropdown {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  right: 0
}

.login-group:has(*:focus) .login-dropdown {
    display: block;
}

.login-dropdown:focus {
    display: block;
}

.login-dropdown:hover {
    display: block;
}

/* ---- preview ---- */
.ann-prev-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 200px);
  gap: 16px;
  padding: 16px;
}

.prev {
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prev:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.1);
}

.prev-title{
  margin: 4px 4px 4px;
  font-weight: bold;
  font-size: 20px;
}

.prev-price{
  margin: 4px 4px 4px;
  font-weight: bold;
  color:#25a
}

.prev-loc{
  margin: 4px 4px 4px;
  color:#888
}
