/* ================================
   BASE STYLING (Your Original)
================================ */
header {
    border: 1px solid rgb(0, 0, 0);
    margin: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap; /* ✅ allows buttons to wrap on smaller screens */
}

img {
    width: 55px;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
}

body {
    background: rgb(60, 34, 87);
}

#S {
    border: 1px solid black;
    margin: 10px;
    padding: 50px;
    font: Arial;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

#F {
    border: 1px solid black;
    padding: 15px;
    margin: 20px;
    color: white;
    text-align: center;
}

.hidden {
    display: none;
}

.nav_btn {
    font-size: 18px;
    font: Arial;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: 20px;
    padding: 10px;
    transition: 0.3s;
}

.nav_btn:hover {
    background: purple;
    color: black;
}

#starting_p {
    font-size: 25px;
    color: white;
}

#starting_p:hover {
    background: purple;
    color: black;
}

#mid_p {
    font-size: 20px;
    color: white;
    text-align: center;
    justify-content: center;
    font: Arial;
}

#mid_p:hover {
    background: purple;
    color: white;
}

#first_course_pic_css {
    width: 600px;
    border: 1px solid purple;
    max-width: 100%; /* ✅ ensures image doesn’t overflow */
}

.start_btn {
    border: 1px solid white;
    color: white;
    margin: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}

.start_btn:hover {
    background: purple;
    color: black;
}

#binary_course {
    border: 3px solid red;
}

#Hint {
    color: red;
    border: 1px solid black;
    margin: 10px;
}

#T {
    color: white;
    font: Arial;
    font-size: 25px;
    border: 3px solid red;
}

#arrow_text {
    font-size: 20px;
}

#input_answear {
    background: #800080;
    border: none;
    font-size: 18px;
}

#Submit_btn {
    border: 1px solid red;
    font-size: 15px;
}

#Submit_btn:hover {
    background: purple;
    color: black;
}

#Congrats_text {
    color: lime;
    font-size: 25px;
}

#Congrats_text:hover {
    color: green;
    background: white;
}

#create {
  width: 15px;
  border: 2px solid rgb(0, 0, 0);
  padding: 10px;
  margin: 10px;
  font-size: 25px;
  cursor: pointer;
}

#refresh_btn {
    width: 55px;
    height: 55px;
}

#USER_USERNAME {
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
    font-size: 20px;
    margin: 30px;
    padding: 10px;
}

#log_out_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 40px;
    width: 90px;
    padding: 18px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    background: rgb(60, 34, 87);
    color: white;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    margin: 10px;
    border-radius: 8px;
    transition: 0.3s;
}

#log_out_btn:hover {
    background: purple;
    color: red;
}

#disclaimer {
    color: red;
    text-decoration: underline;
}

#info {
    font-size: 15px;
}

#log_in_btn {
    border: none;
    font-size: 15px;
    color: white;
    background: rgb(60, 34, 87);
    cursor: pointer;
}

#log_in_btn:hover {
    background: purple;
    color: white;
}

.course-card {
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    margin: 10px;
    text-align: center;
}

.course-card img {
    border-radius: 10px;
    max-width: 100%;
}

/* ===================================
   ✅ RESPONSIVE ADJUSTMENTS (Phones & Tablets)
=================================== */

@media (max-width: 1024px) {
    header {
        margin: 20px;
        flex-wrap: wrap;
    }
    #first_course_pic_css {
        width: 90%;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        margin: 10px;
        text-align: center;
    }

    .nav_btn {
        font-size: 16px;
        margin: 10px;
        padding: 8px 12px;
    }

    #S {
        padding: 20px;
    }

    #starting_p {
        font-size: 20px;
    }

    #mid_p {
        font-size: 16px;
    }

    #USER_USERNAME {
        font-size: 16px;
        margin: 10px;
        padding: 8px;
    }

    #first_course_pic_css {
        width: 100%;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    header {
        gap: 10px;
    }

    .nav_btn {
        font-size: 14px;
        padding: 6px 10px;
    }

    #log_out_btn {
        width: auto;
        padding: 10px;
        font-size: 14px;
    }

    #starting_p {
        font-size: 18px;
    }

    #mid_p {
        font-size: 14px;
        padding: 10px;
    }

    #USER_USERNAME {
        font-size: 14px;
    }

    #F {
        font-size: 14px;
        margin: 10px;
    }
}
.premium-btn {

    display: inline-block;

    background: linear-gradient(45deg, #ffcc00, #ff8800);

    color: #111;

    font-weight: 800;

    font-size: 20px;

    padding: 14px 28px;

    border-radius: 12px;

    text-decoration: none;

    box-shadow: 0 0 12px rgba(255, 180, 0, 0.7),

                0 4px 0 #c47300;

    position: relative;

    transition: transform 0.15s ease, box-shadow 0.15s ease;

}

/* Hover glow + 3D lift */

.premium-btn {

    display: inline-block;

    background: linear-gradient(45deg, #7d3cff, #b26bff);

    color: white;

    font-weight: 800;

    font-size: 20px;

    padding: 14px 28px;

    border-radius: 12px;

    text-decoration: none;

    position: relative;

    overflow: hidden; /* ✅ keeps shine inside */

    box-shadow: 0 0 12px rgba(150, 60, 255, 0.7),

                0 4px 0 #5a25c8;

    transition: transform 0.15s ease, box-shadow 0.15s ease;

}

/* Hover lift */

.premium-btn:hover {

    transform: translateY(-3px);

    box-shadow: 0 0 18px rgba(170, 80, 255, 1),

                0 6px 0 #5a25c8;

}

/* Press effect */

.premium-btn:active {

    transform: translateY(1px);

    box-shadow: 0 2px 0 #5a25c8;

}

/* Shine swipe */

.premium-btn::after {

    content: "";

    position: absolute;

    top: 0;

    left: -120%;

    width: 100%;

    height: 100%;

    background: rgba(255,255,255,0.35);

    transform: skewX(-20deg);

    transition: 0.45s;

    pointer-events: none; /* ✅ prevents hover blocking */

}

.premium-btn:hover::after {

    left: 120%;

}

 