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

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-VariableFont_wdth,wght.ttf') format('truetype');
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
}

.background {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.title {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Pattaya', cursive;
    font-size: 60pt;
    color: #fdf1ca;
    z-index: 2;
    margin: 0;
    line-height: 1;text-align:center;
}

.main-content {
    position: absolute;
    top: 160px; /* Adjusted to ensure space below the title (title height + padding) */
    left: 50%;
    transform: translateX(-50%); /* Only center horizontally */
    text-align: center;
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.main-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.main-content p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
	line-height:2rem;
}

.main-content .buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.button {
    padding: 10px 20px;
    background-color: #fdf1ca;
    color: #914809;
    text-decoration: none;
    border: 2px solid #914809;
    border-radius: 20px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #e0cbb3;
}

.footer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.footer-link {
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .title {
        font-size: 40pt;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
    .main-content {
        top: 100px;
    }
    .main-content h2 {
        font-size: 1.5rem;margin-top:40px;
    }
    .main-content p {
        font-size: 1rem;line-height:1.6rem;
    }
    .main-content .buttons {
        flex-direction: column;
        align-items: center;
    }
    .button {
        padding: 8px 16px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 150px;
    }
    .footer-link {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 30pt;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
    }
    .main-content {
        top: 80px;
    }
}