/* style für offer.mineralwerkstoffe.com das form.php */

    html, body {
    font-family: Arial, Helvetica, sans-serif;
    padding:0; margin: auto;
    font-size: x-large;
    width: 920px;
    }
    h1, h2, h3{text-align: center;}
header{
	width: 800px;
	height: 1010px;
	padding: 15px;
	overflow: auto;
	margin: 0 auto;
	margin-top: 3%;
	display: inline-block;
	background:  #c06;
	color: #fff;
	border-radius: 15px;
}
header .titelbild{
	background: url(bilder/ottis.jpg) no-repeat;
	background-size: 800px 635px;
	height: 635px;
	border: 1px solid #c06;
	border-radius: 12px;
}
/* resposive betrifft hier nur header */
/* if the screen is smaller than 768px, make the message 100% width 
@media screen and (max-width: 1400px) {
  .message {
    width: 100%;
  }
}
@media screen and (max-width: 1024px) {
  .message-add-form {
    max-width: 100%;
    width: 90%;
  }

main{
	display: inline-block;
	margin: auto;
	padding: 15px;
	color: #000;
	width: 100%;
}
*/
#anmelden{
	background-color: #c06;
	border-radius: 15px;
	color: #fff;
	margin: auto;
	padding: 15px;
	}
#anbieter-add{
	background-color: #ccc;
	border-radius: 15px;
	color: #c06;
	margin: auto;
	padding: 15px;	
	width: 100%;
	}
	.anbieter-add-form-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0;
  width: 100%;
}

.anbieter-add-form-label {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  flex: 0.3;
  float: left;
}
.message-add-form-input{
	font-size: 1.2rem;
	float: right;
}
.message-add-form-input input{
	font-size: 1.2rem;
}
.checkbox{
	font-size: 1.2rem;
}
/** Kleine Monitore  **/
@media only screen and (min-width: 320px) {
 html, body { width: 380px; margin: 0 auto;}
 header{	width: 380px;	height: 1000px; padding: 10px;}
 header .titelbild{background-size: 380px 302px;
height: 302px;	
	border-radius: 8px;
}
}
/** Mittlere Monitore  **/
@media only screen and (min-width: 660px) {
 html, body { width: 580px; margin: 0 auto;}
  header{width: 580px;	height: 960px; padding: 12px;}
 header .titelbild{background-size: 580px 460px;
	height: 460px;
	border-radius: 10px;
}
}
/** Große Monitore  **/
@media only screen and (min-width: 920px) {
 html, body { width: 800px; margin: 0 auto;}
  header{width: 800px;	height: 1020px; padding: 12px;}
 header .titelbild{background-size: 800px 635px;
	height: 635px;
	border-radius: 12px;
}
/* ende responsive */




footer{
	background-color: #c06;
	border-radius: 15px;
	color: #fff;
	margin: auto;
	padding: 15px;
	margin-bottom: 30px;
}	
	
.section-button-wrapper {
    width:100%;
    margin:0px; padding:0px;
    display: block;
    background-color: #38c172;  
    border-bottom: 1px solid #28a162;
  }

  .section-button {
    margin:0px; padding:0px;
  display: inline-block;
  
  padding: 10px 20px;
  background-color: #38c172;
  color: #fff;
  border-radius: 5px;

  text-align: center;
  text-decoration: none;
  font-size: 2vmax;
  cursor: pointer;
  transition: all 0.3s ease;
  /* center */
  position: relative;
  left: 10vw;
  margin:2vw;
  
  }
  /* .btn für die funktion */
.btn-suche-farbe{
	background-color: #0fc6ff;
}
 .btn-send-message{
 	 background-color: #7fa;
 } 
  .btn-send-message:hover{
 	 background-color: #4fa;
 } 
.section-button:hover {background: #555;}
 
  
/* CSS for the message-add form */

#message-add{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
  background-color: #d8f3dc;  
}
#message-such{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
  background-color: #d8f3dc;  
}
.message-add-form{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 30rem;
}
.message-such-form{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 30rem;
}
.message-add-form-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0;
  width: 100%;
}

.message-add-form-label {
  font-size: 1.2rem;
  font-weight: bold;
  color: #226a51;
  flex: 0.3;
}

.message-add-form-input {
  flex: 0.7;
}
.message-such-form-input {
  flex: 0.7;
}
.message-add-form  input[type="text"],
.message-add-form  textarea {
  font-size: 1.8rem;
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #e2f0d9;
  width: 100%;
  transition: background-color 0.2s ease-in-out;
  color: #226a51;
}
.message-such-form  input[type="text"],  textarea {
  font-size: 1.8rem;
  padding: 0.5rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #e2f0d9;
  width: 100%;
  transition: background-color 0.2s ease-in-out;
  color: #226a51;
}

.message-add-form  input[type="text"]:focus,  textarea:focus {
  outline: none;
  background-color: #cfe5ce;
}
.message-such-form  input[type="text"]:focus,  textarea:focus {
  outline: none;
  background-color: #cfe5ce;
}

.message-add-form  input[type="submit"] {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  background-color: #4b8e74;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.message-add-form input[type="submit"]:hover {
  background-color: #3a6e5a;
}
.message-such-form  input[type="submit"] {
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  background-color: #4b8e74;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.message-such-form input[type="submit"]:hover {
  background-color: #3a6e5a;
}
/* Responsive CSS for the message-add form */


  
  .message-add-form-label {
    font-size: 1rem;
    flex: 0.4;
  }
  
  .message-add-form-input {
    flex: 0.6;
  }
}

  .btn {
    display: inline-block;
    padding: 10px;
    background: #ccc;
    cursor: pointer;
  }

  .btn:hover {
    background: #ddd;
  }

  #messages-list { margin-bottom: 20px;  }
 
/* Messages List */
#messages-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.message {
  position:relative;
  background-color: #cff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 20px;
  margin: 20px;
  width:30vw;
  min-width:400px;
  box-sizing: border-box;
  color: #333;
  font-size: 16px;
}

.message.editing {
  background-color: red;
}

.message:hover {
  transform: translateY(-5px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.message .fld {  margin-bottom: 5px; display: block;}

.message input[type="text"],
.message textarea {
  padding: 5px;
  border: none;
  border-radius: 5px;
  background-color: #ccc;
  width: 80%;
  font-size: 16px;
  color: #333;
}

.message input[type="text"]:focus,
.message textarea:focus {
  outline: none;
  background-color: #ccf;
}

.message input[type="text"][readonly] {
  background-color: #dcc;
}

.message div.fldbtn {
  position:relative;
  padding:0px;margin:0px;

  display:inline-block;

  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.message .btn {
  display:block;
  margin:0px;
  position:relative;

  background-color: #38c172;
  color: #fff;
  border-radius: 5px;
 
  text-align: center;
  text-decoration: none;  
  font-size: 16px;

  cursor: pointer;
  transition: all 0.3s ease;
  /* set flex size to about 30% */
  
  font-size:2vmax;
  width:7.4vw;
  min-width:100px;

  margin:0.2vw;
  padding:0.3vw;
}

.message .btn:hover {
  background-color: #2f855a;
}

.message .btn-delete-message {
  background-color: #e53e3e;
}

.message .btn-delete-message:hover {
  background-color: #c53030;
}

.message .btn-update-message {
  background-color: #4299e1;
}

.message .btn-update-message:hover {
  background-color: #3182ce;
}

.message .btn-reset-message {
  background-color: #ed8936;
}

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

  
