@import url(./font/stylesheet.css);

:root {
    --primary-color: #822727;
    --secondary-color: #D3A774;
    --background-color: #241616;
    --text-color: #E9C5AA;
    --text-color-80: #e9c5aaad;
    --progress-bg: #e9c5aa30;
}

* {
    font-family: "JuliaMono", monospace !important;
    text-transform: uppercase;
    font-size: .95rem;
}

html {
    height: auto;
    scrollbar-width: none;
}
  
body {
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    width: 100%;
}

.section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
  
.container {
    width: 100%;
    padding: 2rem;
    max-width: 500px;
    box-sizing: border-box;
}

.explaining {
    padding: 5rem 2rem 2rem;
    height: fit-content;
    background-color: var(--text-color);
}

.explaining * {
    color: var(--background-color) !important;
}

.explain-title {
    text-decoration: underline;
    margin-bottom: 1rem;
}

.explain {
    text-transform: none;
    margin-bottom: 3rem;
    font-weight: 400;
}
  
.header {
    text-align: center;
    margin-bottom: 5rem;
}

.logo {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
}

.progress {
    margin-top: 4rem;
}

.progress.ceil {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    background-color: var(--background-color);
    padding: 1rem 0;
}

.progress.ceil > .progress-section {
    padding: 0 2rem;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}
  
.progress-section {
    position: sticky;
    top: 0;  /* 상단에 고정 */
    z-index: 10;
    padding-top: 1rem;
}
  
.progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.progress-bar {
      position: relative;
      width: 100%;
      height: 5px;
      background-color: var(--progress-bg);
      overflow: hidden;
      --progress-value: 0;
}
    
.progress-bar::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: calc(var(--progress-value) * 1%);
      background-color: var(--text-color);
      transition: width 0.3s ease;
}
    
progress {
      width: 100%;
      height: 100%;
      display: none;
}
  
progress::-webkit-progress-bar {
    background-color: var(--progress-bg);
}
  
progress::-webkit-progress-value {
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
  
progress::-moz-progress-bar {
    background-color: var(--primary-color);
}
  
.action-buttons {
    display: flex;
    justify-content: center;
}
  
button {
    background-color: var(--progress-bg);
    color: var(--text-color);
    border: none;
    padding: 0.55rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: fit-content;
}
  
button:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}
  
button:disabled {
    background-color: var(--progress-bg);
    color: var(--progress-bg);
    cursor: not-allowed;
}
  
.speed-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.result-container {
    margin-bottom: 3rem;
}
  
.result-card, .instant-speed-container, .header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-card * {
    font-size: 1rem;
}

.result-card, .instant-speed-container {
    border: solid;
    border-width: 1px 0 0 0;
    padding: 5px 1px;
    border-color: var(--progress-bg);
}
  
.instant-speed-label {
    font-size: 0.875rem;
    color: var(--text-color-80);
}
  
.instant-speed {
    font-size: 0.875rem;
    color: var(--text-color-80);
}

.result-value {
    color: var(--secondary-color);
    font-weight: 600;
}
  
@media (max-width: 640px) {
}