@font-face {
    font-family: 'DMSerifDisplay-Regular';
    src: url('/fonts/DMSerifDisplay-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'EduTAS';
    src: url('/fonts/EduTASBeginner-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BodoniModa_Regular';
    src: url('/fonts/BodoniModa_72pt-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BodoniModa_SemiBold';
    src: url('/fonts/BodoniModa_72pt-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BodoniModa_SemiBoldItalic';
    src: url('/fonts/BodoniModa_72pt-SemiBoldItalic.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Caveat-Regular';
    src: url('/fonts/Caveat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'BodoniModa_Regular', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: url('IMG_5428_update3.jpg') no-repeat center center  fixed; /* Set your background image */
    background-size: 100%;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.container-welcome {
    text-align: left;
    padding: 20px;
    margin-top:-60px !important;
    position: relative;
    z-index: 1;
    max-width:450px;
    color: #252525;
}

.container {
    text-align: left;
    padding: 20px;
    margin-top:-60px;
    position: relative;
    z-index: 1;
    max-width:450px;
    color: #252525;
}

h1 {
    font-size: 5em;
    margin-bottom:0;
}

h2 {
    font-size: 1.5em;
    margin-bottom:20px;
}

h3 {
    font-size:2.3em;
    margin: -20px 0 20px;
    font-family: 'BodoniModa_SemiBoldItalic';
}

h4 {
    font-size:1.3em;
    margin: 0px 0 0px;
    font-family: 'BodoniModa_SemiBoldItalic';
    text-transform: uppercase;
    text-decoration: underline;
}

h5 {
    font-size:1.3em;
    margin: -20px 0 -20px;
    font-family: 'BodoniModa_SemiBoldItalic';
}

.answer {
    font-size:1.5em;
}

#answer-one, #answer-two {
    font-size:0.9em;
    width:60px;
    font-family: 'BodoniModa_SemiBoldItalic';
    background-color:rgba(255,255,255,0.3);
    border-radius:10px;
    padding:0px 10px;
    text-transform: lowercase;
}

.wisdom {
    font-size: 2em;
    margin-bottom: 0px;
    font-family:'BodoniModa_Regular';
}

.wisdom-font {
    font-family: 'Caveat-Regular' !important;
    margin:10px 0 20px;
}

.wisdom-category {
    font-family: 'Caveat-Regular' !important;
    border:1px solid #252525;
    border-radius: 10px;
    padding:1px 15px;
    font-size:0.7em !important;
    font-style:normal;
    background-color:rgba(255,255,255,0.2);
}

input {
    background:none;
    border: none;
    border-bottom: 2px solid #252525;
    witdh:800px;
}

button {
    padding: 10px 20px;
    margin-top:20px;
    border: 1px solid #3f3f3f;
    color: #3f3f3f;
    border-radius: 5px;
    cursor: pointer;
    font-family:'BodoniModa_SemiBoldItalic';
    font-size:1em;
}

button:hover {
    background-color: #cccccc;
}

.error-container {
    max-width: 400px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffdddd;
    border-left: 6px solid #f44336;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    position:fixed;
    bottom:10px;
    left:0;
}

.error-message {
    margin: 0;
    padding: 0;
    color: #d8000c;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.btn-reset {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
    font-family: Arial, sans-serif;
}

.btn-reset:hover {
    background-color: #c12e2a;
}

/*.error-message {
    color: #971f1f;
    margin-top: 10px;
    position:fixed;
    font-size:1em;
    bottom:0;
    padding:20px;
    background:white;
    left:0;
    font-family:'BodoniModa_SemiBoldItalic';
}

.btn-reset {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
}
.btn-reset:hover {
    background-color: #0056b3;
}*/

@media (max-width: 1200px) {
    body {
        background-size: 300% !important;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 250%;
    }

    h2 {
        font-size: 130%;
    }

    h3 {
        font-size: 150% !important;
        margin-top:-10px;
    }

    h4 {
        font-size: 150%;
    }

    h4 {
        font-size: 200%;
    }

    label {
        font-size: 1em;
    }

    input {
        font-size: 0.9em;
    }

    button {
        padding: 8px 16px;
        background-color:white;
    }

    .wisdom {
        font-size: 200% !important;
    }
}

@media (max-width: 1080px) {
    body {
        background-size: cover !important;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 250%;
    }

    h2 {
        font-size: 130%;
    }

    h3 {
        font-size: 150% !important;
        margin-top:-10px;
    }

    h4 {
        font-size: 150%;
    }

    h4 {
        font-size: 200%;
    }

    label {
        font-size: 1em;
    }

    input {
        font-size: 0.9em;
    }

    button {
        padding: 8px 16px;
        background-color:white;
    }

    .wisdom {
        font-size: 200% !important;
    }
}

/* Styles for devices with a maximum width of 768px (tablets and smaller) */
@media (max-width: 768px) {
    body {
        background-size: 325% !important;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 200%;
    }

    h2 {
        font-size: 100%;
    }

    h3 {
        font-size: 120% !important;
        margin-top:-10px;
    }

    h4 {
        font-size: 120%;
    }

    h4 {
        font-size: 150%;
    }

    label {
        font-size: 1em;
    }

    input {
        font-size: 0.9em;
    }

    button {
        padding: 8px 16px;
        background-color:white;
    }

    .wisdom {
        font-size: 150%;
    }
}

/* Styles for devices with a maximum width of 480px (phones) */
@media (max-width: 480px) {
    body {
        background-size: 375% !important;
    }

    .container {
        padding: 10px;
        margin-top:-15px;
        width: 70%;
    }

    .container-welcome {
        padding: 10px;
        margin-top:0px;
        width: 70%;
    }

    h1 {
        font-size: 2.3em;
        line-height:2em;
        margin-bottom:0;
        padding-bottom:0;
    }

    h2 {
        font-size: 100%;
    }

    h3 {
        font-size: 135%;
        margin-bottom:10px;
        line-height:120%;
    }

    h4 {
        font-size: 100%;
    }

    h5 {
        font-size:130%;
        margin: 0px 0 -10px;
        font-family: 'BodoniModa_SemiBoldItalic';
    }

    label {
        font-size: 95%;
    }

    input {
        font-size: 95%;
    }

    button {
        padding: 6px 12px;
        margin-top:20px !important;
        border: 1px solid #3f3f3f;
        color: #3f3f3f;
        background-color:white;
        border-radius: 5px;
        cursor: pointer;
        font-family:'BodoniModa_SemiBoldItalic';
        font-size:0.8em;
        margin-top:0;
    }

    #random-wisdom-button {
        padding: 6px 12px;
        border: 1px solid #3f3f3f;
        color: #3f3f3f;
        background-color: white;
        border-radius: 5px;
        cursor: pointer;
        font-family: 'BodoniModa_SemiBoldItalic';
        font-size: 1em;
        margin-top: 0 !important;
    }

    .answer {
        font-size:95%;
    }

    .wisdom {
        font-size: 130%;

    }
}