/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}


/* Page Layout */

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
    padding: 20px 0;
}

/* Container fixed at top right */
.top-right-links {
  position: fixed;
  top: 40px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

/* GitHub button */
.github-btn {
  background: #24292e;
  color: white;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

.github-btn:hover {
  background: #000;
  transform: translateY(-2px);
}

/* Blog card */
.blog-card {
  width: 220px;
  height: 140px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: 0.3s ease;
}

.blog-card img {
  width: 100%;
  height: 140px;        /* fixed height */
  object-fit: cover;    /* fills container properly */
  object-position: center;
  display: block;
}

.blog-info {
  padding: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}


/* Main Container */

main {
    width: 95vw;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a7b 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}


/* Promise Blocks */

.promise-block {
    background: linear-gradient(145deg, #1a2332 0%, #243447 100%);
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promise-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}


/* Section Titles */

.promise-block h3 {
    font-size: 24px;
    color: #f1f5f9;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}


/* Characters Row */

.characters {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
}


/* Character Cards */

.character {
    background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    flex: 1;
    min-width: 280px;
    min-height: 170px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.character:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}


/* Character Name */

.character span {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}


/* Radio Section */

.character label {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    transition: opacity 0.2s;
}

.character label:hover {
    opacity: 0.9;
}

.character input[type="radio"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #fbbf24;
}


/* Delay Dropdown */

select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    outline: none;
}

select:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

select:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2);
}

select option {
    background: #1e293b;
    color: white;
}


/* Value Text */

.character p {
    margin-top: 5px;
    font-size: 14px;
    opacity: 0.95;
    line-height: 1.4;
}


/* Run Button */

.runBtn {
    margin-top: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.runBtn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.runBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}


/* Result Box */

.resultBox {
    margin-top: 15px;
    padding: 20px;
    border-radius: 10px;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.resultBox h4 {
    color: #f1f5f9;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.resultBox span {
    font-weight: 600;
    color: #93c5fd;
    text-shadow: 0 0 10px rgba(147, 197, 253, 0.4);
}


/* Scrollbar Styling */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}


/* Responsive Design */

@media (max-width: 768px) {
    .characters {
        flex-direction: column;
    }
    .character {
        width: 100%;
    }
    main {
        padding: 20px;
    }
    .promise-block {
        padding: 20px;
    }
}