/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    overflow-x: hidden;
}

h1, h2 {
    font-family: 'Arial', sans-serif;
}

.background {
    background-color: #a91515;
    position: relative;
    
}
/* Hero Section */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(64, 62, 59, 0.946);
    opacity: 0.8; /* Adjust transparency if needed */
    z-index: 1;
}

.hero {
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60vh;
    width: 100vw;
    color: white;
    text-align: center;
    transition: background-image 0.5s ease-in-out;
}

.hero-content{
    position:relative;
    top: 20%;
    z-index: 10
    
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color:white
}

.cta-button {
    background-color: #f4a261;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
}

.cta-button:hover {
    background-color: #e76f51;
}

/* Sections */
.section {
    padding: 50px 20px;
    text-align: center;
}

#prize-info {
    background-color: #f8f8f8;
    padding: 50px 10px;
    position: relative;
    z-index: 10
}

#impact {
    background-color: #eaeaea;
}

.enter-btn{
    background-color: #f4a261;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    text-align: center;
    border: none;
    cursor: pointer;
}

/* Cards */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}


.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.price {
    color: #00c853;
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
}

h3 {
    font-size: 1rem;
    margin: 5px 0;
}


/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

/* Quantity Styles */
.quantity-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#quantity-slider {
    flex: 1;
    cursor: pointer;
}

.quantity-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-box button {
    background-color: #ddd;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
}

.quantity-box span {
    font-size: 18px;
    font-weight: bold;
}

.add-to-basket {
    margin-top: 15px;
    background: gray;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

a {
    color: teal;
    text-decoration: none;
}

/* Free Modal */
#freeEntryBtn{
    cursor: pointer;
    color: teal;
    margin-top: 10px;
    font-size: 10px;
    text-decoration: none;
}
.free-modal-content {
    background: white;
    padding: 20px;
    text-align: left;
    border-radius: 10px;
    max-width: 1000px;
    margin: auto;

}
  
  
#freeEntryModal{
    display: none;
    width: 100%;
    height: 100vh;
    justify-content: left;
    background-color: white;
    position: absolute;
    top: 100%;
    padding: 7%;
    font-size: 1rem;
}


/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    width: 400px;
    
}

.close {
    float: right;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.close-small{
    background-color: #0078c8;
    color: white;  
    padding: 10px;  
    border: none;
    margin-left: 45%;
    margin-top: 5%;
    display: none;
}

.close-small:hover{
    cursor: pointer;
}
/* Quantity Selection */
.quantity-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    
}

.quantity-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    
}

.quantity-box button {
    background-color: #ddd;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 18px;
    
}

.add-to-basket {
    background: green;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

/* Rules */
#rules{
    display: none;
    
}

#rules-button{
    cursor: pointer;
}

#terms-button{
    cursor: pointer;
}
.rules{
   
    width: 100%;
    justify-content: left;
    background-color: white;
    position: absolute;
    top: 100%;
    padding: 5% 15%;
    font-size: 1rem;
    
}


.rules p, li {
    color: #333;
    font-size: 16px;
    line-height: 2;
}

.rules ul {
    padding-left: 20px;
}

.rules h1 {
    text-align: center;
    margin-bottom: 30px;
}

.rules h3 {
    text-align: center;
    margin-bottom: 15px;
}

.rules h5 {
    margin-bottom: 15px;
}

/*Privacy Policy*/
.privacy{
    display: none;
    width: 100%;
    justify-content: left;
    background-color: white;
    position: absolute;
    top: 100%;
    padding: 5% 15%;
    font-size: 1rem;
    
}
#rules{
    display: none;
    
}

#rules-button{
    cursor: pointer;
}
#rules-button:hover{
    color: teal;
}
#privacy{
    display: none;   
}
#privacy-button:hover{
    color: teal;
}
#privacy-button{
    cursor: pointer;
}
#terms-button:hover{
    color: teal;
}

.privacy-policy-container {
    background-color: #fff;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.privacy-policy-container h1 {
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
}

.privacy-policy-container h2 {
    color: #444;
    margin-top: 20px;
    margin-bottom: 10px;
}

.privacy-policy-container ul {
    margin-left: 20px;
    list-style-type: disc;
}

.privacy-policy-container ul li {
    margin-bottom: 10px;
}

.privacy-policy-container p {
    margin-bottom: 15px;
}

.privacy-policy-container strong {
    /*color: #007bff;*/
}

/*How to apply*/
.how-to-apply{
    justify-content: left;
    font-size: 2rem; 
    margin-top: 6%;    
}

.how-to-apply p{
    color: yellow;
    font-size: 20px;
    line-height: 2;
    background-color: rgb(6, 6, 6);
    margin-bottom: 2px;
    font-weight: bold;
    padding-left: 5px;
}
.how-to-apply h2{
   margin-bottom: 5px;
}

/* Media Queries */
@media (min-width:320px)  { /* smartphones, iPhone, portrait 480x320 phones */ 
    .hero {
        height: 80vh;
    }

}
@media (min-width:430px)  { 
        .close-small{
        display: block;
    }
    .how-to-apply{
        width: 100%;   
    }
    /* portrait e-readers (Nook/Kindle), smaller tablets @ 600 or @ 640 wide. */ }
@media (min-width:641px)  { /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ 
    .hero {
        height: 90vh;
    }
}
@media (min-width:961px)  { /* tablet, landscape iPad, lo-res laptops ands desktops */ 
    .hero {
        height: 90vh;
    }}
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops*/
    .hero {
        height: 80vh;
    } 
    .how-to-apply{
        width: 55%;
        margin:auto ;
        margin-top: 6%;    
  
    }
}
@media (min-width:1280px) { /* hi-res laptops and desktops */ 
    .hero {
        height: 90vh;
        background-size: 90rem;
    } }