/* Reset some base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
body {
    font-family: Arial, sans-serif;
    background: url('img/bak.jpg') no-repeat center center fixed;
    background-size: cover;
    padding: 20px;
    color: #333333;
    }
h1,
h2,
h3,
h4,
h5 {
    text-align: center;
    font-family: Arial, sans-serif;
    color: white;
    margin: auto;
    width: 50%;
    text-shadow: 0 0 3px #FF0000, 0 0 5px #0000FF;
}
p {
    font-family: Arial, sans-serif;
    color: yellow;
    text-shadow: 0 0 3px #FF0000, 0 0 5px #0000FF;
}
/* Card layout */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card {
    flex: 1 1 200px;
    padding: 20px;
    border-radius: 8px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card.blue { background-color: rgba(0, 123, 255, 0.8); }
.card.teal { background-color: rgba(32, 201, 151, 0.8); }
.card.green { background-color: rgba(40, 167, 69, 0.8); }
.card.red { background-color: rgba(220, 53, 69, 0.8); }

/* Button container */
*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
$openSans: 'Open Sans', Helvetica, Arial, sans-serif;
body {
  background: #333;
  font-family: $openSans;
}

.buttons,
.submit {
  margin-top: 50px;
  text-align: center;
  border-radius:30px;
}

$cyan: #0505A9;
$dark: #FFFFFF;
$borderW: 2px;

.blob-btn {
  $numOfBlobs: 4;
  z-index: 1;
  position: relative;
  padding: 20px 46px;
  margin-bottom: 30px;
  text-align: center;
  text-transform: uppercase;
  color: $cyan;
  font-size: 16px;
  font-weight: bold;
  background-color: transparent;
  outline: none;
  border: none;
  transition: color 0.5s;
  cursor: pointer;
  border-radius:30px;
  
  &:before {
    content: "";
    z-index: 1;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: $borderW solid $cyan;
    border-radius:30px;
  }
  
  &:after {
    content: "";
    z-index: -2;
    position: absolute;
    left: $borderW*1.5;
    top: $borderW*1.5;
    width: 100%;
    height: 100%;

    transition: all 0.3s 0.2s;
    border-radius:30px;
  }
  
  &:hover {
    color: $dark;
    border-radius:30px;
    
    &:after {
      transition: all 0.3s;
      left: 0;
      top: 0;
      border-radius:30px;
    }
  }
  
  &__inner {
    z-index: -1;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius:30px;
    background:#ffffff;
  }
  
  // additional container created, because in FF blobs are breaking overflow:hidden of element with svg gooey filter
  &__blobs {
    position: relative;
    display: block;
    height: 100%;
    filter: url('#goo');
  }
  
  &__blob {
    position: absolute;
    top: $borderW;
    width: 100% / $numOfBlobs;
    height: 100%;
    background: $cyan;
    border-radius: 100%;
    transform: translate3d(0,150%,0) scale(1.7);
    transition: transform 0.45s;
    
    @supports(filter: url('#goo')) {
      transform: translate3d(0,150%,0) scale(1.4);
    }
    
    @for $i from 1 through $numOfBlobs {
      &:nth-child(#{$i}) {
        left: ($i - 1) * (120% / $numOfBlobs);
        transition-delay: ($i - 1) * 0.08s;
      }
    }
    
    .blob-btn:hover & {
      transform: translateZ(0) scale(1.7);
      
      @supports(filter: url('#goo')) {
        transform: translateZ(0) scale(1.4);
      }
    }
  }
  
}
/* Reusable button style */
.btn {
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    margin-top: 50px;
    text-align: center;
    border-radius:30px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

/* Menu button */
.menu button {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    border-radius: 6px;
    overflow: hidden;
}

th,
td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

/* Form styles */
form {
    width: 100%;
    max-width: 600px;
    margin: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
}

/* Input styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #ffffff;
    color: #333333;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease-in-out;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007BFF;
}

/* Responsive layout */
@media screen and (max-width: 768px) {
    .cards {
        flex-direction: column;
    }

    form {
        padding: 15px;
    }

    .card {
        flex: 1 1 100%;
    }
}
