* {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk";
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--rr-bg, linear-gradient(to bottom, #ffffff, #0099cc));
  display: flex;
  flex-direction: column;
}

.opening-screen {
  flex: 1;
  height: 100%;
  width: 100%;
  background: transparent;
  z-index: 100;
}

.opening-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-bottom: 50px;
}

.create-group {
  width: 80px;
  height: 25px;
  margin-top: 5px;
  outline: 0;
  background: #000;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
  box-sizing: border-box;
  color: white;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  overflow: hidden;
  cursor: pointer;
}

.create-group .animation {
  border-radius: 100%;
  animation: ripple 2.5s linear infinite;
}

.saved-groups-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin-top: 40px;
}

.saved-groups-row {
  display: flex;
  justify-content: center;
}

.saved-groups {
  font-size: 36px;
}

.saved-groups-list .ph-trash-simple {
  position: relative;
  left: 20px;
  top: 2px;
}

.saved-groups-message {
  margin-left: 5px;
}

.saved-groups-list {
  list-style: none;
  margin-left: 5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.saved-groups-list li {
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, background 120ms ease, opacity 120ms ease;
}

.saved-groups-list li.saved-group {
  display: inline-block;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}

/* Create Group Functionality */
.create-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  height: auto;
  max-width: 680px;
  margin-top: 50px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  --form-width: 70%;
}

.field {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 16px;
  gap: 10px;
}

input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: none;
  box-shadow: none;
}

.group-name-label {
  padding-top: 10px;
  margin-bottom: 10px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: black;
}

.group-name {
  margin-left: 10px;
  margin-right: 30px;
}

.members {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.members-row {
  display: flex;
  align-items: center;
  align-self: start;
  margin-left: 10px;
  gap: 4px;
}

.members-row:first-child .ph-user-minus {
  display: none;
}

.group-name,
.member-name {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid black;
  background: transparent;
  font-size: 16px;
}

.group-name::placeholder,
.member-name::placeholder {
  font-size: 12px;
  color: black;
}

.ph-user-minus {
  font-size: 20px;
  cursor: pointer;
}

.member-list {
  list-style: none;
  margin-top: 8px;
}

.member-list li {
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ph-user-plus{
  align-self: start;
  font-size: 20px;
  margin-left: 10px;
  margin-top: -6px;
  cursor: pointer;
}

.creating-group-button-container {
  display: flex;
  gap: 10px;
}

.finish-creating-group,
.close-creating-group {
  width: 80px;
  outline: 0;
  background: black;
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 30px;
  margin-bottom: 20px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  overflow: hidden;
  cursor: pointer;
}

.select-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  height: auto;
  max-width: 680px;
  margin-top: 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  --form-width: 70%;
}

.select-panel .field {
  width: 100%;
}

#group-select {
  width: var(--form-width);
  align-self: center;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid black;
  background: transparent;
  font-size: 12px;
}

.load-group {
  width: 100px;
  outline: 0;
  background: black;
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 20px;
  margin-bottom: 20px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  cursor: pointer;
}

/* App Functionality */
.title-wrapper {
  top: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 200;
  margin-top: 70px;
}

.title-container {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.header {
  font-size: 50px;
}

.ph-barbell {
  font-size: 50px;
  margin-top: 10px;
}

.ph-palette {
  position: absolute;
  top: 20px;
  right: 20px;
  color: black;
  font-size: 28px;
}

a {
  text-decoration: none;
}

.date {
  color: black;
  font-size: 20px;
  pointer-events: auto;
}

@keyframes ripple {
  0% {
    box-shadow: 
      0 0 0 0 rgba(255, 255, 255, 0.1), 
      0 0 0 20px rgba(255, 255, 255, 0.1), 
      0 0 0 40px rgba(255, 255, 255, 0.1), 
      0 0 0 60px rgba(255, 255, 255, 0.1);
  }

  100% {
    box-shadow: 
      0 0 0 20px rgba(255, 255, 255, 0.1), 
      0 0 0 40px rgba(255, 255, 255, 0.1), 
      0 0 0 60px rgba(255, 255, 255, 0.1), 
      0 0 0 80px rgba(255, 255, 255, 0);
  }
}

@keyframes bump {
  from { transform: translateY(8px); opacity: .6; }
  to   { transform: translateY(0);   opacity: 1; }
}

.corner-image {
  display: none;
  position: fixed;
  bottom: 0px;
  right: -20px;
  width: 150px;
  height: auto;
  z-index: 100;
}

.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 16px;
}

.site-footer a {
  color: black;
  opacity: 0.75;
}

/* iOS-Specific Styles */
.platform-ios .title-wrapper {
  margin-top: 100px;
}

.platform-ios .ph-palette {
  top: 55px;
}