﻿/*
Theme Name: DS Brown
Theme URI:
Author: DS Brown
Author URI:
Description:
Version: 0.0.3
*/

a.create-account {
    font-weight: 600 !important;
}
.resource-item {
	max-width: 100%;
}

.resource-item img {
	max-width: 100%;
}

a.create-account {
    font-weight: 600 !important;
}

/** Styling for Terms and Conditions Page **/
body .terms-modal {
    display: none; 
    position: fixed;
    left: 0; 
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
body .terms-modal-content {
	width: 80vw;  /* 80% of the viewport width, adjust as needed */
    max-height: 80vh;  /* 80% of the viewport height, adjust as needed */
    max-width: 600px; /* Max width for larger screens */
    overflow-y: auto;
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
}


body #termsModal{
	z-index: 9999 ;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7); /* black with 70% opacity */
    z-index: 9998;  /* just below the modal */
}


/* Modal Buttons Base Style */
body #termsModal button {
    text-transform: uppercase;
    border-radius: 0px !important;
    vertical-align: middle;
    font-weight: 300 !important;
    letter-spacing: 1.5px;
    min-width: 182px;
    display: block;
    text-align: center;
    margin: 0.5em auto;
    font-size: 1.25em;
    padding: 1em;
    cursor: pointer;
}

/* Accept Button Style */
body #termsModal #acceptTerms {
    background-color: #006a53;
    color: #77f2d7;
    -webkit-font-smoothing: antialiased;
}

/* Go Back Button Style */
body #termsModal #declineTerms {
    background-color: #77f2d7; /* Inverse of Accept button for visual distinction */
    color: #006a53;
    -webkit-font-smoothing: antialiased;
}

/* Container to hold the buttons side by side */
body #termsModal .terms-button-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* spacing between buttons */
}

/* Update individual button styles */
body #termsModal button {
    display: inline-block; /* not strictly necessary with flex parent, but useful for clarity */
    margin: 0; /* remove any top and bottom margins */
}


/* Hover effect for both buttons */
body #termsModal button:hover {
    transform: scale(1.05); /* slightly enlarge the button */
    transition: transform 0.2s ease-in-out;
}

/* Accept Button Hover State */
body #termsModal #acceptTerms:hover {
    background-color: #003930; /* a darker shade of the original color */
    color: #66e2c6; /* a lighter shade of the original text color */
}

/* Go Back Button Hover State */
body #termsModal #declineTerms:hover {
    background-color: #4dc1a6; /* inverse colors from the accept button for distinction */
    color: #005042; 
}

/* Mobile and smaller devices */
@media screen and (max-width: 600px) {
    body .terms-modal-content {
        width: 95vw; /* Use more of the screen width for small devices */
    }
    
    body .terms-modal-content h2 {
        font-size: 1.5em; /* Reduce heading size */
    }
    
    body .terms-text-content p {
        font-size: 1em; /* Adjust paragraph text size */
    }

    body #termsModal button {
        font-size: 1em; /* Adjust button text size */
        padding: 0.5em; /* Adjust button padding */
    }
}

/* Tablet and medium-sized devices */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    body .terms-modal-content {
        width: 90vw;
    }
    
    body .terms-modal-content h2 {
        font-size: 1.75em; /* Adjust heading size */
    }
    
    body .terms-text-content p {
        font-size: 1.125em; /* Adjust paragraph text size */
    }

    body #termsModal button {
        font-size: 1.125em; /* Adjust button text size */
        padding: 0.75em; /* Adjust button padding */
    }
}
@media screen and (max-width: 400px) {
    body .terms-modal-content {
        width: 98vw;  /* Use nearly the full viewport width */
        max-height: 90vh; /* Make sure it doesn't take up the entire height */
        padding: 5px 10px;
    }
    
    body .terms-modal-content h2 {
        font-size: 1.4em; /* Adjust heading size */
        text-align: center; /* Centering the header */
    }
    
    body .terms-text-content p {
        font-size: 0.9em; /* Slightly reduce paragraph text size */
    }

    body #termsModal .terms-button-container{
        flex-direction: column; /* Stack buttons vertically */
        gap: 5px;
    }

    body #termsModal button {
        font-size: 0.9em; /* Slightly reduce button text size */
        padding: 2px 5px; /* Adjust button padding */
    }
    
}
