/* ===== Primary Styles ========================================================
    Author: Chi-chi Wang
    Event Management Exercise
  ==========================================================================  */

  .clearfix:after {
    content: " ";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
  }

/* Base Element Styles */
  body {
    width: 100%;
    min-width: 810px;
    min-height: 100%;
    background-color: #FFFBF5;
    z-index: 1;
  }
  p {
    margin: 0;
  }

/* Header Styles */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 690px;
    height: 100px;
    background-color: #2A2111;
    color: #956C1F;
    z-index: 2;
  }
  header h1 {
    margin: 10px 0 0 5px;
    font-family: "Arial", sans-serif;
    font-size: 40px;
  }
  header p {
    margin: 0 5px;
  }
  header a {
    text-decoration: none;
    color: #956C1F;
  }
  #addEvent {
    display: block;
    position: absolute;
    right: 15px;
    top: 50px;
    background-color: #A3906D;
    border: 1px solid #956C1F;
    width: 125px;
    height: 36px;
    color: #2A2111;
    font-size: 16px;
    font-weight: bold;
    border-radius: 18px;
    margin: 0 auto;
  }

/* Event List Styles */
  #eventlist {
    margin-top: 100px;
    width: 100%;
  }
  .eventBlock {
    width: 100%;
  }
  .eventBlock h2 {
    cursor: pointer;
    height: 36px;
    background-color: #A3906D;
    color: #180F01;
    margin: 0;
    padding-left: 15px;
    padding-top: 6px;
    border-bottom: 1px solid #2A2111;
  }
  .description {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 6px;
    border-bottom: 1px solid #2A2111;
  }
  .description h3 {
    margin: 0;
    font-size: 15px;
  }
  .description p {
    font-size: 14px;
  }
  .description p.details {
    margin-bottom: 15px;
  }
  .description button.editEvent {
    display: block;
    background-color: #A3906D;
    border: 1px solid #956C1F;
    width: 95px;
    height: 36px;
    color: #FFFBF5;
    font-size: 18px;
    border-radius: 18px;
    margin-left: 25%;
    float: left;
  }
  .description button.delete {
    display: block;
    background-color: #B80101;
    border: 1px solid #880202;
    width: 95px;
    height: 36px;
    color: #FFFBF5;
    font-size: 18px;
    border-radius: 18px;
    margin-right: 25%;
    float: right;
  }

/* Add Event Form Styles */
  #addForm,
  #deleteConfirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 690px;
    height: 100%;
    background-color: rgba(45, 45, 45, 0.7);
    z-index: 10;
  }
  #addForm form,
  #deleteConfirm form {
    width: 500px;
    height: 285px;
    color: #956C1F;
    background-color: #FFFBF5;
    margin: 15px auto;
    padding: 5px;
    border-radius: 5px;
  }
  #addForm form h2,
  #deleteConfirm form h2 {
    margin: 5px 0;
    border-bottom: 1px solid #956C1F;
  }
  #addForm form label {
    display: block;
    width: 100%;
    margin: 8px 0;
  }
  #addForm form label span {
    float: left;
    width: 135px;
  }
  #addForm form label input { width: 215px; }
  #addForm form label input:focus,
  #addForm form label textarea:focus { outline: 2px solid #956C1F; }
  #addForm form label textarea {
    resize: none;
    width: 98%;
  }
  #addForm button#cancelForm,
  #deleteConfirm button#cancelDelete {
    display: block;
    background-color: #B80101;
    border: 1px solid #880202;
    width: 95px;
    height: 30px;
    color: #FFFBF5;
    font-size: 15px;
    border-radius: 15px;
    margin-top: 15px;
    margin-left: 5px;
    float: left;
  }
  #addForm button#submitForm,
  #deleteConfirm button#yesDelete {
    display: block;
    background-color: #956C1F;
    border: 1px solid #2A2111;
    width: 95px;
    height: 30px;
    color: #FFFBF5;
    font-size: 15px;
    border-radius: 15px;
    margin-top: 15px;
    margin-right: 5px;
    float: right;
  }
  .hide { display: none; }

/* Delete Event Confirm Styles */
  #deleteConfirm form { margin-top: 70px; height: 150px; }
  #deleteConfirm form h2 { text-align: center; }
  #deleteConfirm form p { margin-top: 20px; text-align: center; }
  #deleteConfirm button#cancelDelete {
    margin-left: 25%;
    background-color: #956C1F;
    border: 1px solid #2A2111;
  }
  #deleteConfirm button#yesDelete {
    margin-right: 25%;
    background-color: #B80101;
    border: 1px solid #880202;
  }
  #deleteConfirm button#cancelDelete,
  #deleteConfirm button#yesDelete { margin-top: 25px; }