/* =========================
   assets/css/style.css
   Mobile First Responsive
========================= */

@font-face {
  font-family: 'Samim';
  src: url('../../fonts/Samim.eot');
  src: url('../../fonts/Samim.eot?#iefix') format('embedded-opentype'),
       url('../../fonts/Samim.woff') format('woff'),
       url('../../fonts/Samim.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Samim', Tahoma, sans-serif;
  direction: rtl;
  text-align: center;

  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 15px;

  background: url('../../images/back.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #20BEC6;
}

/* Main Container */
.container {
  width: 100%;
  max-width: 500px;

  padding: 25px 18px;

  background: rgba(255,255,255,0.96);

  border-radius: 16px;

  box-shadow: 0 5px 20px rgba(0,0,0,0.15);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Title */
.app-title {
  font-family: 'Samim', Tahoma, sans-serif;

  color: #333;

  font-size: 1.4rem;

  line-height: 2;

  margin-bottom: 30px;
}

/* Pulse Button */
.pulse-btn {
  font-family: 'Samim', Tahoma, sans-serif;

  width: 130px;
  height: 130px;

  border: none;
  border-radius: 50%;

  background-color: #ff4d4d;

  color: #fff;

  font-size: 1rem;
  font-weight: bold;

  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;

  outline: none;

  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);

  box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);

  animation: pulse-animation 2s infinite cubic-bezier(0.66, 0, 0, 1);

  transition: all 0.2s ease;
}

.pulse-btn:hover {
  background-color: #ff3d3d;
}

.pulse-btn:active {
  transform: scale(0.96);
}

.pulse-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  animation: none;
  box-shadow: none;
}

/* Pulse Animation */
@keyframes pulse-animation {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 22px rgba(255, 77, 77, 0);
  }

  100% {
    transform: scale(0.92);
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
  }
}

/* Status Text */
.status-message {
  font-family: 'Samim', Tahoma, sans-serif;

  margin-top: 25px;

  font-size: 0.95rem;

  color: #555;

  line-height: 1.8;
}

/* =========================
   Tablet
========================= */
@media (min-width: 768px) {

  .container {
    padding: 40px;
  }

  .app-title {
    font-size: 2rem;
    margin-bottom: 45px;
  }

  .pulse-btn {
    width: 190px;
    height: 190px;
    font-size: 1.5rem;
  }

  .status-message {
    font-size: 1.1rem;
  }
}

/* =========================
   Large Desktop
========================= */
@media (min-width: 1200px) {

  .container {
    max-width: 600px;
  }

  .pulse-btn {
    width: 220px;
    height: 220px;
    font-size: 1.7rem;
  }
}
