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

/* legt sich auf alle Formatierungen absolutes mass ist das angegebene Aussenmass des Containers */
*, *:before, *:after {
  box-sizing: border-box;
}
    html, body {
    font-family: Arial, Helvetica, Verdana, sans-serif;
    padding:0; margin: 0 auto; font-size: 18px;
    }
/* für die Anzeige der Bildschirmbreite */
#topline { background: salmon; height: 20px }
#topline p { margin: 0; padding:0 0 20px 0; font-size: 1.6em; text-align: center; line-height: 100%; }

    h1, h2, h3{text-align: center;}
header{
	margin: 0 auto;
	margin-top: 3%;
	display: box;
	background-color: #c06;
	color: #fff;
	padding: 15px;
	border-radius: 12px;
}
nav{
margin: auto;
margin-top: 3%;
display: inline-block;
	background-color: #c06;
	color: #fff;
	padding: 15px;
	border-radius: 12px;
}
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.6rem;
  font-weight: bold;
  color: #fff;
  flex: 0.3;
}
.message-add-form-input{
	font-size: 1.5rem;
}
.message-add-form-input input{
	font-size: 1.5rem;
}

footer{
	background-color: #c06;
	border-radius: 15px;
	color: #fff;
	margin: auto;
	padding: 15px;
	margin-top: 10px;
	margin-bottom: 30px;
	width: 100%;
}	
	
.section-button-wrapper {
    width:90%;
    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: 2vw;
  margin:2vw;
    }
  .section-button:hover {background: #1a7;}
 
  /* .btn für die funktion */
.btn-suche-farbe{
	background-color: #0fc6ff;
}
 .btn-send-message{
 	 background-color: #7fa;
 } 
  .btn-send-message:hover{
 	 background-color: #4fa;
 } 
  
/* 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;  
   border-radius: 1rem;
}
.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%;
}
.teilstring{
	color: #000;
	  font-size: 0.82rem;
}
.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 */

@media screen and (max-width: 1024px) {
  .message-add-form {
    max-width: 100%;
    width: 90%;
  }
  
  .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;
  }

a.btnx {
    display: inline-block;
    padding: 2px 7px 2px 7px;
    background: #00a;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    background-color: #84135a;
  }
   a.btnx:hover {
    background: #84133f;
  }
 

 #messages-list { margin-bottom: 7px;  }
 

/* Messages List 
*  Auflistung der Treffer mit display:: flex
*  beachte dass die Box einen vordefinierten Wert erhält
*  mit flex-grow: 1; darf die Box grösser werden und Raum ausfüllen
*/
#messages-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.messages-list{
 margin: 10px;
	
}

.message {
  flex-grow: 0;  /* box darf größer werden */
  flex-shrink: 0; /* box darf nicht kleiner werden */
  flex-basis: auto;
  /* position:relative; */
  background-color: #cff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 7px;
  margin: 10px;
  width:22rem;
  /* min-width:360px;
   min-width:360px; */
  box-sizing: border-box;
  color: #333;
  font-size: 1.0rem;
}

.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: 99%;
  font-size: 1.6em;
  color: #333;
}

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

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

.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;
}

  .banned-list {
    /* flex */
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
    padding:2vw;

  }
  .banned-list .banned-header {
    font-size:2vmax;
    font-weight:bold;
    margin-bottom:10px;
  }

  .banned-list .ip-row {
    display:block;
    padding:2vw;
  }

  .banned-list .ip-row .fld {
    display:inline-block;
    width:25vw;
  }

