dark pattern: random sweepstakes

by jshacker

HTML

<div class="container">
  <div class="warning">
    <div class="warning-heading">Great news!</div>
    <div class="warning-sub-heading">
      You are the 12345th visitor of the day,
    </div>
  </div>
  <div class="claim">
    <div class="claim-heading">How to claim your gifts?</div>
    <div class="claim-sub-heading">
      You need to install this software for accepting prize money of
      <span class="money">$123.45</span>.
    </div>
  </div>
  <div class="buttons">
    <button class="no btn">no</button>
    <button class="download btn">download</button>
  </div>
</div>

CSS

.container {
  width: 50%;
  margin: 50px auto;
  text-align: center;
  padding: 50px;
  border: 1px dashed grey;
  outline: 1px solid black;
  outline-offset: 10px;
  color: white;
  background-color: grey;
}

.warning {
  background-color: green;
  padding: 20px;
}

.warning-heading {
  text-shadow: 0 0 2px black;
  font-size: 2em;
}

.warning-sub-heading {
  margin: 30px auto 0;
  padding: 20px;
  color: black;
  background-color: white;
  border-radius: 4px;
}

.claim {
  padding: 30px;
}

.claim-heading {
  margin: 20px;
  font-size: 1.4em;
}
.money {
  padding: 0 10px;
  color: black;
  background-color: yellow;
  border-radius: 8px;
}
.buttons {
  padding: 10px;
}
.btn {
  border: none;
  padding: 20px;
  font-size: 1.1em;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 1px black;
  font-family: serif;
  cursor: pointer;
}

.no.btn {
  background: #ee3333;
}

.download.btn {
  background-color: green;
  text-transform: uppercase;
  width: 80%;
}