@import url('https://fonts.googleapis.com/css2?family=Madimi+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body, html {
	margin: 0;
	padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #F0EBEB;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
	overflow-y: auto;
    height: 100%;
    padding: 20px 0;
	margin: 0 auto;
}

.title, .socials {
    width: 100%;
	max-width: 100%;
    background-color: #C9C9C9;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
	margin-top: 20px;
	padding: 20px;
	box-sizing: border-box;
}

.title h1 {
    font-family: 'Madimi One', serif;
    color: #000;
    text-align: center;
    margin: 0;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socials img {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s;
}

.socials img:hover {
    transform: scale(1.1);
}

.content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
	flex-wrap: wrap;
}

.instructions, .rules, .form-container {
    background-color: #C9C9C9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 30%;
    box-sizing: border-box;
}

.instructions h2, .instructions h3, .rules h2 {
    font-family: 'Madimi One', serif;
    color: #000;
    margin-top: 0;
}

.instructions p, .rules p, .instructions ul, .rules ul {
    font-family: 'Roboto', sans-serif;
    color: #000;
}

.instructions ul, .rules ul {
    list-style-type: disc;
    padding-left: 20px;
}

.form-container h1 {
    font-family: 'Madimi One', serif;
    color: #000;
    text-align: center;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

input[type="text"], select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #000;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #000;
    font-family: 'Roboto', sans-serif;
    resize: none;
    box-sizing: border-box;
}

input[type="submit"] {
    font-family: 'Madimi One', serif;
    padding: 10px 20px;
    background-color: #D60D13;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: #A90A0E;
}

@media (max-width: 800px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
	
	body {
		display: block; 
	}

    .main-container {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        box-sizing: border-box;
        height: auto;
        overflow-y: auto;
    }

    .title, .socials, .instructions, .rules, .form-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }

    .content {
        flex-direction: column;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #c9c9c9;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    font-family: 'Roboto', sans-serif;
    color: #000;
}

.modal-content h2 {
    font-family: 'Madimi One', serif;
    color: #000;
}

.close {
    color: #000;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: red;
    text-decoration: none;
    cursor: pointer;
}

.policies {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.policies button {
    background-color: #000;
    color: #f0ebeb;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.policies button:hover {
    background-color: #d60d13;
}
