/*grundlæggende styling*/
body {
    margin: 0;
    padding: 0;
    background-color: #05290a;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    font-family: "Poppins", sans-serif;
}

/* TITEL – FIXED: centreret korrekt */
.title {
    position: absolute;
    top: 40px;
    left: 50%;                  /* ny */
    transform: translateX(-50%); /* ny */
    color: #f3f17e;
    font-size: 3rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

/* SUBTITLE – FIXED: centreret korrekt */
.subtitle {
    position: absolute;
    top: 95px;
    left: 50%;                   /* ny */
    transform: translateX(-50%); /* ny */
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0;
}

.wrapper {
    position: relative;
}

/*canvas hjulet*/
#wheel {
    border-radius: 50%;
    border: 12px solid #eee;
    background-color: #fff;
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.83, 1.03);
}

/* SPIN KNAP */
#spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background-color: #ffffff;
    border: 5px solid #ccc;
    font-weight: bold;
    font-size: 20px;
    color: #333;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.arrow {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    
    width: 0;
    height: 0;

    /* Ny: pilen peger NEDAD */
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #fff; /* <-- ændret */

    z-index: 20;
    pointer-events: none;
}

/*resultat popup*/
.popup {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 50;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: #fff;
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    max-width: 350px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    animation: popIn 0.3s ease;
}

.popup-content h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.5rem;
}

.popup-content p {
    color: #444;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.4;
}

#close-popup {
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}

#close-popup:hover {
    background: #43a047;
}

button {
    width: 100%;
    padding: 12px;
    background: #f3f17e;
    border: none;
    color: rgb(0, 0, 0);
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}
button:hover {
    background: #ded355;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

/*animationer*/
@keyframes fadeIn { 
    from { opacity: 0; } 
    to { opacity: 1; } 
}
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}



  