style.css

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #222222;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.343 4-4s-1.343-4-4-4-4 1.343-4 4 1.343 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23FFD55D' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

* {
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 600px;
    padding: 35px;
    margin: 0;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.container:hover {
    box-shadow: 0 15px 50px rgba(255, 77, 60, 0.15);
}

.header {
    text-align: center;
    margin-bottom: 32px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 6px;
    color: #FF4D3C;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 18px;
    color: #666;
    letter-spacing: -0.01em;
}

form {
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

/* Roast Level label positioning */
.form-group:nth-child(3) label {
    margin-top: 0;
}

input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 1px solid #eee;
    border-radius: 16px;
    background-color: #f9f9f9;
    transition: all 0.2s;
    box-sizing: border-box;
    color: #333;
}

input[type="text"]::placeholder {
    color: #aaa;
}

input[type="text"]:focus {
    outline: none;
    border-color: #FF4D3C;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 77, 60, 0.1);
}

.radio-group {
    display: flex;
    position: relative;
    width: 100%;
    background-color: #f5f5f5;
    border-radius: 12px;
    padding: 4px;
    margin-top: 8px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-option {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s;
    flex: 1;
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
}

.radio-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

/* Slider styling */
.slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc(33.333% - 8px);
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 0;
}

/* Slider positions */
#light:checked ~ .slider {
    left: 4px;
    width: calc(33.333% - 8px);
}

#medium:checked ~ .slider {
    left: calc(33.333% + 0px);
    width: calc(33.333% - 8px);
}

#savage:checked ~ .slider {
    left: calc(66.666% - 4px);
    width: calc(33.333% - 8px);
}

/* Selected text styling */
#light:checked ~ .radio-option:nth-child(4) label,
#medium:checked ~ .radio-option:nth-child(5) label,
#savage:checked ~ .radio-option:nth-child(6) label {
    color: #FF4D3C;
    font-weight: 600;
}

button {
    display: block;
    width: 100%;
    padding: 14px;
    background-color: #FF4D3C;
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 28px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 77, 60, 0.2);
}

button:hover {
    background-color: #FF7A39;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 60, 0.4);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 77, 60, 0.3);
}

button:disabled {
    background-color: #FFBDB6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(255, 77, 60, 0.1);
}

/* Roast Output Styling */
#roast-output {
    margin-top: 40px;
    transition: all 0.3s ease;
}

#roast-output.hidden {
    display: none;
}

.roast-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 24px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

.roast-header {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roast-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 8px rgba(255, 77, 60, 0.2);
}

.roast-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FF4D3C;
    margin: 0;
}

#roast-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
    padding: 6px 0;
    font-weight: 500;
}

.roast-actions {
    display: flex;
    justify-content: center;
}

/* Download button styling */
.download-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FF4D3C;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(255, 77, 60, 0.3);
  cursor: pointer;
}

.download-button svg {
  margin-right: 8px;
}

.download-button:hover {
  background-color: #FF7A39;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 77, 60, 0.4);
}

.download-button:active {
  transform: translateY(0);
}

.download-button:disabled {
  background-color: #ffbdb6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 4px rgba(255, 77, 60, 0.2);
}

/* Loading animation */
.loading {
    display: flex;
    justify-content: center;
    font-weight: 500;
    color: #666;
}

.loading span {
    animation: loadingDots 1.4s infinite;
    opacity: 0;
    margin-left: 4px;
}

.loading span:nth-child(1) {
    animation-delay: 0s;
}

.loading span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDots {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header h2 {
        font-size: 1.1rem;
    }
    
    .roast-card {
        padding: 12px;
        margin: 10px auto;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .radio-group {
        width: 100%;
        max-width: 100%;
    }
    
    #roast-text {
        font-size: 18px;
    }
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(255, 77, 60, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.radio-option input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.radio-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
}

.radio-option:has(input:checked) label {
    color: #FF4D3C;
    font-weight: 600;
}

.radio-option:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Remove hover effect for option with slider under it */
#light:checked ~ .radio-option:nth-child(4):hover,
#medium:checked ~ .radio-option:nth-child(5):hover,
#savage:checked ~ .radio-option:nth-child(6):hover {
    background-color: transparent;
}

/* Sharing Modal */
.sharing-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.sharing-modal-content {
  background-color: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
}

.sharing-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.sharing-modal-header h3 {
  margin: 0;
  color: #FF4D3C;
  font-weight: 700;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-modal:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

.sharing-modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.sharing-instructions {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.sharing-steps {
  margin-left: 20px;
  padding-left: 10px;
  margin-bottom: 15px;
  color: #666;
}

.sharing-steps li {
  margin-bottom: 8px;
}

.sharing-image-preview {
  margin: 15px 0 5px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sharing-image-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.sharing-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.twitter-share-button {
  display: inline-flex;
  align-items: center;
  background-color: #1DA1F2;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 6px rgba(29, 161, 242, 0.2);
}

.twitter-share-button:hover {
  background-color: #0c85d0;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(29, 161, 242, 0.3);
}

.twitter-share-button svg {
  margin-right: 8px;
}

/* Loading dots animation */
.loading-dots {
  display: inline-block;
  position: relative;
}

.loading-dots span {
  animation: loadingDots 1.4s infinite ease-in-out both;
  opacity: 0.7;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loadingDots {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slideIn {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Sharing options */
.sharing-options {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

.sharing-option {
  flex: 1;
  position: relative;
}

.copy-text-btn,
.copy-image-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 15px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-text-btn:hover,
.copy-image-btn:hover {
  background-color: #eee;
  border-color: #ccc;
  transform: translateY(-2px);
}

.copy-text-btn svg,
.copy-image-btn svg {
  margin-right: 8px;
}

.copy-success {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.copy-success.hidden {
  opacity: 0;
}

/* Add responsive classes for the sharing options */
@media (max-width: 460px) {
  .sharing-options {
    flex-direction: column;
    gap: 10px;
  }
}

/* Payment Modal Styles */
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.payment-modal-content {
  background-color: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
}

.payment-modal-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
  position: relative;
}

.payment-modal-header h2 {
  margin: 10px 0;
  color: #FF4D3C;
  font-weight: 700;
  font-size: 1.5rem;
}

.modal-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.close-modal:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #333;
}

.payment-modal-body {
  padding: 20px;
  text-align: center;
}

.payment-modal-body p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #333;
}

.payment-benefits {
  margin: 20px 0;
  padding: 0 20px;
  text-align: left;
  list-style-type: none;
}

.payment-benefits li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #555;
}

.payment-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: bold;
}

.payment-button {
  display: inline-block;
  background-color: #FF4D3C;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(255, 77, 60, 0.3);
  cursor: pointer;
}

.payment-button:hover {
  background-color: #FF7A39;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 77, 60, 0.4);
}

/* Toast message styles */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #4CAF50;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 500;
  z-index: 1100;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hide any development/test buttons */
a[href="#"][onclick*="clearStorage"],
a[href="?unlocked=true"],
.dev-tools,
.dev-link {
  display: none !important;
}

